VDB

CVE-2021-21343

CVE-2021-21343 PUBLISHED CVSS 5.3 MEDIUM

Reported by github_m · Published March 22, 2021

xstream is fixed in 1.4.16 (Maven Central)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
com.thoughtworks.xstream:xstreamMaven Central1.4.16
xstreamAmazon Linux1.3.1-13.amzn2
xstream-javadocAmazon Linux1.3.1-13.amzn2
libxstream-javaUbuntu:Pro:14.04:LTS1.4.7-1ubuntu0.1+esm2
xstreamxstream1.4.16
libxstream-javaUbuntu:18.04:LTS1.4.11.1-1~18.04.2
activemqapache5.15.14
jmeterapache5.5
activemqBitnami5.16.1, 5.16.0, 5.15.14

Risk scores

CVSS 3.1
5.3
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N

Affected products

VendorProductVersions
x-streamxstream< 1.4.16
x-streamxstream0

Timeline

  • Mar 22, 2021 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Jun 28, 2021 PoC Published (20 in total, the first dated here)
  • Mar 7, 2026 Distribution Patch (13 in total, the first dated here)
  • Mar 7, 2026 Security Advisory (17 in total, the first dated here)
  • Aug 26, 2026 Coalition ESS Score
  • Oct 7, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-21343
vulnetix vdb fixes CVE-2021-21343

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-21343/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›