Vulnerability
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.
28 advisories report this vulnerability, across 13 ecosystems.
Advisories
-
ALAS2-2023-2164
Amazon Linux 2 2017.12 - ALAS2-2023-2164: medium priority package update for python-mako
-
ALAS2023-2023-288
Amazon Linux 2023 - ALAS2023-2023-288: Medium priority package update for python-mako
-
ALPINE-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.
- ALPINE-EDGE-CVE-2022-40023
-
ALSA-2023:2258
Moderate: python-mako security update
-
ALSA-2023:2893
Moderate: python-mako security update
-
AZL-10892
CVE-2022-40023 affecting package python-mako for versions less than 1.2.2-1
-
DEBIAN-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.
-
DLA-3116-1
mako - security update
-
DLA-4393-1
mako - security update
-
ELSA-2023-2258
ELSA-2023-2258: python-mako security update (MODERATE)
-
ELSA-2023-2893
ELSA-2023-2893: python-mako security update (MODERATE)
-
GHSA-v973-fxgf-6xhp
mako is vulnerable to Regular Expression Denial of Service
-
OESA-2023-1683
python-mako security update
-
PYSEC-2022-260
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.
-
RHSA-2023:2258
Red Hat Security Advisory: python-mako security update
-
RHSA-2023:2893
Red Hat Security Advisory: python-mako security update
-
RHVEX-CVE-2022-40023
python-mako: REDoS in Lexer class
-
RLSA-2023:2258
Moderate: python-mako security update
-
RLSA-2023:2893
Moderate: python-mako security update
-
SUSE-SU-2022:3700-1
Security update for python-Mako
-
SUSE-SU-2022:3701-1
Security update for python-Mako
-
SUSE-SU-2022:3979-1
Security update for python-Mako
-
SUSEVEX-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.
-
UBUNTU-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.
-
USN-5625-1
mako vulnerability
-
openSUSE-SU-2024:13610-1
python310-Mako-1.3.0-2.1 on GA media
-
openSUSE-SU-2026:11567-1
python313-Mako-1.4.1-1.1 on GA media
References
- https://github.com/sqlalchemy/mako/blob/c2f392e0be52dc67d1b9770ab8cce6a9c736d547/mako/ext/extract.py#L21
- https://github.com/sqlalchemy/mako/commit/925760291d6efec64fda6e9dd1fd9cfbd5be068c
- https://github.com/sqlalchemy/mako/issues/366
- https://lists.debian.org/debian-lts-announce/2022/09/msg00026.html
- https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/
- https://pyup.io/vulnerabilities/CVE-2022-40023/50870/
- https://lists.debian.org/debian-lts-announce/2025/12/msg00004.html