SecurityContext

CVE-2021-21342: XStream - Server Side Request Forgery

  • Cve: CVE-2021-21342
  • Name: XStream - Server Side Request Forgery
  • 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.
  • Impact: Attackers can manipulate deserialized objects, potentially leading to server-side request forgery or other malicious actions.
  • Remediation: Upgrade to version 1.4.16 or later and configure security whitelist properly.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Epss score: 0.4999
  • Epss percentile: 0.98921
  • Assignee: [email protected]
  • Published at: 2021-03-23T00:15:12Z
  • Age in days: 2072
  • Modified at: 2026-10-07T19:17:20Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 14
  • Products total: 15
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-21342
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-502Deserialization of Untrusted Data
CWE-918Server-Side Request Forgery

Public exploits

UrlSourceAdded date
https://x-stream.github.io/CVE-2021-21342.htmlnvd2021-03-23

References

Same in every row:

  • Source: nvd
UrlTags
https://x-stream.github.io/CVE-2021-21342.htmlExploit, Third Party Advisory
https://x-stream.github.io/security.html#workaroundMitigation, Third Party Advisory
http://x-stream.github.io/changes.html#1.4.16Release Notes, Third Party Advisory
https://github.com/x-stream/xstream/security/advisories/GHSA-hvv8-336g-rx3mThird Party Advisory
https://lists.apache.org/thread.html/r8244fd0831db894d5e89911ded9c72196d395a90ae655414d23ed0dd%40%3Cusers.activemq.apache.org%3EIssue Tracking, Mailing List, Third Party Advisory
https://lists.apache.org/thread.html/r9ac71b047767205aa22e3a08cb33f3e0586de6b2fac48b425c6e16b0%40%3Cdev.jmeter.apache.org%3EIssue Tracking, Mailing List, Third Party Advisory
https://lists.debian.org/debian-lts-announce/2021/04/msg00002.htmlMailing List, Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP/Mailing List, Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7/Mailing List, Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB/Mailing List, Third Party Advisory

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
xstream:xstream< 1.4.16/v1/products/xstream/xstream
debian:debian_linux= 11.0, = 10.0, = 9.0/v1/products/debian/debian_linux
fedoraproject:fedora= 35, = 34, = 33/v1/products/fedoraproject/fedora
netapp:oncommand_insightall versions/v1/products/netapp/oncommand_insight
oracle:webcenter_portal= 12.2.1.4.0, = 12.2.1.3.0, = 11.1.1.9.0/v1/products/oracle/webcenter_portal
oracle:retail_xstore_point_of_service= 19.0.2, = 18.0.3, = 17.0.4, = 16.0.6/v1/products/oracle/retail_xstore_point_of_service
apache:activemq= 5.16.1, = 5.16.0, < 5.15.14/v1/products/apache/activemq
oracle:communications_unified_inventory_management= 7.4.1, = 7.4.0, = 7.3.5, = 7.3.4, = 7.3.2/v1/products/oracle/communications_unified_inventory_management
oracle:banking_platform= 2.12.0, = 2.9.0, = 2.7.1, = 2.4.0/v1/products/oracle/banking_platform
oracle:communications_policy_management= 12.5.0/v1/products/oracle/communications_policy_management

Projects

RepositoryLink kindsIndexedUrl
x-stream/xstreampackage, security_advisoryyes/v1/repositories/x-stream/xstream

Index

  • Repositories: 77
  • Repositories high signal: 38
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-03-23
  • Remote: yes
  • Exposed hosts: 4739835
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports