GHSA-v973-fxgf-6xhp · Severity: high · Ecosystem: pip — mako is vulnerable to Regular Expression Denial of Service
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.
Conclusion & alert: CVE-2022-40023 is rated High Exploit Risk (71.8/100): CVSS High severity, with medium exploitation likelihood (EPSS 0.95%). Core evidence: 2 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ | |
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2025-12-03 | 0.70% | 0.95% | +0.25% |
| 2 | 2025-11-21 | 1.65% | 0.70% | -0.95% |
| 3 | 2025-11-18 | — | 1.65% | — |
Full EPSS history (22 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.5 | 3.1 | HIGH |
|
3.9 | 3.6 | [email protected] |
GHSA-v973-fxgf-6xhp · Severity: high · Ecosystem: pip — mako is vulnerable to Regular Expression Denial of Service
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
— | CVE-2022-40023: 1 source package rows (py3-mako); 7 state rows across 7 repos (3.17-main, 3.18-main, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 7, open 0. | https://security.alpinelinux.org/vuln/CVE-2022-40023 |
debian
|
not yet assigned | CVE-2022-40023 not yet assigned priority: Debian including 1 source packages (mako), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2022-40023 |
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2022-40023 |
suse
|
medium | CVE-2022-40023 severity moderate: SUSE including 14 source package names (1.10.1.16.4.5.328:python3-Mako-1.0.7-150000.3.3.1, python-Mako-1.0.7-3.3.1, …), 29 product×package rows across 26 product lines (Container ses/7.1/cephcsi/cephcsi, Container ses/7.1/rook/ceph, … (26 product lines)): Fixed 29. | https://www.suse.com/security/cve/CVE-2022-40023/ |
ubuntu
|
medium | CVE-2022-40023 medium priority: Ubuntu including 1 source packages (mako), 8 status rows across 8 suites (bionic, focal, jammy, kinetic, lunar, trusty, upstream, xenial): released 7, ignored 1. | https://ubuntu.com/security/CVE-2022-40023 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| sqlalchemy | mako | < 1.2.2 | cpe:2.3:a:sqlalchemy:mako:*:*:*:*:*:*:*:* |
| debian | debian_linux | 10.0 | cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/sqlalchemy/mako/blob/c2f392e0be52dc67d1b9770ab8cce6a9c736d547/mako/ext/extract.py#L21 | Exploit Third Party Advisory |
| https://github.com/sqlalchemy/mako/commit/925760291d6efec64fda6e9dd1fd9cfbd5be068c | Patch |
| https://github.com/sqlalchemy/mako/issues/366 | Issue Tracking Patch |
| https://lists.debian.org/debian-lts-announce/2022/09/msg00026.html | Mailing 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://lists.debian.org/debian-lts-announce/2025/12/msg00004.html |