Incorrect Regular Expression in sanitize-html - CVE-2022-25887

 

Incorrect Regular Expression in sanitize-html - CVE-2022-25887

Published: November 2, 2022


Vulnerability identifier: #VU68954
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-25887
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. A remote attacker can pass specially crafted data to the application and perform regular expression denial of service (ReDos) attack.


Affected software

sanitize-html
Red Hat Advanced Cluster Management for Kubernetes
IBM Cloud Pak for Business Automation
IBM Business Automation Workflow
Ubuntu
jupyter-notebook (Ubuntu package)
python3-notebook (Ubuntu package)

How to mitigate CVE-2022-25887

Install update from vendor's website.

sanitize-html - update to 2.7.1
Red Hat Advanced Cluster Management for Kubernetes - update to 2.6.2
IBM Cloud Pak for Business Automation - addressed in versions 21.0.3.17, 22.0.2.1
jupyter-notebook (Ubuntu package) - addressed in versions Ubuntu Pro, 6.4.13-2ubuntu0.1, 6.4.13-5ubuntu0.1
python3-notebook (Ubuntu package) - addressed in versions Ubuntu Pro, 6.4.13-2ubuntu0.1, 6.4.13-5ubuntu0.1
IBM Business Automation Workflow - addressed in versions 21.0.3 IF016, 22.0.2 IF001

External References

Related Security Bulletins