GHSA-9jxr-mwpp-w643

Suggest an improvement
Source
https://github.com/advisories/GHSA-9jxr-mwpp-w643
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/04/GHSA-9jxr-mwpp-w643/GHSA-9jxr-mwpp-w643.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9jxr-mwpp-w643
Published
2023-04-21T20:27:12Z
Modified
2024-12-06T05:39:27.356128Z
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 validation in httpsoft/http-message
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.0.12.

Workarounds

There are no known workarounds.

References

  • https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4
Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-436"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-04-21T20:27:12Z"
}
References

Affected packages

Packagist / httpsoft/http-message

Package

Name
httpsoft/http-message
Purl
pkg:composer/httpsoft/http-message

Affected ranges

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

Affected versions

1.*

1.0.0
1.0.1
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6
1.0.7
1.0.8
1.0.9
1.0.10
1.0.11