CVE-2022-41881 HAProxyMessageDecoder Stack Exhaustion DoS

Medium 5.3 Published Updated

Attackers can cause a denial of service via infinite recursion when parsing malformed messages in the Netty network framework.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-41881?

CVE-2022-41881 is a medium-severity denial of service vulnerability in Debian Debian Linux, published on 12 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Netty project is an event-driven asynchronous network application framework. In versions prior to 4.1.86.Final, a StackOverflowError can be raised when parsing a malformed crafted message due to an infinite recursion. This issue is patched in version 4.1.86.Final. There is no workaround, except using a custom HaProxyMessageDecoder.

Weakness: CWE-674

Which versions are affected by CVE-2022-41881?

2 open source packages ship an affected version, including io.netty:netty-codec-haproxy. It affects 2 products.

PackageAffectedFixed in
io.netty:netty-codec-haproxy MavenAll versions4.1.86.Final
io.netty:netty-codec-haproxy MavenAll versions4.1.86.Final

Products include Debian Debian Linux, Netty Netty.

How do I fix CVE-2022-41881?

Upgrade io.netty:netty-codec-haproxy to 4.1.86.Final or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2022-41881 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-41881 exists.

All Debian Debian Linux vulnerabilities

Sources

Also known as CLEANSTART-2026-BT29481, CLEANSTART-2026-YG36157, DEBIAN-CVE-2022-41881, GHSA-fx2c-96vj-985v, MINI-jw43-5qv9-hjcg, OESA-2023-1905 and 6 more.

Is CVE-2022-41881 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free