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.022 (81.5th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 81st percentile — 81.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.017 · newest: 0.022 · change: +0.004
Affected products
- Sqlalchemy Mako
- Debian Linux — versions 10.0
Weakness classification (CWE)
Public proof-of-concept exploits
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)
- lists.debian.org/debian-lts-announce/2022/09/msg00026.html (mailing-list, Mailing List, Third Party Advisory)
- pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/ (Exploit, Third Party Advisory)
- af854a3a-2127-422b-91ae-364da2661108
Frequently asked questions
- What is CVE-2022-40023?
- CVE-2022-40023 is a high-severity vulnerability in Sqlalchemy Mako, classified under Inefficient Regular Expression Complexity. CVSS score: 7.5/10. Published 2022-09-07.
- How severe is CVE-2022-40023?
- High severity. CVSS v3 base score is 7.5 out of 10.
- Is CVE-2022-40023 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.