CVE-2021-39141
XStream is vulnerable to an Arbitrary Code Execution attack
Record summary
CVE-2021-39141 has a selected CVSS score of 8.5 (high); EIP currently links 1 repository PoC and 1 Nuclei template.
Description
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.
Exploitation context
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
xstreamBrowse x-stream / xstream | CVE List | < 1.4.18 | affected |
com.thoughtworks.xstream:xstreamBrowse Maven / com.thoughtworks.xstream:xstream | GitHub Advisory | Before 1.4.18 · Fixed in 1.4.18 | affected |
Proofs of concept
1Repository PoCs
GitHubzwjjustdoit/Xstream-1.4.17Repository PoCby zwjjustdoitStars: 62Not analyzed9 files
Nuclei templates
1ProjectDiscoveryHIGHXStream 1.4.18 - Remote Code ExecutionCVSS 8.5
XStream 1.4.18 is susceptible to remote code execution. An attacker can execute commands of the host by manipulating the processed input stream, thereby making it possible to obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
Impact
Attackers can exploit unsafe deserialization in XStream to execute arbitrary commands on the host, potentially obtaining sensitive information and compromising the entire application server.
Remediation
Upgrade XStream to a version that is not affected by CVE-2021-39141.
Source: ProjectDiscovery