VDB

CVE-2022-40023

CVE-2022-40023 PUBLISHED CVSS 7.5 HIGH

mako is vulnerable to Regular Expression Denial of Service

Reported by mitre · Published September 7, 2022

Mako is fixed in 925760291d6efec64fda6e9dd1fd9cfbd5be068c and 1.2.2 (PyPI)

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 versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
MakoPyPI925760291d6efec64fda6e9dd1fd9cfbd5be068c, 1.2.2
python-mako-docAmazon Linux1.1.4-3.amzn2023.0.3
python3-makoAmazon Linux1.1.4-3.amzn2023.0.3
makosqlalchemy1.2.2

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
n/an/an/a
amazon:2023python-mako-doc0
amazon:2023python3-mako0
n/an/a*
amazon:2python-mako0
PyPIMako0
alpinepy3-mako0

Timeline

  • Sep 7, 2022 CVE Published
  • Sep 8, 2022 EPSS Score (30 in total, the first dated here)
  • Mar 9, 2026 Security Advisory (87 in total, the first dated here)
  • Mar 21, 2026 Distribution Patch (82 in total, the first dated here)
  • Jun 17, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-40023
vulnetix vdb fixes CVE-2022-40023

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-40023/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›