CVEfocus › CVE database › CVE-2022-40023

CVE-2022-40023

EPSS 2.2% (higher than 83% of CVEs)Published 2022-09-07Updated 2025-12-03Assigner: mitre

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.

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, PyPI, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

24Fixed
2Fix pending
13Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04makoFixed1.1.3+ds1-2ubuntu0.1UBUNTU-CVE-2022-40023
Ubuntu 20.04makoFixed1.1.0+ds1-1ubuntu2.1UBUNTU-CVE-2022-40023
Ubuntu 18.04makoFixed1.0.7+ds1-1ubuntu0.2UBUNTU-CVE-2022-40023
Ubuntu 16.04makoFix pending1.0.3+ds1-1ubuntu1+esm1 (Ubuntu Pro)UBUNTU-CVE-2022-40023
Ubuntu 14.04makoFix pending
Debian 14makoFixed1.2.2+ds1-1DEBIAN-CVE-2022-40023
Debian 13makoFixed1.2.2+ds1-1DEBIAN-CVE-2022-40023
Debian 12makoFixed1.2.2+ds1-1DEBIAN-CVE-2022-40023
Red Hat Enterprise Linux 9python-makoFixed0:1.1.4-6.el9RHSA-2023:2258
Red Hat Enterprise Linux 9python3-makoFixed0:1.1.4-6.el9RHSA-2023:2258
Red Hat Enterprise Linux 8python-makoFixed0:1.0.6-14.el8RHSA-2023:2893
Red Hat Enterprise Linux 8python3-makoFixed0:1.0.6-14.el8RHSA-2023:2893
Red Hat Enterprise Linux 8resource-agentsWill not fix
Will not fix
Red Hat Enterprise Linux 8resource-agents-aliyunWill not fix
Will not fix
Red Hat Enterprise Linux 8resource-agents-gcpWill not fix
Will not fix
Red Hat Enterprise Linux 8resource-agents-pafWill not fix
Will not fix
Red Hat Enterprise Linux 7python-makoWill not fix
Out of support scope
Red Hat Enterprise Linux 7resource-agentsWill not fix
Out of support scope
Red Hat Enterprise Linux 7resource-agents-aliyunWill not fix
Out of support scope
Red Hat Enterprise Linux 7resource-agents-gcpWill not fix
Out of support scope
Red Hat Enterprise Linux 7resource-agents-sapWill not fix
Out of support scope
Red Hat Enterprise Linux 7resource-agents-sap-hanaWill not fix
Out of support scope
Red Hat Enterprise Linux 7resource-agents-sap-hana-scaleoutWill not fix
Out of support scope
Red Hat Enterprise Linux 7sap-cluster-connectorWill not fix
Out of support scope
Red Hat Enterprise Linux 6python-makoWill not fix
Out of support scope
AlmaLinux 9python3-makoFixed1.1.4-6.el9ALSA-2023:2258
AlmaLinux 8python3-makoFixed1.0.6-14.el8ALSA-2023:2893
Rocky Linux 9python-makoFixed0:1.1.4-6.el9RLSA-2023:2258
Rocky Linux 8python-makoFixed0:1.0.6-14.el8RLSA-2023:2893
Alpine Linux 3.24py3-makoFixed1.2.2-r0ALPINE-CVE-2022-40023
Alpine Linux 3.23py3-makoFixed1.2.2-r0ALPINE-CVE-2022-40023
Alpine Linux 3.22py3-makoFixed1.2.2-r0ALPINE-CVE-2022-40023
Alpine Linux 3.21py3-makoFixed1.2.2-r0ALPINE-CVE-2022-40023
Alpine Linux 3.20py3-makoFixed1.2.2-r0ALPINE-CVE-2022-40023
Alpine Linux 3.19py3-makoFixed1.2.2-r0ALPINE-CVE-2022-40023
Alpine Linux 3.18py3-makoFixed1.2.2-r0ALPINE-CVE-2022-40023
Alpine Linux 3.17py3-makoFixed1.2.2-r0ALPINE-CVE-2022-40023
Alpine Linux 3.16py3-makoFixed1.2.2-r0ALPINE-CVE-2022-40023
PyPI librarymakoFixed1.2.2GHSA-v973-fxgf-6xhp

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.