VulnerabilityModified
CVE-2022-40023
Sqlalchemy mako before 1.2.2 is vulnerable to Regular expression Denial of Service when using the Lexer class to parse.
HIGH 7.5EPSS 2.16%
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (2.16%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
Description
Sqlalchemy mako before 1.2.2 is vulnerable to Regular expression Denial of Service when using the Lexer class to parse. This also affects babelplugin and linguaplugin.
- CVSS 3.1
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS
- 2.16% probability · 81th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-1333
- Affected
- sqlalchemy/mako · debian/debian linux
- Source
- cve@mitre.org
References
- https://github.com/sqlalchemy/mako/blob/c2f392e0be52dc67d1b9770ab8cce6a9c736d547/mako/ext/extract.py#L21Exploit, Third Party Advisory
- https://github.com/sqlalchemy/mako/commit/925760291d6efec64fda6e9dd1fd9cfbd5be068cPatch
- https://github.com/sqlalchemy/mako/issues/366Issue Tracking, Patch
- https://lists.debian.org/debian-lts-announce/2022/09/msg00026.htmlMailing List, Third Party Advisory
- https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/Exploit, Third Party Advisory
- https://pyup.io/vulnerabilities/CVE-2022-40023/50870/Third Party Advisory
- https://github.com/sqlalchemy/mako/blob/c2f392e0be52dc67d1b9770ab8cce6a9c736d547/mako/ext/extract.py#L21Exploit, Third Party Advisory
- https://github.com/sqlalchemy/mako/commit/925760291d6efec64fda6e9dd1fd9cfbd5be068cPatch
- https://github.com/sqlalchemy/mako/issues/366Issue Tracking, Patch
- https://lists.debian.org/debian-lts-announce/2022/09/msg00026.htmlMailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2025/12/msg00004.html
- https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/Exploit, Third Party Advisory
- https://pyup.io/vulnerabilities/CVE-2022-40023/50870/Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.