CVEfocus › CVE database › CVE-2022-29167

CVE-2022-29167ReDoS vulnerability in header parsing in hawk

CVSS 7.4 HighEPSS 1.1% (higher than 65% of CVEs)Published 2022-05-05Updated 2025-04-23Assigner: GitHub_M

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

CWE-400

What to do

Fixed builds are available from Debian, Ubuntu, npm: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fixed
9Will not fix
29Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04node-hawkFixed8.0.1+dfsg-1ubuntu0.22.04.1UBUNTU-CVE-2022-29167
Ubuntu 20.04node-hawkFixed7.1.2+dfsg-1ubuntu0.1UBUNTU-CVE-2022-29167
Ubuntu 18.04node-hawkFixed6.0.1+dfsg-1+deb10u1build0.18.04.1UBUNTU-CVE-2022-29167
Debian 14node-hawkFixed9.0.1-1DEBIAN-CVE-2022-29167
Debian 13node-hawkFixed9.0.1-1DEBIAN-CVE-2022-29167
Debian 12node-hawkFixed9.0.1-1DEBIAN-CVE-2022-29167
Red Hat Enterprise Linux 9firefoxWill not fix
Will not fix
Red Hat Enterprise Linux 9firefox-x11Will not fix
Will not fix
Red Hat Enterprise Linux 9gjsWill not fix
Will not fix
Red Hat Enterprise Linux 9gjs-develWill not fix
Will not fix
Red Hat Enterprise Linux 9polkitNot affected
Red Hat Enterprise Linux 9polkit-develNot affected
Red Hat Enterprise Linux 9polkit-docsNot affected
Red Hat Enterprise Linux 9polkit-libsNot affected
Red Hat Enterprise Linux 9thunderbirdWill not fix
Will not fix
Red Hat Enterprise Linux 8aspnetcore-runtime-3.1Not affected
Red Hat Enterprise Linux 8aspnetcore-runtime-5.0Not affected
Red Hat Enterprise Linux 8aspnetcore-targeting-pack-3.1Not affected
Red Hat Enterprise Linux 8aspnetcore-targeting-pack-5.0Not affected
Red Hat Enterprise Linux 8dotnetNot affected
Red Hat Enterprise Linux 8dotnet-apphost-pack-3.1Not affected
Red Hat Enterprise Linux 8dotnet-apphost-pack-5.0Not affected
Red Hat Enterprise Linux 8dotnet-hostNot affected
Red Hat Enterprise Linux 8dotnet-hostfxr-3.1Not affected
Red Hat Enterprise Linux 8dotnet-hostfxr-5.0Not affected
Red Hat Enterprise Linux 8dotnet-runtime-3.1Not affected
Red Hat Enterprise Linux 8dotnet-runtime-5.0Not affected
Red Hat Enterprise Linux 8dotnet-sdk-3.1Not affected
Red Hat Enterprise Linux 8dotnet-sdk-3.1-source-built-artifactsNot affected
Red Hat Enterprise Linux 8dotnet-sdk-5.0Not affected
Red Hat Enterprise Linux 8dotnet-sdk-5.0-source-built-artifactsNot affected
Red Hat Enterprise Linux 8dotnet-targeting-pack-3.1Not affected
Red Hat Enterprise Linux 8dotnet-targeting-pack-5.0Not affected
Red Hat Enterprise Linux 8dotnet-templates-3.1Not affected
Red Hat Enterprise Linux 8dotnet-templates-5.0Not affected
Red Hat Enterprise Linux 8dotnet3.1Not affected
Red Hat Enterprise Linux 8dotnet5.0Not affected
Red Hat Enterprise Linux 8firefoxWill not fix
Will not fix
Red Hat Enterprise Linux 8mozjs60Not affected
Red Hat Enterprise Linux 8mozjs60-develNot affected
Red Hat Enterprise Linux 8netstandard-targeting-pack-2.1Not affected
Red Hat Enterprise Linux 8thunderbirdWill not fix
Will not fix
Red Hat Enterprise Linux 7firefoxWill not fix
Out of support scope
Red Hat Enterprise Linux 6firefoxWill not fix
Out of support scope
npm libraryhawkFixed9.0.1GHSA-44pw-h2cw-w3vq

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.