{"id":"CVE-2022-41881","aliases":["GHSA-fx2c-96vj-985v"],"url":"https://o3.security/vulnerability/CVE-2022-41881","summary":"HAProxyMessageDecoder Stack Exhaustion DoS","details":"### Impact\nA StackOverflowError can be raised when parsing a malformed crafted message due to an infinite recursion.\n\n### Patches\nUsers should upgrade to 4.1.86.Final.\n\n### Workarounds\nThere is no workaround, except using a custom HaProxyMessageDecoder.\n\n### References\nWhen parsing a TLV with type = PP2_TYPE_SSL, the value can be again a TLV with type = PP2_TYPE_SSL and so on.\nThe only limitation of the recursion is that the TLV length cannot be bigger than 0xffff because it is encoded in an unsigned short type.\nProviding a TLV with a nesting level that is large enough will lead to raising of a StackOverflowError.\nThe StackOverflowError will be caught if HAProxyMessageDecoder is used as part of Netty’s ChannelPipeline, but using it directly without the ChannelPipeline will lead to a thrown exception / crash.\n\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [netty](https://github.com/netty/netty)\n","published":"2022-12-12T00:00:00Z","modified":"2026-08-12T03:51:29.333088389Z","cvss":{"score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},"epss":{"score":0.01478,"percentile":0.72624,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Maven","name":"io.netty:netty-codec-haproxy","fixedVersion":"4.1.86.Final"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41881.json"},{"type":"ADVISORY","url":"https://github.com/netty/netty/security/advisories/GHSA-fx2c-96vj-985v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41881"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20230113-0004/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2023/dsa-5316"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00008.html"},{"type":"PACKAGE","url":"https://github.com/netty/netty"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20230113-0004"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:29.333088389Z"}}