cve.bz

CVE-2022-40023

7.5 highExploit referenceEPSS 2.3%Fix available

High (7.5). EPSS 2.3% estimated probability of exploitation activity in the next 30 days. Fixed in mako 1.2.2.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
2.3% (unchanged from 2.3% a week ago; 2.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 84th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-40023 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-40023?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-40023?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-40023 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
sqlalchemy:makobefore 1.2.2
debian:debian_linux10.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v973-fxgf-6xhpPyPImako<1.2.21.2.2
PYSEC-2022-260PyPImako<1.2.21.2.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10mako1.0.7+ds1-1+deb10u1DLA-3116-1
Debian11mako1.1.3+ds1-2+deb11u1DLA-4393-1
Debian12, 13, 14mako1.2.2+ds1-1DEBIAN-CVE-2022-40023
Ubuntu18.04:LTSmako1.0.7+ds1-1ubuntu0.2UBUNTU-CVE-2022-40023 USN-5625-1
Ubuntu20.04:LTSmako1.1.0+ds1-1ubuntu2.1UBUNTU-CVE-2022-40023 USN-5625-1
Ubuntu22.04:LTSmako1.1.3+ds1-2ubuntu0.1UBUNTU-CVE-2022-40023 USN-5625-1
UbuntuPro:16.04:LTSmako1.0.3+ds1-1ubuntu1+esm1UBUNTU-CVE-2022-40023 USN-5625-1
Red Hatenterprise_linux:8::appstreampython-mako, python3-mako0:1.0.6-14.el8RHSA-2023:2893
Red Hatenterprise_linux:9::appstreampython-mako, python3-mako0:1.1.4-6.el9RHSA-2023:2258
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8python-Mako1.0.7-3.3.1SUSE-SU-2022:3701-1
SUSELinux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Basesystem 15 SP4, Linux Enterprise Module for Package Hub 15 SP3 and 1 morepython-Mako1.0.7-150000.3.3.1SUSE-SU-2022:3979-1
SUSEOpenStack Cloud 9, OpenStack Cloud Crowbar 9python-Mako1.0.7-4.3.1SUSE-SU-2022:3700-1
openSUSELeap 15.3, Leap 15.4python-Mako1.0.7-150000.3.3.1SUSE-SU-2022:3979-1
openSUSETumbleweedpython-Mako1.3.0-2.1openSUSE-SU-2024:13610-1
openSUSETumbleweedpython-Mako1.4.1-1.1openSUSE-SU-2026:11567-1
AlmaLinux8python3-mako1.0.6-14.el8ALSA-2023:2893
AlmaLinux9python3-mako1.1.4-6.el9ALSA-2023:2258
Rocky Linux8python-mako0:1.0.6-14.el8RLSA-2023:2893
Rocky Linux9python-mako0:1.1.4-6.el9RLSA-2023:2258
Alpinev3.16, v3.17, v3.18 and 6 morepy3-mako1.2.2-r0ALPINE-CVE-2022-40023
Azure Linux2python-mako1.2.2-1AZL-10892

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8python-mako-0:1.0.6-14.el8Fixed 2023-05-16RHSA-2023:2893
Red Hat Enterprise Linux 9python-mako-0:1.1.4-6.el9Fixed 2023-05-09RHSA-2023:2258
Red Hat Ceph Storage 3python-pecanOut of support scope
Red Hat Ceph Storage 4python-pecanNot affected
Red Hat Ceph Storage 5python-pecanNot affected
Red Hat Enterprise Linux 6python-makoOut of support scope
Red Hat Enterprise Linux 7python-makoOut of support scope
Red Hat Enterprise Linux 7resource-agentsOut of support scope
Red Hat Enterprise Linux 8resource-agentsWill not fix
Red Hat Openshift Container Storage 4python-pecanAffected
Red Hat Openshift Data Foundation 4python-pecanAffected
Red Hat OpenStack Platform 13 (Queens)python-pecanOut of support scope
Red Hat OpenStack Platform 16.1python-pecanNot affected
Red Hat OpenStack Platform 16.2python-pecanNot affected
Red Hat OpenStack Platform 17.0python-pecanNot affected
Red Hat Quay 3quay/quay-rhel8Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-40023.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON