Skip to content
Heist/ feed
Back to feed
Medium

Improper header name validation in guzzlehttp/psr7

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-29197
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 19:18 UTC · Revision 1

Source evidence

Improper header name validation in guzzlehttp/psr7

core-osv · Original source

Published 17 Apr 2023, 21:08 UTC

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.

osv:CVE-2023-29197
Complete source record
{
  "id": "acafd81cb1e83d83f5f5e7c0a54a52a85ad7d966bfa39810057074c952803e88",
  "url": "https://osv.dev/vulnerability/CVE-2023-29197",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Improper header name validation in guzzlehttp/psr7",
    "summary": "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.",
    "evidence": "osv:CVE-2023-29197",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2023-29197",
      "aliases": [
        "CVE-2023-29197",
        "GHSA-wxmh-65f7-jcvw"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/guzzle/psr7",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "e4490cabc77465aaee90b20cfc9a770f8c04be6b"
                },
                {
                  "introduced": "1dc8d9cba3897165e16d12bb13d813afb1eb3fe7"
                },
                {
                  "fixed": "0454e12ef0cd597ccd2adb036f7bda4e7fface66"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:guzzlephp:psr-7:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.9.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:guzzlephp:psr-7:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.0.0"
                      },
                      {
                        "fixed": "2.4.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.4.4",
            "1.9.0",
            "2.4.3",
            "2.4.2",
            "2.4.1",
            "2.4.0",
            "1.8.5",
            "2.3.0",
            "2.2.2",
            "2.2.1",
            "2.2.0",
            "1.8.4",
            "2.1.0",
            "1.8.3",
            "2.0.0",
            "1.8.2",
            "1.8.1",
            "1.8.0",
            "1.7.0",
            "1.6.1",
            "1.6.0",
            "1.5.0",
            "1.5.2",
            "1.5.1",
            "1.4.2",
            "1.4.1",
            "1.4.0",
            "1.3.1",
            "1.3.0",
            "1.2.3",
            "1.2.2",
            "1.2.1",
            "1.2.0",
            "1.1.0",
            "1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-29197.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.583248346Z",
      "provider": "osv",
      "references": [
        "https://cve.mitre.org/cgi-bin/cvename.cgi?name=2022-24775",
        "https://lists.debian.org/debian-lts-announce/2023/12/msg00028.html",
        "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FJANWDXJZE5BGLN4MQ4FEHV5LJ6CMKQF/",
        "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O35UN4IK6VS2LXSRWUDFWY7NI73RKY2U/",
        "https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/29xxx/CVE-2023-29197.json",
        "https://github.com/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96",
        "https://github.com/guzzle/psr7/security/advisories/GHSA-wxmh-65f7-jcvw",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-29197"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-436"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/29xxx/CVE-2023-29197.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-29197",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 506085,
  "published_at": "2023-04-17T21:08:46.675+00:00"
}