ghsa-hh82-3pmq-7frp
Vulnerability from github
Published
2022-12-12 21:25
Modified
2023-01-10 23:07
Severity ?
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
{ "affected": [ { "package": { "ecosystem": "Maven", "name": "io.netty:netty-codec-http" }, "ranges": [ { "events": [ { "introduced": "4.1.83.Final" }, { "fixed": "4.1.86.Final" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2022-41915" ], "database_specific": { "cwe_ids": [ "CWE-113", "CWE-436" ], "github_reviewed": true, "github_reviewed_at": "2022-12-12T21:25:44Z", "nvd_published_at": "2022-12-13T07:15:00Z", "severity": "MODERATE" }, "details": "### Impact\nWhen 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](https://owasp.org/www-community/attacks/HTTP_Response_Splitting).\n\n### Patches\nThe necessary validation was added in Netty 4.1.86.Final.\n\n### Workarounds\nIntegrators can work around the issue by changing the `DefaultHttpHeaders.set(CharSequence, Iterator\u003c?\u003e)` call, into a `remove()` call, and call `add()` in a loop over the iterator of values.\n\n### References\n[HTTP Response Splitting](https://owasp.org/www-community/attacks/HTTP_Response_Splitting)\n[CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers](https://cwe.mitre.org/data/definitions/113.html)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [[example link to repo](https://github.com/netty/netty)](https://github.com/netty/netty)\n* Email us at [netty-security@googlegroups.com](mailto:netty-security@googlegroups.com)\n", "id": "GHSA-hh82-3pmq-7frp", "modified": "2023-01-10T23:07:13Z", "published": "2022-12-12T21:25:44Z", "references": [ { "type": "WEB", "url": "https://github.com/netty/netty/security/advisories/GHSA-hh82-3pmq-7frp" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-41915" }, { "type": "WEB", "url": "https://github.com/netty/netty/issues/13084" }, { "type": "WEB", "url": "https://github.com/netty/netty/pull/12760" }, { "type": "WEB", "url": "https://github.com/netty/netty/commit/c37c637f096e7be3dffd36edee3455c8e90cb1b0" }, { "type": "WEB", "url": "https://github.com/netty/netty/commit/fe18adff1c2b333acb135ab779a3b9ba3295a1c4" }, { "type": "WEB", "url": "https://github.com/netty/netty" }, { "type": "WEB", "url": "https://lists.debian.org/debian-lts-announce/2023/01/msg00008.html" }, { "type": "WEB", "url": "https://security.netapp.com/advisory/ntap-20230113-0004" }, { "type": "WEB", "url": "https://www.debian.org/security/2023/dsa-5316" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N", "type": "CVSS_V3" } ], "summary": "Netty vulnerable to HTTP Response splitting from assigning header value iterator" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.