CVE-2022-29167

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-29167
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-29167.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-29167
Aliases
Downstream
Related
Published
2022-05-05T22:55:10Z
Modified
2025-12-04T10:20:08.011665Z
Severity
  • 7.4 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H CVSS Calculator
Summary
ReDoS vulnerability in header parsing in hawk
Details

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().

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-400"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29167.json"
}
References

Affected packages

Git / github.com/mozilla/hawk

Affected ranges

Type
GIT
Repo
https://github.com/mozilla/hawk
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed