{"id":"CVE-2022-29167","published":"2022-05-05T22:55:10Z","modified":"2025-04-23T18:30:44Z","title":"ReDoS vulnerability in header parsing in hawk","vendor":"Mozilla","product":"hawk","tier":"tail","description":{"text":"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()`.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01101,"percentile":0.665,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/mozilla/hawk/security/advisories/GHSA-44pw-h2cw-w3vq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mozilla/hawk/pull/286","tags":["x_refsource_MISC"]}],"priority":{"score":18.5,"factors":[{"name":"EPSS percentile","points":13.3},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"mozilla","affectedVersions":[{"vendor":"mozilla","product":"hawk","versions":["< 9.0.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:07:46.041057Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"hawk","vulnerableRanges":["<9.0.1"],"patched":["9.0.1"],"from":["GHSA-44pw-h2cw-w3vq"],"provenance":"source"}],"summary":{"text":"The hawk HTTP authentication library, maintained by Mozilla, contains a regular expression denial-of-service flaw in its Hawk.utils.parseHost() function, which parses the Host header using a regex whose processing time grows exponentially with input length. An attacker who can send a crafted Host header to a service using the affected parser can exhaust computing resources and make it unavailable, with user interaction required (the attack is triggered via a request that a user must cause, and the impact is availability only, with no confidentiality or integrity loss).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:41Z"},"euvd":{"id":"EUVD-2022-2298","exploited":false,"provenance":"source"}}