Vulnerability in Sqlalchemy Mako
CVE-2022-40023
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.
Vulnerability class: ReDoS (Regular Expression Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.023, 83.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Sqlalchemy Mako
- Debian Linux — versions 10.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (doudoudedi/hackEmbedded, SCH227/own-research). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/sqlalchemy/mako/issues/366 (Patch, Issue Tracking)
- github.com/sqlalchemy/mako/commit/925760291d6efec64fda6e9dd1fd9cfbd5be068c (Patch)
- github.com/sqlalchemy/mako/blob/c2f392e0be52dc67d1b9770ab8cce6a9c736d547/mako/e… (Exploit, Third Party Advisory)
- pyup.io/vulnerabilities/CVE-2022-40023/50870/ (Third Party Advisory)
- [debian-lts-announce] 20220921 [SECURITY] [DLA 3116-1] mako security update (mailing-list, Mailing List, Third Party Advisory)
- pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/ (Exploit, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2025/12/msg00004.html