Skip to content
OpenAdvisories
High · 7.5 CVE-2022-40023 EUVD-2022-0149GHSA-v973-fxgf-6xhpPYSEC-2022-260

mako is vulnerable to Regular Expression Denial of Service

Published Sep 7, 2022 · Updated Dec 3, 2025 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 mako 1.2.2+ds1-1 —
Debian 13 mako 1.2.2+ds1-1 —
Debian 12 mako 1.2.2+ds1-1 —
Debian 11 mako 1.1.3+ds1-2+deb11u1 DLA-4393-1
Debian 10 mako 1.0.7+ds1-1+deb10u1 DLA-3116-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS mako 1.1.3+ds1-2ubuntu0.1 USN-5625-1
Ubuntu 20.04 LTS mako 1.1.0+ds1-1ubuntu2.1 USN-5625-1
Ubuntu 18.04 LTS mako 1.0.7+ds1-1ubuntu0.2 USN-5625-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS mako 1.0.3+ds1-1ubuntu1+esm1 USN-5625-1
ReleasePackageFixed inAdvisory
RHEL 9 python-mako +1 1.1.4-6.el9 RHSA-2023:2258
RHEL 8 python-mako +1 1.0.6-14.el8 RHSA-2023:2893

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 python3-mako 1.1.4-6.el9 ALSA-2023:2258
AlmaLinux 8 python3-mako 1.0.6-14.el8 ALSA-2023:2893

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 python-mako 1.1.4-6.el9 RLSA-2023:2258
Rocky Linux 8 python-mako 1.0.6-14.el8 RLSA-2023:2893
ReleasePackageFixed inAdvisory
SLES 15 SP4 python-Mako 1.0.7-150000.3.3.1 SUSE-SU-2022:3979-1
SLES 15 SP3 python-Mako 1.0.7-150000.3.3.1 SUSE-SU-2022:3979-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE OpenStack Cloud Crowbar 9 python-Mako 1.0.7-4.3.1 SUSE-SU-2022:3700-1
SUSE OpenStack Cloud Crowbar 8 python-Mako 1.0.7-3.3.1 SUSE-SU-2022:3701-1
SUSE OpenStack Cloud 9 python-Mako 1.0.7-4.3.1 SUSE-SU-2022:3700-1
SUSE OpenStack Cloud 8 python-Mako 1.0.7-3.3.1 SUSE-SU-2022:3701-1
SUSE HPE Helion OpenStack 8 python-Mako 1.0.7-3.3.1 SUSE-SU-2022:3701-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Mako 1.3.0-2.1 openSUSE-SU-2026:11567-1, openSUSE-SU-2024:13610-1
openSUSE Leap 15.4 python-Mako 1.0.7-150000.3.3.1 SUSE-SU-2022:3979-1
openSUSE Leap 15.3 python-Mako 1.0.7-150000.3.3.1 SUSE-SU-2022:3979-1
ReleasePackageFixed inAdvisory
Alpine v3.24 py3-mako 1.2.2-r0 —
Alpine v3.23 py3-mako 1.2.2-r0 —
Alpine v3.22 py3-mako 1.2.2-r0 —
Alpine v3.21 py3-mako 1.2.2-r0 —
Alpine v3.20 py3-mako 1.2.2-r0 —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 py3-mako 1.2.2-r0 —
Alpine v3.18 py3-mako 1.2.2-r0 —
Alpine v3.17 py3-mako 1.2.2-r0 —
Alpine v3.16 py3-mako 1.2.2-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 python3-mako +1 1.1.4-3.amzn2023.0.3 ALAS2023-2023-288
Amazon Linux 2 python-mako 0.8.1-2.amzn2.0.1 ALAS2-2023-2164

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) python-mako 1.2.2-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 python3-mako 1.1.4-6.el9 ELSA-2023-2258
Oracle Linux 8 python3-mako 1.0.6-14.el8 ELSA-2023-2893

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI mako < 1.2.2 1.2.2 GHSA-v973-fxgf-6xhp

Advisories 23

References