Regular Expression Denial of Service in Mako Templates by SQLAlchemy
CVE-2022-40023

7.5HIGH

Key Information:

Vendor

Sqlalchemy

Status
Vendor
CVE Published:
7 September 2022

What is CVE-2022-40023?

The Mako templating engine, used with SQLAlchemy, is susceptible to Regular Expression Denial of Service when utilizing the Lexer class for parsing. This vulnerability can lead to excessive resource consumption, resulting in performance degradation and potential denial of service in applications relying on Mako for template rendering. Affected versions include Mako before 1.2.2, with implications for projects utilizing this package, along with related plugins like babelplugin and linguaplugin. Best practices for mitigation involve upgrading to the patched version of Mako or applying recommended workarounds.

References

CVSS V3.1

Score:
7.5
Severity:
HIGH
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.