Incorrect Regular Expression in Mako - CVE-2022-40023

 

Incorrect Regular Expression in Mako - CVE-2022-40023

Published: September 21, 2022


Vulnerability identifier: #VU67555
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-40023
CWE-ID: CWE-185
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to insufficient input validation when processing regular expressions within the Lexer class. A remote attacker can pass specially crafted data to the application and perform regular expression denial of service (ReDos) attack.


Affected software

Mako
Amazon Linux AMI
Oracle Linux
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Enterprise Storage
Anolis OS
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
HPE Helion Openstack
SUSE OpenStack Cloud
SUSE OpenStack Cloud Crowbar
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Server
openSUSE Leap
Ubuntu
openEuler
Security QRadar Offenses Forwarder
OpenShift Data Foundation (formerly OpenShift Container Storage)
Red Hat OpenShift Container Platform
Splunk Enterprise
SUSE Linux Enterprise Module for Packagehub Subpackages
python3-mako
python-mako-doc
python2-mako
python-mako-help
python-mako
python-mako (Red Hat package)
python3-mako (Ubuntu package)
python-mako (Ubuntu package)
python-Mako
python3-Mako
python2-Mako
Spectrum Discover

How to mitigate CVE-2022-40023

Install update from vendor's website.

Mako - update to 1.2.2
Security QRadar Offenses Forwarder - update to 1.2.0
OpenShift Data Foundation (formerly OpenShift Container Storage) - addressed in versions 4.11.9, 4.12.3, 4.12.4, 4.13.0
Red Hat OpenShift Container Platform - addressed in versions 4.13.2, 4.13.45, 4.14.32, 4.14.33
Splunk Enterprise - addressed in versions 8.2.12, 9.0.6, 9.1.1
python3-mako - update to 1.0.6-14
python-mako-doc - update to 1.0.6-14
python2-mako - update to 1.0.6-14
python-mako-help - update to 1.0.6-14
python3-mako - update to 1.0.6-14
python-mako - update to 1.0.6-14
python-mako (Red Hat package) - addressed in versions 1.0.6-14.el8, 1.1.4-6.el9
python3-mako (Ubuntu package) - addressed in versions 1.0.7+ds1-1ubuntu0.2, 1.1.0+ds1-1ubuntu2.1, 1.1.3+ds1-2ubuntu0.1, 1.1.3+ds1-3ubuntu2.1
python-mako (Ubuntu package) - addressed in versions 1.0.7+ds1-1ubuntu0.2, 1.1.0+ds1-1ubuntu2.1
python-Mako - addressed in versions 1.0.7-3.3.1, 1.0.7-4.3.1
python3-Mako - update to 1.0.7-150000.3.3.1
python2-Mako - update to 1.0.7-150000.3.3.1
python-mako - update to 1.1.4-3
Spectrum Discover - addressed in versions 2.0.4.8, 2.1.1

External References

Related Security Bulletins