Inefficient Regular Expression Complexity Affecting python-mako package, versions <0:0.8.1-2.amzn2.0.1


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.36% (73rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2-PYTHONMAKO-5803968
  • published25 Jul 2023
  • disclosed7 Sept 2022

Introduced: 7 Sep 2022

CVE-2022-40023  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 python-mako to version 0:0.8.1-2.amzn2.0.1 or higher.
This issue was patched in ALAS2-2023-2164.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-mako package and not the python-mako package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

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.

CVSS Scores

version 3.1