VDB

CVE-2023-29197

CVE-2023-29197 PUBLISHED CVSS 5.3 MEDIUM

Improper header name validation in guzzlehttp/psr7

Reported by github_m · Published April 17, 2023

guzzlehttp/psr7 is fixed in 2.4.5 and 1.9.1 (Packagist)

guzzlehttp/psr7 is a PSR-7 HTTP message library implementation in PHP. Affected versions are subject to improper header parsing. An attacker could sneak in a newline (\n) into both the header names and values. While the specification states that \r\n\r\n is used to terminate the header list, many servers in the wild will also accept \n\n. This is a follow-up to CVE-2022-24775 where the fix was incomplete. The issue has been patched in versions 1.9.1 and 2.4.5. There are no known workarounds for this vulnerability. Users are advised to upgrade.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
guzzlehttp/psr7Packagist2.4.5, 1.9.1

Risk scores

CVSS 3.1
5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Affected products

VendorProductVersions
guzzlepsr7< 1.9.1, >= 2.0.0, < 2.4.5
guzzlehttppsr70, 2.0.0
guzzlepsr70, 2.0.0

Timeline

  • Apr 17, 2023 CVE Published
  • Apr 18, 2023 EPSS Score (30 in total, the first dated here)
  • Oct 27, 2023 PoC Published
  • Nov 21, 2024 CVE Updated
  • Feb 17, 2026 Security Advisory (2 in total, the first dated here)
  • Mar 21, 2026 Distribution Patch

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-29197
vulnetix vdb fixes CVE-2023-29197

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-29197/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›