7.5

CVE-2022-29167: ReDoS vulnerability in header parsing in hawk

Modified
AliasesMGASA-2024-0086UBUNTU-CVE-2022-29167USN-6116-1
Published 05-05-2022Last modified 23-04-2025

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 66.7% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.4, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
1.10%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 05-05-2022
    PublishedVulnerability first disclosed.
  2. 23-04-2025
    Last 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

EPSS trend

Probability

1.10%

Chance of exploitation in the next 30 days

Percentile

67%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.10% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

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
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
Show all 13 references