CVE-2022-29167
ReDoS vulnerability in header parsing in hawk
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().
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.4
ReDoS vulnerability in header parsing in hawk
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().
- Record
CVE-2022-29167- CVSS 3.1
- 7.4 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H - Weakness
- CWE-400
- Updated
- 2026-11-02
EUVDEUVD-2022-2298
7.4
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().
- Record
EUVD-2022-2298- CVSS 3.1
- 7.4 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-44pw-h2cw-w3vq
7.4
Uncontrolled Resource Consumption in Hawk
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().
- Record
GHSA-44pw-h2cw-w3vq- CVSS 3.1
- 7.4 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H - Weakness
- CWE-400, CWE-1333
- Updated
- 2026-11-02
NVD
7.4
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().
- Record
CVE-2022-29167- CVSS 3.1
- 7.4 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-400, CWE-1333
- Updated
- 2026-11-02
OSV
7.4
ReDoS vulnerability in header parsing in hawk
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().
- Record
CVE-2022-29167- CVSS 3.1
- 7.4 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H - Weakness
- CWE-400
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2022-29167
7.5
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().
- Record
DEBIAN-CVE-2022-29167- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
Show 11 moreShow less
OSVGHSA-44pw-h2cw-w3vq
7.4
Uncontrolled Resource Consumption in Hawk
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().
- Record
GHSA-44pw-h2cw-w3vq- CVSS 3.1
- 7.4 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H - Weakness
- CWE-1333, CWE-400
- Updated
- 2026-11-02
OSVOESA-2022-1667
7.5
nodejs-hawk security update
Hawk is an HTTP authentication scheme using a message authentication code (MAC) algorithm to provide partial HTTP request cryptographic verification.
Security Fix(es):
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().(CVE-2022-29167)
- Record
OESA-2022-1667- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-29167
7.5
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().
- Record
UBUNTU-CVE-2022-29167- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 3.1
- 7.4 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H - Updated
- 2026-11-02
OSVCLSA-2026-1772583205 No score
TuxCare security update for hawk (2 CVEs)
TuxCare rebuilt hawk to address 2 CVEs. Fixed in 2.3.1-tuxcare.1.
- Record
CLSA-2026-1772583205- Updated
- 2026-11-02
OSVCLSA-2026-1773015258 No score
TuxCare security update for hawk (2 CVEs)
TuxCare rebuilt hawk to address 2 CVEs. Fixed in 3.1.0-tuxcare.1.
- Record
CLSA-2026-1773015258- Updated
- 2026-11-02
OSVCLSA-2026-1774743811 No score
TuxCare security update for hawk (2 CVEs)
TuxCare rebuilt hawk to address 2 CVEs. Fixed in 0.13.1-tuxcare.1.
- Record
CLSA-2026-1774743811- Updated
- 2026-11-02
OSVCLSA-2026-1774743812 No score
TuxCare security update for hawk (2 CVEs)
TuxCare rebuilt hawk to address 2 CVEs. Fixed in 1.0.0-tuxcare.1.
- Record
CLSA-2026-1774743812- Updated
- 2026-11-02
OSVCLSA-2026-1774743813 No score
TuxCare security update for hawk (2 CVEs)
TuxCare rebuilt hawk to address 2 CVEs. Fixed in 1.1.1-tuxcare.1.
- Record
CLSA-2026-1774743813- Updated
- 2026-11-02
OSVCLSA-2026-1776818225 No score
TuxCare security update for hawk (1 CVE)
TuxCare rebuilt hawk to address 1 CVE. Fixed in 3.1.3-tuxcare.3.
- Record
CLSA-2026-1776818225- Updated
- 2026-11-02
OSVMGASA-2024-0086 No score
Updated nodejs-hawk packages fix security vulnerability
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(). (CVE-2022-29167)
- Record
MGASA-2024-0086- Updated
- 2026-11-02
OSVUSN-6116-1 No score
node-hawk vulnerability
It was discovered that hawk incorrectly handled certain inputs. If a user or an automated system were tricked into opening a specially crafted input file, a remote attacker could possibly use this issue to cause a denial of service.
- Record
USN-6116-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
hawknpm |
before 9.0.1 | 9.0.1 |
hawkTuxCare:npm |
2.3.1-tuxcare.0 up to 2.3.1-tuxcare.1, plus listed versions 2.3.1 |
2.3.1-tuxcare.1 |
hawkTuxCare:npm |
3.1.0-tuxcare.0 up to 3.1.0-tuxcare.1, plus listed versions 3.1.0 |
3.1.0-tuxcare.1 |
hawkTuxCare:npm |
0.13.1-tuxcare.0 up to 0.13.1-tuxcare.1, plus listed versions 0.13.1 |
0.13.1-tuxcare.1 |
hawkTuxCare:npm |
1.0.0-tuxcare.0 up to 1.0.0-tuxcare.1, plus listed versions 1.0.0 |
1.0.0-tuxcare.1 |
hawkTuxCare:npm |
1.1.1-tuxcare.0 up to 1.1.1-tuxcare.1, plus listed versions 1.1.1 |
1.1.1-tuxcare.1 |
hawkTuxCare:npm |
3.1.3-tuxcare.0 up to 3.1.3-tuxcare.3, plus listed versions 3.1.33.1.3-tuxcare.13.1.3-tuxcare.2 |
3.1.3-tuxcare.3 |
node-hawkDebian:12 |
before 9.0.1-1 | 9.0.1-1 |
node-hawkDebian:13 |
before 9.0.1-1 | 9.0.1-1 |
node-hawkDebian:14 |
before 9.0.1-1 | 9.0.1-1 |
Show 8 moreShow less
| Package | Affected | Fixed |
|---|---|---|
node-hawkDebian:10 |
before 6.0.1+dfsg-1+deb10u1, plus listed versions 6.0.1+dfsg-1 |
6.0.1+dfsg-1+deb10u1 |
nodejs-hawkMageia:9 |
before 7.0.10-4.1.mga9 | 7.0.10-4.1.mga9 |
nodejs-hawkopenEuler:20.03-LTS-SP1 |
before 4.1.2-2.oe1 | 4.1.2-2.oe1 |
nodejs-hawkopenEuler:20.03-LTS-SP3 |
before 4.1.2-2.oe1 | 4.1.2-2.oe1 |
nodejs-hawkopenEuler:22.03-LTS |
before 4.1.2-2.oe2203 | 4.1.2-2.oe2203 |
node-hawkUbuntu:18.04:LTS |
before 6.0.1+dfsg-1+deb10u1build0.18.04.1, plus listed versions 6.0.1+dfsg-1 |
6.0.1+dfsg-1+deb10u1build0.18.04.1 |
node-hawkUbuntu:20.04:LTS |
before 7.1.2+dfsg-1ubuntu0.1, plus listed versions 7.1.1+dfsg-27.1.2+dfsg-1 |
7.1.2+dfsg-1ubuntu0.1 |
node-hawkUbuntu:22.04:LTS |
before 8.0.1+dfsg-1ubuntu0.22.04.1, plus listed versions 8.0.1+dfsg-1 |
8.0.1+dfsg-1ubuntu0.22.04.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-29167 is a high vulnerability (CVSS 7.4) in Mozilla Hawk, published May 5, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.10%, the 65th percentile. Fixed in hawk 9.0.1.
References
github.com/mozilla/hawk/security/advisories/GHSA-44pw-h2cw-w3vq
github.com/mozilla/hawk/pull/286
nvd.nist.gov/vuln/detail/CVE-2022-29167
github.com/mozilla/hawk/commit/d10d72ca82db967f6c5fcf866ff78e3ca25ce1ab
github.com/advisories/GHSA-44pw-h2cw-w3vq
github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29167.json
Show 10 moreShow less
security-tracker.debian.org/tracker/CVE-2022-29167
github.com/mozilla/hawk
advisories.mageia.org/MGASA-2024-0086.html
bugs.mageia.org/show_bug.cgi?id=31313
debian.org/lts/security/2022/dla-3246
ubuntu.com/security/notices/USN-6116-1
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1667
ubuntu.com/security/CVE-2022-29167
github.com/mozilla/hawk/commit/ade134119bf1fdc4909d00f5a952c966f0075ad3
cve.org/CVERecord?id=CVE-2022-29167