CVE-2021-21342

NameCVE-2021-21342
DescriptionXStream 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-2616-1, ELA-398-1
Debian Bugs985843

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libxstream-java (PTS)jessie, jessie (lts)1.4.11.1-1+deb8u6fixed
stretch (security)1.4.11.1-1+deb9u5fixed
stretch (lts), stretch1.4.11.1-1+deb9u6fixed
buster (security), buster, buster (lts)1.4.11.1-1+deb10u4fixed
bullseye1.4.15-3+deb11u2fixed
bullseye (security)1.4.15-3+deb11u3fixed
bookworm1.4.20-1fixed
sid, trixie1.4.21-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libxstream-javasourcejessie1.4.11.1-1+deb8u2ELA-398-1
libxstream-javasourcestretch1.4.11.1-1+deb9u2DLA-2616-1
libxstream-javasourcebuster1.4.11.1-1+deb10u3
libxstream-javasource(unstable)1.4.15-2985843

Notes

https://github.com/x-stream/xstream/security/advisories/GHSA-hvv8-336g-rx3m

Search for package or bug name: Reporting problems