CVE-2022-24775
HIGH 7.5CVSS 3.1Improper Input Validation in guzzlehttp/psr7
guzzlehttp/psr7 is a PSR-7 HTTP message library. Versions prior to 1.8.4 and 2.1.1 are vulnerable to improper header parsing. An attacker could sneak in a new line character and pass untrusted values. The issue is patched in 1.8.4 and 2.1.1. There are currently no known workarounds.
- Published
- 21 Mar 2022
- Last modified
- 19 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- BIT-drupal-2022-24775DRUPAL-CORE-2022-006GHSA-q7rv-6hp3-vh96
- Sources
- NVDJSONOSV DRUPAL-CORE-2022-006JSONOSV GHSA-q7rv-6hp3-vh96JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | drupal | drupalcpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:* |
>= 8.0.0, < 9.2.16 | 9.2.16 |
| NVD | drupal | drupalcpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:* |
>= 9.3.0, < 9.3.9 | 9.3.9 |
| NVD | guzzlephp | psr-7cpe:2.3:a:guzzlephp:psr-7:*:*:*:*:*:*:*:* |
< 1.8.4 | 1.8.4 |
| NVD | guzzlephp | psr-7cpe:2.3:a:guzzlephp:psr-7:*:*:*:*:*:*:*:* |
>= 2.0.0, < 2.1.1 | 2.1.1 |
| OSV | Packagist | drupal/core | >= 8.0.0, < 9.2.16; >= 9.3.0, < 9.3.9 | 9.2.16, 9.3.9 |
| OSV | Packagist | guzzlehttp/psr7 | < 1.8.4 | 1.8.4 |
| OSV | Packagist | guzzlehttp/psr7 | >= 2.0.0, < 2.1.1 | 2.1.1 |
References
- https://github.com/guzzle/psr7/pull/485/commits/e55afaa3fc138c89adf3b55a8ba20dc60d17f1f1 · Patch, Third Party Advisory, WEB
- https://github.com/guzzle/psr7/pull/486/commits/9a96d9db668b485361ed9de7b5bf1e54895df1dc · Patch, Third Party Advisory, WEB
- https://github.com/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96 · Third Party Advisory, WEB
- https://www.drupal.org/sa-core-2022-006 · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-24775 · ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/psr7/CVE-2022-24775.yaml · WEB
- https://github.com/guzzle/psr7 · PACKAGE
- https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4 · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 21 Mar 2022)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 25 Mar 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Mar 2022)