{"schemaVersion":3,"id":"CVE-2022-29167","aliases":["MGASA-2024-0086","UBUNTU-CVE-2022-29167","USN-6116-1","DEBIAN-CVE-2022-29167","DLA-3246-1","GHSA-44pw-h2cw-w3vq"],"status":"published","duplicateOf":null,"title":null,"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()`.","dates":{"published":"2022-05-05T22:55:10.000Z","modified":"2025-04-23T18:30:44.456Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H","exploitability":7.2,"impact":6.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H","exploitability":7.2,"impact":6.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01101,"percentile":0.65186,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.01299999999999999,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01114},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01114,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01114,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01114,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01114,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01114,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01114,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01114,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01114,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01114,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01114,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01132,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01132,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01101,"percentile":0.65186}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01114,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01114,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01114,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01114,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01114,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01132,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01132,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01101,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01101,"percentile":0.65186}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption","description":"The product does not properly control the allocation and maintenance of a limited resource.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/400.html"},{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity","description":"The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/1333.html"}],"affected":[{"vendor":"debian","product":"node-hawk","name":"node-hawk","label":"node-hawk","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/node-hawk","purlType":"deb","versions":[{"text":"< 6.0.1+dfsg-1+deb10u1","noFixRecorded":false,"fixedIn":null},{"text":"< 9.0.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.0.1+dfsg-1+deb10u1 | < 9.0.1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"node-hawk","name":"node-hawk","label":"node-hawk","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/node-hawk","purlType":"deb","versions":[{"text":"< 6.0.1+dfsg-1+deb10u1build0.18.04.1","noFixRecorded":false,"fixedIn":null},{"text":"< 7.1.2+dfsg-1ubuntu0.1","noFixRecorded":false,"fixedIn":null},{"text":"< 8.0.1+dfsg-1ubuntu0.22.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.0.1+dfsg-1+deb10u1build0.18.04.1 | < 7.1.2+dfsg-1ubuntu0.1 | < 8.0.1+dfsg-1ubuntu0.22.04.1","eol":null,"hubHref":null},{"vendor":"mageia","product":"nodejs-hawk","name":"nodejs-hawk","label":"nodejs-hawk","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/nodejs-hawk","purlType":"rpm","versions":[{"text":"< 7.0.10-4.1.mga9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.0.10-4.1.mga9","eol":null,"hubHref":null},{"vendor":"mozilla","product":"hawk","name":"hawk","label":"hawk","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 9.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.0.1","eol":null,"hubHref":"/vendor/mozilla/hawk"},{"vendor":"Npm","product":"hawk","name":"hawk","label":"hawk","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/hawk","purlType":"npm","versions":[{"text":"< 9.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.0.1","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/mozilla/hawk/security/advisories/GHSA-44pw-h2cw-w3vq","label":"github.com/mozilla/hawk/security/advisories/GHSA-44pw-h2cw-w3vq","hostname":"github.com","tags":["X Refsource CONFIRM","Advisory","REPORT","WEB","Patch","Third Party Advisory"]},{"url":"https://github.com/mozilla/hawk/pull/286","label":"github.com/mozilla/hawk/pull/286","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB","Patch","Third Party Advisory"]},{"url":"https://advisories.mageia.org/MGASA-2024-0086.html","label":"advisories.mageia.org/MGASA-2024-0086.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=31313","label":"bugs.mageia.org/show_bug.cgi?id=31313","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://www.debian.org/lts/security/2022/dla-3246","label":"www.debian.org/lts/security/2022/dla-3246","hostname":"www.debian.org","tags":["WEB"]},{"url":"https://ubuntu.com/security/notices/USN-6116-1","label":"ubuntu.com/security/notices/USN-6116-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-29167","label":"ubuntu.com/security/CVE-2022-29167","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://github.com/mozilla/hawk/commit/ade134119bf1fdc4909d00f5a952c966f0075ad3","label":"github.com/mozilla/hawk/commit/ade134119bf1fdc4909d00f5a952c966f0075ad3","hostname":"github.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-29167","label":"www.cve.org/CVERecord?id=CVE-2022-29167","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-29167","label":"security-tracker.debian.org/tracker/CVE-2022-29167","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29167","label":"nvd.nist.gov/vuln/detail/CVE-2022-29167","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/mozilla/hawk/commit/d10d72ca82db967f6c5fcf866ff78e3ca25ce1ab","label":"github.com/mozilla/hawk/commit/d10d72ca82db967f6c5fcf866ff78e3ca25ce1ab","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/mozilla/hawk","label":"github.com/mozilla/hawk","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-05-05T22:55:10.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-23T18:30:44.456Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T22:41:46.021Z","stale":false,"partial":false}}