Skip to content
Heist/ feed
Back to feed
HighFix available

php-guzzlehttp-psr7, php-nyholm-psr7 — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2023-29197

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
php-guzzlehttp-psr7, php-nyholm-psr7
Affected versions
Not specified
Fixed versions
1.5.1-2, 2.4.5-1
CVEs
CVE-2023-29197
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 15:47 UTC · Revision 1

Source evidence

DEBIAN-CVE-2023-29197

core-osv · Original source

Published 17 Apr 2023, 22:15 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:DEBIAN-CVE-2023-29197

php-guzzlehttp-psr7

Fixed versions: 2.4.5-1

php-guzzlehttp-psr7

Fixed versions: 2.4.5-1

php-guzzlehttp-psr7

Fixed versions: 2.4.5-1

php-nyholm-psr7

Fixed versions: 1.5.1-2

php-nyholm-psr7

Fixed versions: 1.5.1-2

php-nyholm-psr7

Fixed versions: 1.5.1-2

Complete source record
{
  "id": "0b8eb62b96bb8a0a193b13d11e797ad4cbe868fa96d2ca46360f83c4189eca76",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-29197",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2023-29197",
    "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:DEBIAN-CVE-2023-29197",
    "products": [
      {
        "name": {
          "value": "php-guzzlehttp-psr7",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.4.5-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "php-guzzlehttp-psr7",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.4.5-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "php-guzzlehttp-psr7",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.4.5-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "php-nyholm-psr7",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.5.1-2",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "php-nyholm-psr7",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.5.1-2",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "php-nyholm-psr7",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.5.1-2",
            "evidence": "/affected/5/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2023-29197",
      "aliases": [
        "DEBIAN-CVE-2023-29197"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.4.5-1"
                }
              ]
            }
          ],
          "package": {
            "name": "php-guzzlehttp-psr7",
            "purl": "pkg:deb/debian/php-guzzlehttp-psr7?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-29197.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.4.5-1"
                }
              ]
            }
          ],
          "package": {
            "name": "php-guzzlehttp-psr7",
            "purl": "pkg:deb/debian/php-guzzlehttp-psr7?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-29197.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.4.5-1"
                }
              ]
            }
          ],
          "package": {
            "name": "php-guzzlehttp-psr7",
            "purl": "pkg:deb/debian/php-guzzlehttp-psr7?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-29197.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.5.1-2"
                }
              ]
            }
          ],
          "package": {
            "name": "php-nyholm-psr7",
            "purl": "pkg:deb/debian/php-nyholm-psr7?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-29197.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.5.1-2"
                }
              ]
            }
          ],
          "package": {
            "name": "php-nyholm-psr7",
            "purl": "pkg:deb/debian/php-nyholm-psr7?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-29197.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.5.1-2"
                }
              ]
            }
          ],
          "package": {
            "name": "php-nyholm-psr7",
            "purl": "pkg:deb/debian/php-nyholm-psr7?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-29197.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T18:01:48.510247942Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-29197"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2023-29197"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-29197",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 455704,
  "published_at": "2023-04-17T22:15:09.947+00:00"
}