CVE-2022-40023

python3-mako: Sqlalchemy mako before 1.2.2 is vulnerable to Regular expression Denial of Service when using the Lexer class to parse

CVE-2022-40023 is fixed in 4 products on 1 platform, first by python-mako 1.0.7+ds1-1ubuntu0.2, released September 7, 2022. It is not reported as exploited. Patch Radar priority: High.

High
CVSS
7.5
Medium
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0232
83rd percentile

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.

Where it's fixed

ProductFixed inFixReleased
Linux
mako · Debian 11.6 (bullseye) 1.1.3+ds1-2+deb11u1 DLA-4393-1 Dec 3, 2025
mako · Debian 12.15 (bookworm) 1.2.2+ds1-1 DEBIAN-CVE-2022-40023 Sep 7, 2022
mako · Debian 13.5 (trixie) 1.2.2+ds1-1 DEBIAN-CVE-2022-40023 Sep 7, 2022
mako · Debian 14 1.2.2+ds1-1 DEBIAN-CVE-2022-40023 Sep 7, 2022
python-mako · Ubuntu 18.04.6 LTS (bionic) 1.0.7+ds1-1ubuntu0.2 python-mako 1.0.7+ds1-1ubuntu0.2 Sep 7, 2022
python-mako · Ubuntu 20.04 LTS (focal) 1.1.0+ds1-1ubuntu2.1 python-mako 1.1.0+ds1-1ubuntu2.1 Sep 7, 2022
python-mako · rocky 8 0:1.0.6-14.el8 RLSA-2023:2893 Dec 3, 2025
python-mako · rocky 9 0:1.1.4-6.el9 RLSA-2023:2258 Dec 3, 2025
python-mako-doc · amzn 2023 1.1.4-3.amzn2023.0.3 ALAS2023-2023-288 Aug 3, 2023
python3-mako · RHEL 8 0:1.0.6-14.el8 RHSA-2023:2893 May 16, 2023
python3-mako · RHEL 9 0:1.1.4-6.el9 RHSA-2023:2258 May 9, 2023
python3-mako · Ubuntu 18.04.6 LTS (bionic) 1.0.7+ds1-1ubuntu0.2 python3-mako 1.0.7+ds1-1ubuntu0.2 Sep 7, 2022
python3-mako · Ubuntu 20.04 LTS (focal) 1.1.0+ds1-1ubuntu2.1 python3-mako 1.1.0+ds1-1ubuntu2.1 Sep 7, 2022
python3-mako · Ubuntu 22.04.1 LTS (jammy) 1.1.3+ds1-2ubuntu0.1 python3-mako 1.1.3+ds1-2ubuntu0.1 Sep 7, 2022
python3-mako · almalinux 8 1.0.6-14.el8 ALSA-2023:2893 May 16, 2023
python3-mako · almalinux 9 1.1.4-6.el9 ALSA-2023:2258 May 9, 2023
python3-mako · amzn 2023 1.1.4-3.amzn2023.0.3 ALAS2023-2023-288 Aug 3, 2023
python3-mako · ol 8 0:1.0.6-14.el8 ELSA-2023-2893 May 24, 2023
python3-mako · ol 9 0:1.1.4-6.el9 ELSA-2023-2258 May 15, 2023

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.