GHSA-hh82-3pmq-7frp

Suggest an improvement
Source
https://github.com/advisories/GHSA-hh82-3pmq-7frp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-hh82-3pmq-7frp/GHSA-hh82-3pmq-7frp.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-hh82-3pmq-7frp
Aliases
Published
2022-12-12T21:25:44Z
Modified
2024-10-15T05:56:55.576050Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
Summary
Netty vulnerable to HTTP Response splitting from assigning header value iterator
Details

Impact

When calling DefaultHttpHeaders.set with an iterator of values (as opposed to a single given value), header value validation was not performed, allowing malicious header values in the iterator to perform HTTP Response Splitting.

Patches

The necessary validation was added in Netty 4.1.86.Final.

Workarounds

Integrators can work around the issue by changing the DefaultHttpHeaders.set(CharSequence, Iterator<?>) call, into a remove() call, and call add() in a loop over the iterator of values.

References

HTTP Response Splitting CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers

For more information

If you have any questions or comments about this advisory: * Open an issue in [example link to repo](https://github.com/netty/netty) * Email us at netty-security@googlegroups.com

Database specific
{
    "nvd_published_at": "2022-12-13T07:15:00Z",
    "cwe_ids": [
        "CWE-113",
        "CWE-436"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2022-12-12T21:25:44Z"
}
References

Affected packages

Maven / io.netty:netty-codec-http

Package

Name
io.netty:netty-codec-http
View open source insights on deps.dev
Purl
pkg:maven/io.netty/netty-codec-http

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.1.83.Final
Fixed
4.1.86.Final

Affected versions

4.*

4.1.83.Final
4.1.84.Final
4.1.85.Final