CVE-2022-29167

ReDoS vulnerability in header parsing in hawk

Published May 5, 2022 CVSS 3.1 · 7.4 High EPSS 1.1% KEV · Not listed
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()`.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3246-1 node-hawk security update
EUVD EUVD EUVD-2022-2298 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()`.
Github GHSA Github GHSA GHSA-44pw-h2cw-w3vq Uncontrolled Resource Consumption in Hawk
Ubuntu USN Ubuntu USN USN-6116-1 hawk vulnerability
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00092}

epss

{'score': 0.00134}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 23, 2025, 6:30 PM
Reserved
Apr 13, 2022, 12:00 AM
Status
Modified
Published
May 5, 2022, 11:15 PM
Modified
Jun 17, 2026, 4:39 AM
Severity
Moderate
Public date
May 6, 2022, 12:00 AM