CVE-2021-21351
XStream is vulnerable to an Arbitrary Code Execution attack
Record summary
CVE-2021-21351 has a selected CVSS score of 5.4 (medium); EIP currently links 1 Nuclei template.
Description
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.
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.16 | affected |
com.thoughtworks.xstream:xstreamBrowse Maven / com.thoughtworks.xstream:xstream | GitHub Advisory | Before 1.4.16 · Fixed in 1.4.16 | affected |
Nuclei templates
1ProjectDiscoveryCRITICALXStream <1.4.16 - Remote Code ExecutionCVSS 9.1
XStream before 1.4.16 is susceptible to remote code execution. An attacker can load and execute arbitrary code from a remote host via manipulating the processed input stream, thereby making it possible to obtain sensitive information, modify data, and/or execute unauthorized administrative operations.
Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the target system.
Remediation
Install at least 1.4.16 if you rely on XStream's default blacklist of the Security Framework.
Source: ProjectDiscovery