CVE-2023-29197
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedguzzlehttp/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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe guzzlehttp/psr7 PHP library has improper header parsing that allows attackers to inject newline characters into HTTP header names and values. While RFC 7230 specifies CRLF (\r\n) sequences to terminate headers, many servers also accept LF (\n) alone, enabling HTTP response splitting or header injection attacks. This is an incomplete fix from CVE-2022-24775.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 37= 38< 1.9.1>= 2.0.0, < 2.4.5CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Locate guzzlehttp/psr7 installationSearch for the guzzlehttp/psr7 library in your project by checking the vendor/guzzlehttp/psr7 directory, composer.json requires section, or composer.lock file for the psr7 package entryAffected if The guzzlehttp/psr7 package is present in your dependencies
-
Determine installed psr7 version from composerRun 'composer show guzzlehttp/psr7' to display the installed version, or read the version from the 'version' field in the psr7 section of your composer.lock fileAffected if The version displayed cannot be determined or is missing from dependency files
-
Compare version against affected rangesCheck if the installed version falls into < 1.9.1 or >= 2.0.0 and < 2.4.5 by comparing the version number you foundAffected if The version is below 1.9.1, or is 2.0.0 through 2.4.4 inclusive
-
Check Fedora system package (if applicable)If running on Fedora 37 or 38, run 'rpm -q guzzlehttp-psr7' to query the installed package version from the system package managerAffected if The system package version is below what Fedora ships as the fixed version (check against the affected Fedora versions 37 and 38)
Your environment is affected if guzzlehttp/psr7 version is found to be below 1.9.1, or between 2.0.0 and 2.4.4 inclusive, regardless of whether the library is used in a vulnerable way.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped1.9.12.4.5
Upgrade guzzlehttp/psr7 to version 1.9.1 or 2.4.5. There are no workarounds; all affected deployments must upgrade to receive the patch.
guzzlehttp/psr7 version 1.9.1 or 2.4.5 depending on your major version branch
- Identify the current version of guzzlehttp/psr7 in your project by checking your composer.json or lock file
- If using version 1.x (< 1.9.1): Run 'composer require guzzlehttp/psr7:^1.9.1' to upgrade to the fixed version
- If using version 2.x (>= 2.0.0 and < 2.4.5): Run 'composer require guzzlehttp/psr7:^2.4.5' to upgrade to the fixed version
- Run 'composer update guzzlehttp/psr7' to apply the changes
- Verify the installed version matches the expected fixed version using 'composer show guzzlehttp/psr7'
- Test your application thoroughly to ensure the upgrade does not break existing functionality
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation2.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,752.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2023-29197 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2023-29197 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data