GHSA-wxmh-65f7-jcvw

Suggest an improvement
Source
https://github.com/advisories/GHSA-wxmh-65f7-jcvw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/04/GHSA-wxmh-65f7-jcvw/GHSA-wxmh-65f7-jcvw.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-wxmh-65f7-jcvw
Aliases
Published
2023-04-19T18:25:53Z
Modified
2024-08-01T03:50:08.107423Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
Improper header name validation in guzzlehttp/psr7
Details

Impact

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.

Patches

The issue is patched in 1.9.1 and 2.4.5.

Workarounds

There are no known workarounds.

References

  • https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4
Database specific
{
    "nvd_published_at": "2023-04-17T22:15:09Z",
    "cwe_ids": [
        "CWE-436"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-04-19T18:25:53Z"
}
References

Affected packages

Packagist / guzzlehttp/psr7

Package

Name
guzzlehttp/psr7
Purl
pkg:composer/guzzlehttp/psr7

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.9.1

Affected versions

1.*

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

Packagist / guzzlehttp/psr7

Package

Name
guzzlehttp/psr7
Purl
pkg:composer/guzzlehttp/psr7

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
2.4.5

Affected versions

2.*

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