CVE-2021-21343

published 22 Mar 2021 · updated 7 Oct 2026

XStream is vulnerable to an Arbitrary File Deletion on the local host when unmarshalling as long as the executing process has sufficient rights

5.8MediumCVSS 5.3EPSS 47%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 47%. No fixed version is recorded.

XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is a vulnerability where the processed stream at unmarshalling time contains type information to recreate the formerly written objects. XStream creates therefore new instances based on these type information. An attacker can manipulate the processed input stream and replace or inject objects, that result in the deletion of a file on the local host. 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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
x-stream<1.4.16

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-21343 severity on Zeptric[![CVE-2021-21343](https://zeptric.io/badge/cve/CVE-2021-21343.svg)](https://zeptric.io/cve/CVE-2021-21343)