CVE-2021-39146
XStream is vulnerable to an Arbitrary Code Execution attack
Record summary
CVE-2021-39146 has a selected CVSS score of 8.5 (high); EIP currently links 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
Available material
- Nuclei templates
- 1
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 |
Nuclei templates
1ProjectDiscoveryHIGHXStream 1.4.18 - Arbitrary 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. Setups which followed XStream's security recommendations with an allow-list are not impacted.
Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
Remediation
Upgrade XStream to a version that is not affected by CVE-2021-39146.
Source: ProjectDiscovery