CVE-2022-29167: mozilla hawk Uncontrolled Resource Consumption
Vulnerability summary
CVE-2022-29167 is a high (CVSS 7.5) Uncontrolled Resource Consumption vulnerability in mozilla hawk. EPSS estimates a 1.10% chance of exploitation in the next 30 days, higher than 65.1% of scored vulnerabilities.
Timeline
- 05-05-2022PublishedVulnerability first disclosed.
- 23-04-2025Last modifiedVulnerability information updated.
Description
Hawk is an HTTP authentication scheme providing mechanisms for making authenticated HTTP requests with partial cryptographic verification of the request and response, covering the HTTP method, request URI, host, and optionally the request payload. Hawk used a regular expression to parse `Host` HTTP header (`Hawk.utils.parseHost()`), which was subject to regular expression DoS attack - meaning each added character in the attacker's input increases the computation time exponentially. `parseHost()` was patched in `9.0.1` to use built-in `URL` class to parse hostname instead. `Hawk.authenticate()` accepts `options` argument. If that contains `host` and `port`, those would be used instead of a call to `utils.parseHost()`.
CVSS metrics
6 scores · 5 sources · 2 versions- CVE.orgCNA7.4HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated7.4HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:HDiffers
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · NpmEcosystem advisory · calculated7.4HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:HDiffers
EPSS trend
Probability
1.10%
Chance of exploitation in the next 30 days
Percentile
65%
Versus all other CVEs
30-day change
-0.01 pp
From 1.11% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-400Uncontrolled Resource ConsumptionThe product does not properly control the allocation and maintenance of a limited resource.
- CWE-1333Inefficient Regular Expression ComplexityThe product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.
Affected systems
Debian1 product
- node-hawk< 6.0.1+dfsg-1+deb10u1 | < 9.0.1-1
Mageia1 product
- nodejs-hawk< 7.0.10-4.1.mga9
Mozilla1 product
- hawk< 9.0.1
Npm1 product
- hawk< 9.0.1
Ubuntu1 product
- node-hawk< 6.0.1+dfsg-1+deb10u1build0.18.04.1 | < 7.1.2+dfsg-1ubuntu0.1 | < 8.0.1+dfsg-1ubuntu0.22.04.1
5 vendors · 5 products
References
13 links- github.com/mozilla/hawk/security/advisories/GHSA-44pw-h2cw-w3vqX Refsource CONFIRMAdvisoryREPORTWEBPatchThird Party Advisory
Show all 13 references
- github.com/mozilla/hawkPACKAGE