Incorrect regular expression in css-what - CVE-2022-21222

 

Incorrect regular expression in css-what - CVE-2022-21222

Published: May 16, 2023


Vulnerability identifier: #VU76184
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-21222
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 in the re_attr variable of index.js. A remote attacker can pass specially crafted data to the application and perform regular expression denial of service (ReDos) attack.


Affected software

css-what
Ubuntu
node-css-what (Ubuntu package)
IBM Cloud Pak for Multicloud Management Security Services

How to mitigate CVE-2022-21222

Install update from vendor's website.

css-what - update to 2.1.3
node-css-what (Ubuntu package) - addressed in versions Ubuntu Pro, 2.1.0-1+deb10u1build0.18.04.1
IBM Cloud Pak for Multicloud Management Security Services - update to 2.3 Fix Pack 6

External References

Related Security Bulletins