# CVE-2021-21342: A 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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 50.0%, higher than 98% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-03-22T23:28:01.000Z
- Modified: 2026-10-07T19:17:20.313Z
- Also known as: GHSA-hvv8-336g-rx3m, BIT-ACTIVEMQ-2021-21342
- Weaknesses: CWE-502, CWE-918
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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 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.

(As written by CVE List.)

## Affected

- x-stream xstream: < 1.4.16
- com.thoughtworks.xstream:xstream (Maven): before 1.4.16
- netapp oncommand_insight: no versions given
- apache activemq: before 5.15.14; 5.16.0; 5.16.1
- apache jmeter: before 5.5
- xstream xstream: before 1.4.16
- debian debian_linux: 9.0; 10.0; 11.0
- fedoraproject fedora: 33; 34; 35
- oracle banking_enterprise_default_management: 2.10.0; 2.12.0
- oracle banking_platform: 2.4.0; 2.7.1; 2.9.0; 2.12.0
- oracle banking_virtual_account_management: 14.2.0; 14.3.0; 14.5.0
- oracle business_activity_monitoring: 11.1.1.9.0; 12.2.1.3.0; 12.2.1.4.0
- oracle communications_brm_-_elastic_charging_engine: 12.0.0.3
- oracle communications_policy_management: 12.5.0
- oracle communications_unified_inventory_management: 7.3.2; 7.3.4; 7.3.5; 7.4.0; 7.4.1
- oracle retail_xstore_point_of_service: 16.0.6; 17.0.4; 18.0.3; 19.0.2
- oracle webcenter_portal: 11.1.1.9.0; 12.2.1.3.0; 12.2.1.4.0
- activemq (Bitnami): before 5.15.14; from 5.16.0 up to 5.16.0; from 5.16.1 up to 5.16.1

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://x-stream.github.io/CVE-2021-21342.html> (exploit, advisory, third-party-advisory, web)
- <https://x-stream.github.io/security.html#workaround> (advisory, mitigation, third-party-advisory, web)
- <http://x-stream.github.io/changes.html#1.4.16> (advisory, release-notes, third-party-advisory, web)
- <https://github.com/x-stream/xstream/security/advisories/GHSA-hvv8-336g-rx3m> (advisory, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2021/04/msg00002.html> (advisory, mailing-list, third-party-advisory, web)
- <https://lists.apache.org/thread.html/r9ac71b047767205aa22e3a08cb33f3e0586de6b2fac48b425c6e16b0%40%3Cdev.jmeter.apache.org%3E> (advisory, issue-tracking, mailing-list, third-party-advisory)
- <https://lists.apache.org/thread.html/r8244fd0831db894d5e89911ded9c72196d395a90ae655414d23ed0dd%40%3Cusers.activemq.apache.org%3E> (advisory, issue-tracking, mailing-list, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20210430-0002/> (advisory, third-party-advisory)
- <https://www.oracle.com//security-alerts/cpujul2021.html> (advisory, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP/> (advisory, mailing-list, third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB/> (advisory, mailing-list, third-party-advisory, vendor-advisory)
- <https://www.oracle.com/security-alerts/cpuoct2021.html> (advisory, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7/> (advisory, mailing-list, third-party-advisory, vendor-advisory)
- <https://www.debian.org/security/2021/dsa-5004> (advisory, mailing-list, third-party-advisory, vendor-advisory, web)
- <https://www.oracle.com/security-alerts/cpujan2022.html> (advisory, not-applicable, patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21342> (advisory, web)
- <https://github.com/x-stream/xstream> (package)
- <https://lists.apache.org/thread.html/r8244fd0831db894d5e89911ded9c72196d395a90ae655414d23ed0dd@%3Cusers.activemq.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/r9ac71b047767205aa22e3a08cb33f3e0586de6b2fac48b425c6e16b0@%3Cdev.jmeter.apache.org%3E> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB> (web)
- <https://security.netapp.com/advisory/ntap-20210430-0002> (web)

## Sources

- CVE List: [CVE-2021-21342](https://www.cve.org/CVERecord?id=CVE-2021-21342), CVE Terms of Use, modified 2026-10-07
- GitHub Advisory Database: [GHSA-hvv8-336g-rx3m](https://github.com/advisories/GHSA-hvv8-336g-rx3m), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-21342](https://nvd.nist.gov/vuln/detail/CVE-2021-21342), Public domain, modified 2026-10-07
- Bitnami Vulnerability Database: [BIT-ACTIVEMQ-2021-21342](https://osv.dev/vulnerability/BIT-ACTIVEMQ-2021-21342), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-21342 · Whole record: https://cve.day/CVE-2021-21342.json · Rebuilt by cve.day 2026-11-25T22:58:00.367Z
