CVE-2022-40151 Stack Buffer Overflow in xstream
Attackers can cause a denial of service by sending crafted XML data to applications using the XStream library for serialization.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-40151?
CVE-2022-40151 is a medium-severity denial of service vulnerability in xstream, published on 16 Sep 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Those using Xstream to seralize XML data may be vulnerable to Denial of Service attacks (DOS). If the parser is running on user supplied input, an attacker may supply content that causes the parser to crash by stackoverflow. This effect may support a denial of service attack.
Which versions are affected by CVE-2022-40151?
2 open source packages ship an affected version, including com.thoughtworks.xstream:xstream. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
com.thoughtworks.xstream:xstream Maven | All versions | 1.4.20 |
com.thoughtworks.xstream:xstream Maven | All versions | 1.4.20 |
Products include Xstream Xstream.
How do I fix CVE-2022-40151?
Upgrade com.thoughtworks.xstream:xstream to 1.4.20 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-40151 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-40151 exists.
Other vulnerabilities in xstream
Sources
Also known as DEBIAN-CVE-2022-40151, GHSA-f8cc-g7j8-xxpm, ROOT-APP-MAVEN-CVE-2022-40151, UBUNTU-CVE-2022-40151.