CVE-2021-21351: XStream is vulnerable to an Arbitrary Code Execution attack
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 a vulnerability may allow a remote attacker to load and execute arbitrary code from a remote host 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-21351?
CVE-2021-21351 is a vulnerability in XStream, a Java library used to serialize objects to XML and back again.
What is the severity of CVE-2021-21351?
CVE-2021-21351 has a severity rating of critical with a score of 9.1.
How does CVE-2021-21351 work?
CVE-2021-21351 allows a remote attacker to load and execute arbitrary code from a remote host by manipulating the processed input stream in XStream.
Which software versions are affected by CVE-2021-21351?
XStream versions before 1.4.16 are affected by CVE-2021-21351.
How can I fix CVE-2021-21351?
To fix CVE-2021-21351, you should update XStream to version 1.4.16 or higher.