Skip to content
OpenAdvisories
Medium · 5.3 CVE-2021-21344 BIT-activemq-2021-21344EUVD-2021-0609GHSA-59jw-jqf4-3wq3

XStream is vulnerable to an Arbitrary Code Execution attack

Published Mar 22, 2021 · Updated Oct 7, 2026 · Assigned by GitHub_M

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 which 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.

Affected products

VendorProductAffectedFixed
x-stream xstream < 1.4.16 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libxstream-java 1.4.15-2 —
Debian 13 libxstream-java 1.4.15-2 —
Debian 12 libxstream-java 1.4.15-2 —
Debian 9 libxstream-java 1.4.11.1-1+deb9u2 DLA-2616-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libxstream-java 1.4.11.1-1ubuntu0.2 USN-4943-1
Ubuntu 18.04 LTS libxstream-java 1.4.11.1-1~18.04.2 USN-4943-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS libxstream-java 1.4.8-1ubuntu0.1+esm3 USN-6978-1
Ubuntu Pro 14.04 LTS libxstream-java 1.4.7-1ubuntu0.1+esm2 USN-6978-1
ReleasePackageFixed inAdvisory
RHEL 7 xstream +1 1.3.1-13.el7_9 RHSA-2021:1354
ReleasePackageFixed inAdvisory
SLES 15 SP3 xstream 1.4.16-3.8.1 SUSE-SU-2021:1840-1
SLES 15 SP2 xstream 1.4.16-3.8.1 SUSE-SU-2021:1840-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE Manager Server Module 4.2 xstream 1.4.16-3.8.1 SUSE-SU-2021:1840-2
SUSE Manager Server Module 4.1 xstream 1.4.16-3.8.1 SUSE-SU-2021:1840-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed xstream 1.4.18-1.1 openSUSE-SU-2024:10592-1
openSUSE Leap 15.3 xstream 1.4.16-3.8.1 openSUSE-SU-2021:1840-1
openSUSE Leap 15.2 xstream 1.4.16-lp152.2.6.1 openSUSE-SU-2021:0832-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 xstream +1 1.3.1-13.amzn2 ALAS2-2021-1645

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 xstream +1 1.3.1-13.el7_9 ELSA-2021-1354

Affected packages

EcosystemPackageAffectedFixedRecord
Maven com.thoughtworks.xstream:xstream < 1.4.16 1.4.16 GHSA-59jw-jqf4-3wq3

Advisories 13

References