What’s Vulnerable › Vulnerabilities
CVE-2022-24775: Improper Input Validation in guzzlehttp/psr7
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-03-21 · updated 2026-06-17
- Weakness: CWE-20
Description
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.
Affected products
- Drupal: from 8.0.0 before 9.2.16; from 9.3.0 before 9.3.9 — fixed in 9.2.16, 9.3.9
- Guzzlephp Psr-7: before 1.8.4; from 2.0.0 before 2.1.1 — fixed in 1.8.4, 2.1.1
- Packagist Guzzlehttp/Psr7: before 1.8.4; from 2.0.0 before 2.1.1; 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.2.2, 1.2.3 (+17) — fixed in 1.8.4, 2.1.1
How to fix
Upgrade to a fixed version: Drupal 9.2.16, 9.3.9; Guzzlephp Psr-7 1.8.4, 2.1.1; Packagist Guzzlehttp/Psr7 1.8.4, 2.1.1. Check the vendor advisory for mitigations.
References
- https://github.com/guzzle/psr7/pull/485/commits/e55afaa3fc138c89adf3b55a8ba20dc60d17f1f1
- https://github.com/guzzle/psr7/pull/486/commits/9a96d9db668b485361ed9de7b5bf1e54895df1dc
- https://github.com/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96
- https://www.drupal.org/sa-core-2022-006
- https://github.com/guzzle/psr7/pull/485/commits/e55afaa3fc138c89adf3b55a8ba20dc60d17f1f1
- https://github.com/guzzle/psr7/pull/486/commits/9a96d9db668b485361ed9de7b5bf1e54895df1dc
- https://github.com/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96
- https://www.drupal.org/sa-core-2022-006
Get alerted when CVE-2022-24775 or the next vulnerability affects your stack