CVE-2022-40023: debian debian_linux
CVSS: 7.5v3.1HighModified
AliasesALPINE-CVE-2022-40023MGASA-2022-0350SUSE-SU-2022:3700-1SUSE-SU-2022:3701-1SUSE-SU-2022:3979-1GHSA-v973-fxgf-6xhpPYSEC-2022-260RHSA-2023:2258RHSA-2023:2893UBUNTU-CVE-2022-40023USN-5625-1DEBIAN-CVE-2022-40023DLA-3116-1DLA-4393-1openSUSE-SU-2024:13610-1openSUSE-SU-2026:11567-1
Published 07-09-2022Last modified 03-12-2025
Vulnerability summary
CVE-2022-40023 is a high (CVSS 7.5) vulnerability in debian debian_linux. EPSS estimates a 2.17% chance of exploitation in the next 30 days, higher than 82.1% of scored vulnerabilities. 2 public exploits are recorded.
CVSS score
7.5/10
010
High · v3.1 (NVD)EPSS score
2.17%
0%100%
Low · +0.02 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits2github, reference
Timeline
- 07-09-2022PublishedVulnerability first disclosed.
- 03-12-2025Last modifiedVulnerability information updated.
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 metrics
7 scores · 6 sources · 2 versionsHigh 8.7Preferred score · OSV · Pypi (Ecosystem advisory) · calculated from vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NSourcesSingle source
High 7.5Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HSourcesAll 6 agree
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · PypiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · Red hatEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
2.17%
Chance of exploitation in the next 30 days
Percentile
82%
Versus all other CVEs
30-day change
+0.02 pp
From 2.16% on 21-09-2026
21-09-202621-10-2026
EPSS score2.17%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
2 foundMako
Maturity: poc
Exploit Reference (pyup.io)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Suse9 products
- python-Mako&distro=HPE Helion OpenStack 8< 1.0.7-3.3.1
- python-Mako&distro=SUSE Linux Enterprise Module for Basesystem 15 SP3< 1.0.7-150000.3.3.1
- python-Mako&distro=SUSE Linux Enterprise Module for Basesystem 15 SP4< 1.0.7-150000.3.3.1
- python-Mako&distro=SUSE Linux Enterprise Module for Package Hub 15 SP3< 1.0.7-150000.3.3.1
- python-Mako&distro=SUSE Linux Enterprise Module for Package Hub 15 SP4< 1.0.7-150000.3.3.1
Opensuse3 products
- python-Mako&distro=openSUSE Leap 15.3< 1.0.7-150000.3.3.1
- python-Mako&distro=openSUSE Leap 15.4< 1.0.7-150000.3.3.1
- python-Mako&distro=openSUSE Tumbleweed< 1.3.0-2.1 | < 1.4.1-1.1
Debian2 products
- mako< 1.0.7+ds1-1+deb10u1 | < 1.1.3+ds1-2+deb11u1 | < 1.2.2+ds1-1
- debian_linuxEOL10.0
Redhat2 products
- python-mako< 0:1.1.4-6.el9 | < 0:1.0.6-14.el8
- python3-mako< 0:1.1.4-6.el9 | < 0:1.0.6-14.el8
Alpine1 product
- py3-mako< 1.2.2-r0
Mageia1 product
- python-mako< 1.2.2-1.mga8
PyPI1 product
- mako< 925760291d6efec64fda6e9dd1fd9cfbd5be068c | < 1.2.2
Sqlalchemy1 product
- mako< 1.2.2
Ubuntu1 product
- mako< 1.0.3+ds1-1ubuntu1+esm1 | < 1.0.7+ds1-1ubuntu0.2 | < 1.1.0+ds1-1ubuntu2.1 | < 1.1.3+ds1-2ubuntu0.1
9 vendors · 21 products
References
36 links- github.com/sqlalchemy/mako/blob/c2f392e0be52dc67d1b9770ab8cce6a9c736d547/mako/ext/extract.pyWEBREPORTExploitThird Party Advisory
- pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/ExploitThird Party Advisory