Inefficient regular expression complexity in Hawk - CVE-2022-29167

 

Inefficient regular expression complexity in Hawk - CVE-2022-29167

Published: May 31, 2023


Vulnerability identifier: #VU76722
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-29167
CWE-ID: CWE-1333
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 untrusted input with a regular expressions within the Hawk.utils.parseHost() function. A remote attacker can pass specially crafted HTTP header to the application and perform regular expression denial of service (ReDos) attack.


Affected software

Hawk
Ubuntu
openEuler
nodejs-hawk
node-hawk (Ubuntu package)

How to mitigate CVE-2022-29167

Install updates from vendor's website.

Hawk - update to 9.0.1
nodejs-hawk - update to 4.1.2-2
node-hawk (Ubuntu package) - addressed in versions 6.0.1+dfsg-1+deb10u1build0.18.04.1, 7.1.2+dfsg-1ubuntu0.1, 8.0.1+dfsg-1ubuntu0.22.04.1, 8.0.1+dfsg-1ubuntu0.22.10.1

External References

Related Security Bulletins