Vulnerability · Published Mar 22, 2021 · Assigned by GitHub_M

CVE-2021-21342A Server-Side Forgery Request can be activated unmarshalling with XStream to access data streams from an arbitrary URL referencing a resource in an intranet or the local host

Medium 5.3

In plain English

A medium-severity unsafe deserialization in xstream from x-stream. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 50.0% (higher than 99% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)50.0%top 1.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libxstream-java1.4.15-2DEBIAN-CVE-2021-21342
Debian:13libxstream-java1.4.15-2DEBIAN-CVE-2021-21342
Debian:14libxstream-java1.4.15-2DEBIAN-CVE-2021-21342
Mavencom.thoughtworks.xstream:xstream1.4.16GHSA-hvv8-336g-rx3m

Affected products (as reported)

VendorProductVersions
x-stream xstream < 1.4.16

Weakness: CWE-502, CWE-918 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N

References