{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-40023","published":"2022-09-07T13:15:09.953000Z","last_modified":"2026-06-17T05:00:47.023000Z","status":"Modified","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-1333"],"cpes":[{"criteria":"cpe:2.3:a:sqlalchemy:mako:*:*:*:*:*:*:*:*","part":"a","vendor":"sqlalchemy","product":"mako","version_end_excluding":"1.2.2"},{"criteria":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"10.0"}],"cpes_truncated":false,"vendors":["sqlalchemy","debian"],"products":["sqlalchemy/mako","debian/debian_linux"],"epss":{"score":0.02234,"percentile":0.83511,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-v973-fxgf-6xhp","ecosystem":"PyPI","name":"mako","purl":"pkg:pypi/mako","ranges":[{"introduced":"0","fixed":"1.2.2"}],"versions":["0.1.0","0.1.1","0.1.10","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.1.8","0.1.9","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","0.2.5","0.3.0","0.3.1","0.3.2","0.3.3","0.3.4","0.3.5","0.3.6","0.4.0","0.4.1","0.4.2","0.5.0","0.6.0","0.6.1","0.6.2","0.7.0","0.7.1","0.7.2","0.7.3","0.8.0","0.8.1","0.9.0","0.9.1","1.0.0","1.0.1","1.0.10","1.0.11","1.0.12","1.0.13","1.0.14","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","1.2.0","1.2.1"],"versions_truncated":false},{"advisory":"PYSEC-2022-260","ecosystem":"PyPI","name":"mako","purl":"pkg:pypi/mako","ranges":[{"introduced":"0","fixed":"1.2.2"}],"versions":["0.1.0","0.1.1","0.1.10","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.1.8","0.1.9","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","0.2.5","0.3.0","0.3.1","0.3.2","0.3.3","0.3.4","0.3.5","0.3.6","0.4.0","0.4.1","0.4.2","0.5.0","0.6.0","0.6.1","0.6.2","0.7.0","0.7.1","0.7.2","0.7.3","0.8.0","0.8.1","0.9.0","0.9.1","1.0.0","1.0.1","1.0.10","1.0.11","1.0.12","1.0.13","1.0.14","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","1.2.0","1.2.1"],"versions_truncated":false}],"severity":"high","priority_score":60,"links":{"html_es":"/es/cve/CVE-2022-40023/","html_en":"/en/cve/CVE-2022-40023/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-40023","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-40023"},"untrusted":{"vendor_name":"Sqlalchemy","product_name":"Mako","desc_en":"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.","affected":[],"references":[{"url":"https://github.com/sqlalchemy/mako/blob/c2f392e0be52dc67d1b9770ab8cce6a9c736d547/mako/ext/extract.py#L21","tags":["Exploit","Third Party Advisory"]},{"url":"https://github.com/sqlalchemy/mako/commit/925760291d6efec64fda6e9dd1fd9cfbd5be068c","tags":["Patch"]},{"url":"https://github.com/sqlalchemy/mako/issues/366","tags":["Issue Tracking","Patch"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00026.html","tags":["Mailing List","Third Party Advisory"]},{"url":"https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/","tags":["Exploit","Third Party Advisory"]},{"url":"https://pyup.io/vulnerabilities/CVE-2022-40023/50870/","tags":["Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/12/msg00004.html","tags":[]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2026:11567-1","url":"https://www.suse.com/support/update/","published":"2026-08-21T00:00:00+00:00","severity":"high","exploited":false,"untrusted":{"title":"python313-Mako-1.4.1-1.1 on GA media"}}]}