CVE-2021-21341: XStream can cause a Denial of Service
Last updated 22 August 2024
Other sources
XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is vulnerability which may allow a remote attacker to allocate 100% CPU time on the target system depending on CPU type or parallel execution of such a payload resulting in a denial of service only by manipulating the processed input stream. No user is affected who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types. If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.16.
Affected Software
Remediation
Patch Available
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is CVE-2021-21341?
CVE-2021-21341 is a vulnerability in XStream, a Java library used to serialize objects to XML and back again.
What is the severity of CVE-2021-21341?
CVE-2021-21341 has a severity rating of 7.5, which is considered high.
How does CVE-2021-21341 affect the target system?
CVE-2021-21341 may allow a remote attacker to allocate 100% CPU time on the target system, resulting in a denial of service.
Which versions of XStream are affected by CVE-2021-21341?
XStream versions up to 1.4.16 are affected by CVE-2021-21341.
How can I fix CVE-2021-21341?
To fix CVE-2021-21341, update XStream to version 1.4.16 or higher.