CVE-2021-39154: XStream is vulnerable to an Arbitrary Code Execution attack
A flaw was found in xstream, a simple library used to serialize objects to XML and back again. This flaw allows a remote attacker to load and execute arbitrary code from a remote host by manipulating the processed input stream. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.
Other sources
XStream is a simple library to serialize objects to XML and back again. In affected versions this 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. XStream 1.4.18 uses no longer a blacklist by default, since it cannot be secured for general purpose.
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-16.el7_9 - Upgrade
Upgrade
debian/libxstream-javato a version that resolves this vulnerability.Fixed in 1.4.11.1-1+deb10u3Fixed in 1.4.11.1-1+deb10u4Fixed in 1.4.15-3+deb11u2Fixed in 1.4.20-1 - Upgrade
Upgrade
redhat/xstreamto a version that resolves this vulnerability.Fixed in 1.4.18 - Upgrade
Upgrade
x-stream/xstreamto a version that resolves this vulnerability.Fixed in 1.4.18 - Configuration
Ensure XStream's security framework is set up with a whitelist limited to the minimal required types (recommended by the advisory).
XStream security framework whitelist = limited to the 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?
The vulnerability ID for this flaw is CVE-2021-39154.
What is the severity of CVE-2021-39154?
The severity of CVE-2021-39154 is high.
How does this vulnerability impact systems?
This vulnerability allows a remote attacker to load and execute arbitrary code from a remote host by manipulating the input stream, potentially leading to unauthorized access or control of a system.
What versions of the software are affected by CVE-2021-39154?
Versions up to and exclusive of 1.4.18 of xstream, versions up to and exclusive of 1.3.1-16.el7_9 of the xstream package in Red Hat, and various other versions of libxstream-java, Fedora, and Debian are affected by CVE-2021-39154.
How can I fix CVE-2021-39154?
To fix CVE-2021-39154, it is recommended to upgrade to version 1.4.18 of xstream or version 1.3.1-16.el7_9 of the xstream package in Red Hat. Please refer to the vendor's advisory for specific remediation steps for other affected software.