Appsecure logo

CVE-2021-21345: Medium Vulnerability in Apache XStream

A medium-severity vulnerability in Apache XStream allows remote command execution under certain conditions. Organizations using vulnerable versions should prioritize patching to mitigate potential risks.

MEDIUMPublic ExploitCVSS 5.8 · Published March 23, 2021

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

CVE-2021-21345 is a medium-severity vulnerability affecting Apache XStream, a Java library used for serializing objects to XML. This vulnerability allows remote attackers with sufficient rights to execute commands on the host by manipulating the processed input stream. While users who implement XStream's security framework with a strict whitelist are not affected, those relying on the default security settings must upgrade to at least version 1.4.16 to mitigate the risk.

The severity of this vulnerability is classified as medium, with a CVSS score of 5.8. The risk to organizations includes potential unauthorized command execution, which could lead to data compromise or system integrity issues. Given the potential for exploitation, organizations should address this vulnerability in their patch cycle.

Currently, there is an active exploit available for this vulnerability, which emphasizes the urgency for defenders to act. Organizations that utilize affected versions of Apache XStream should prioritize patching immediately.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.