CVE-2021-21344: XStream is vulnerable to an Arbitrary Code Execution attack
A flaw was found in xstream. A remote attacker may be able to load and execute arbitrary code from a remote host only by manipulating the processed input stream. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
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 which 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
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/xstreamto a version that resolves this vulnerability.Fixed in 0:1.3.1-13.el7_9 - Upgrade
Upgrade
debian/libxstream-javato a version that resolves this vulnerability.Fixed in 1.4.15-3+deb11u2Fixed in 1.4.15-3+deb11u3Fixed in 1.4.20-1+deb12u1Fixed in 1.4.21-1 - Upgrade
Upgrade
redhat/xstreamto a version that resolves this vulnerability.Fixed in 1.4.16 - Upgrade
Upgrade
x-stream/xstreamto a version that resolves this vulnerability.Fixed in 1.4.16 - Configuration
Configure the Security Framework with a whitelist limited to the minimal required types instead of relying on the default blacklist.
XStream Security Framework whitelist = minimal required types
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the vulnerability ID for this flaw in xstream?
The vulnerability ID for this flaw in xstream is CVE-2021-21344.
What is the severity of CVE-2021-21344?
CVE-2021-21344 has a severity rating of 9.8 (Critical).
How can a remote attacker exploit CVE-2021-21344?
A remote attacker can exploit CVE-2021-21344 by manipulating the processed input stream to load and execute arbitrary code from a remote host.
Which versions of xstream are affected by CVE-2021-21344?
Versions up to and excluding 1.4.16 of xstream are affected by CVE-2021-21344.
Where can I find more information about CVE-2021-21344?
You can find more information about CVE-2021-21344 in the references provided: [1], [2], [3].