CVE & CISA-KEV Catalog

CVE-2021-21342

MEDIUMEPSS 99th pctl
5.3
CVSS v3
NVD

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 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 a server-side forgery request. 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.

How to fix

Remediation Available
libxstream-javaDebian
Fixed in:1.4.15-2CVE-2021-21342
Fixed in:1.4.15-2CVE-2021-21342
Fixed in:1.4.15-2CVE-2021-21342
Fixed in:1.4.15-2CVE-2021-21342
libxstream-javaUbuntu
Fixed in:1.4.7-1ubuntu0.1+esm2USN-6978-1
Fixed in:1.4.8-1ubuntu0.1+esm3USN-6978-1
Fixed in:1.4.11.1-1~18.04.2USN-4943-1
Fixed in:1.4.11.1-1ubuntu0.2USN-4943-1
Apache JMeterWindows application
Affected:5.5Fixed in:5.5DEVCOM

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityHigh
AvailabilityNone

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

Exploit Intelligence

49.99%probability of exploitation in 30 days
99thpercentile

Very high risk: more likely to be exploited than 99% of all known CVEs.

References

Related Vulnerabilities

Other CWE-502 (Deserialization of Untrusted Data) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2023-0669High7.2100%KEV + RansomFix
CVE-2021-44228Critical10.0100%KEV + RansomFix
CVE-2021-35464Critical9.8100%KEV + RansomFix
CVE-2023-29300Critical9.8100%KEV + Ransom-
CVE-2025-53770Critical9.8100%KEV + RansomFix
CVE-2022-41082High8.0100%KEV + RansomFix

Common questions

How do I fix CVE-2021-21342?

Published advisories record a fix for 3 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2021-21342 being actively exploited?

Not that we know of. CVE-2021-21342 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 50.0% is the estimated probability that it will be exploited in the next 30 days. That is higher than 99% of all scored CVEs.

How severe is CVE-2021-21342?

CVE-2021-21342 has a CVSS v3 base score of 5.3, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2021-21342 affect?

Published advisories record a fix for libxstream-java (Debian), libxstream-java (Ubuntu), Apache JMeter (Windows application). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2021-21342
CVE-2021-21342 severity badge

Markdown

[![CVE-2021-21342](https://tridentstack.com/cve/badge/CVE-2021-21342.svg)](https://tridentstack.com/cve/CVE-2021-21342)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-21342"><img src="https://tridentstack.com/cve/badge/CVE-2021-21342.svg" alt="CVE-2021-21342"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-05-23.