CVE-2022-29167
published high CVSS 3.1 · 7.4ReDoS vulnerability in header parsing in hawk
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mozilla | — | hawk< 9.0.1 | Affected | Not stated | GitHub_M |
| Debian | buster | node-hawk | Advisory build | 6.0.1+dfsg-1+deb10u1 | DLA-3246-1 |
| Ubuntu | bionic | node-hawk | Advisory build | 6.0.1+dfsg-1+deb10u1build0.18.04.1 | USN-6116-1 |
| Ubuntu | focal | node-hawk | Advisory build | 7.1.2+dfsg-1ubuntu0.1 | USN-6116-1 |
| Ubuntu | jammy | node-hawk | Advisory build | 8.0.1+dfsg-1ubuntu0.22.04.1 | USN-6116-1 |
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()`.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.4 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| mozilla | hawk | < 9.0.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-400 CWE-400: Uncontrolled Resource Consumption
References
2Provider assertions
3GitHub_M · cna
ReDoS vulnerability in header parsing in hawk
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 4996a4c4eb20dbf723f3f3ace71621a2fdc1e7f5eb44e9cef3db3a107c5d3101
- Ingested
- 23 Sep 2026, 07:59:45 UTC
- Source record
- Official CVE record