p PatchFirst

CVE-2023-29197

CVE-2023-29197 · Improper header name validation in guzzlehttp/psr7

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 5.3 · Medium · EPSS 1.2% · Fix available

Published
Updated

Stack: system · php

Affected products and versions

  • psr7

    Versions
    • < 1.9.1: Affected
    • >= 2.0.0, < 2.4.5: Affected

    No fix published

  • php-guzzlehttp-psr7 Debian:12

    Affected ranges
    • ECOSYSTEM: < 2.4.5-1

    Update to 2.4.5-1

  • php-guzzlehttp-psr7 Debian:13

    Affected ranges
    • ECOSYSTEM: < 2.4.5-1

    Update to 2.4.5-1

  • php-guzzlehttp-psr7 Debian:14

    Affected ranges
    • ECOSYSTEM: < 2.4.5-1

    Update to 2.4.5-1

  • php-nyholm-psr7 Debian:12

    Affected ranges
    • ECOSYSTEM: < 1.5.1-2

    Update to 1.5.1-2

  • php-nyholm-psr7 Debian:13

    Affected ranges
    • ECOSYSTEM: < 1.5.1-2

    Update to 1.5.1-2

  • php-nyholm-psr7 Debian:14

    Affected ranges
    • ECOSYSTEM: < 1.5.1-2

    Update to 1.5.1-2

  • guzzlehttp/psr7 Packagist

    Versions
    • 1.0.0
    • 1.1.0
    • 1.2.0
    • 1.2.1
    • 1.2.2
    • 1.2.3
    • 1.3.0
    • 1.3.1
    • 1.4.0
    • 1.4.1
    • 1.4.2
    • 1.5.0
    • 1.5.1
    • 1.5.2
    • 1.6.0
    • 1.6.1
    • 1.7.0
    • 1.8.0
    • 1.8.1
    • 1.8.2
    • 1.8.3
    • 1.8.4
    • 1.8.5
    • 1.9.0
    Affected ranges
    • ECOSYSTEM: < 1.9.1

    Update to 1.9.1

  • guzzlehttp/psr7 Packagist

    Versions
    • 2.0.0
    • 2.1.0
    • 2.1.1
    • 2.1.2
    • 2.2.0
    • 2.2.1
    • 2.2.2
    • 2.3.0
    • 2.4.0
    • 2.4.1
    • 2.4.2
    • 2.4.3
    • 2.4.4
    Affected ranges
    • ECOSYSTEM: ≥ 2.0.0, < 2.4.5

    Update to 2.4.5

  • php-guzzlehttp-psr7 Ubuntu:16.04:LTS

    Versions
    • 1.1.0-1
    • 1.2.0-1
    • 1.2.1-1
    • 1.2.2-1
    • 1.2.2-1build1
    • 1.2.2-1ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • php-guzzlehttp-psr7 Ubuntu:20.04:LTS

    Versions
    • 1.4.2-0.1
    Affected ranges
    • ECOSYSTEM: < 1.4.2-0.1+deb10u2build0.20.04.1

    Update to 1.4.2-0.1+deb10u2build0.20.04.1

  • php-nyholm-psr7 Ubuntu:20.04:LTS

    Versions
    • 1.1.0-2
    • 1.2.1-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • php-guzzlehttp-psr7 Ubuntu:Pro:22.04:LTS

    Versions
    • 1.7.0-1
    • 1.8.3-1
    Affected ranges
    • ECOSYSTEM: < 1.8.3-1ubuntu0.1~esm1

    Update to 1.8.3-1ubuntu0.1~esm1

  • php-nyholm-psr7 Ubuntu:Pro:22.04:LTS

    Versions
    • 1.3.2-2
    • 1.5.0-1
    Affected ranges
    • ECOSYSTEM: < 1.5.0-1ubuntu0.1~esm1

    Update to 1.5.0-1ubuntu0.1~esm1

Original sources

Check your server →