CVE-2021-39152: A Server-Side Forgery Request vulnerability in XStream via HashMap unmarshaling

Published Aug 22, 2021
·
Updated

A flaw was found in xstream, a simple library used to serialize objects to XML and back again. This flaw allows a remote attacker to request data from internal resources that are not publicly available by manipulating the processed input stream with Java runtime versions 14 to 8. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.

Other sources

XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may allow a remote attacker to request data from internal resources that are not publicly available only by manipulating the processed input stream with a Java runtime version 14 to 8. 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.18.

Affected Software

40 affected componentsFixes available
redhat/xstream<0:1.3.1-16.el7_9
0:1.3.1-16.el7_9
debian/libxstream-java
1.4.11.1-1+deb10u31.4.11.1-1+deb10u41.4.15-3+deb11u21.4.20-1
redhat/xstream<1.4.18
1.4.18
Xstream Project Xstream<1.4.18
Fedoraproject Fedora=33
Fedoraproject Fedora=34
Fedoraproject Fedora=35
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0
NetApp Snapmanager Oracle
NetApp Snapmanager Sap
Oracle Business Activity Monitoring=12.2.1.4.0
Oracle Commerce Guided Search=11.3.2
Oracle Communications Billing And Revenue Management Elastic Charging Engine=11.3
Oracle Communications Billing And Revenue Management Elastic Charging Engine=12.0
Oracle Communications Cloud Native Core Automated Test Suite=1.9.0
Oracle Communications Cloud Native Core Binding Support Function=1.10.0
Oracle Communications Cloud Native Core Policy=1.14.0
Oracle Communications Unified Inventory Management=7.3.4
Oracle Communications Unified Inventory Management=7.3.5
Oracle Communications Unified Inventory Management=7.4.0
Oracle Communications Unified Inventory Management=7.4.1
Oracle Communications Unified Inventory Management=7.4.2
Oracle Retail Xstore Point of Service=16.0.6
Oracle Retail Xstore Point of Service=17.0.4
Oracle Retail Xstore Point of Service=18.0.3
Oracle Retail Xstore Point of Service=19.0.2
Oracle Retail Xstore Point of Service=20.0.1
Oracle Utilities Framework=4.2.0.2.0
Oracle Utilities Framework=4.2.0.3.0
Oracle Utilities Framework=4.3.0.1.0
Oracle Utilities Framework=4.3.0.6.0
Oracle Utilities Framework=4.4.0.0.0
Oracle Utilities Framework=4.4.0.2.0
Oracle Utilities Framework=4.4.0.3.0
Oracle Utilities Testing Accelerator=6.0.0.1.1
Oracle WebCenter Portal=12.2.1.3.0
Oracle WebCenter Portal=12.2.1.4.0
XStream XStream<1.4.18

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/xstream to a version that resolves this vulnerability.

    Fixed in 0:1.3.1-16.el7_9
  2. Upgrade

    Upgrade debian/libxstream-java to a version that resolves this vulnerability.

    Fixed in 1.4.11.1-1+deb10u3Fixed in 1.4.11.1-1+deb10u4Fixed in 1.4.15-3+deb11u2Fixed in 1.4.20-1
  3. Upgrade

    Upgrade redhat/xstream to a version that resolves this vulnerability.

    Fixed in 1.4.18
  4. Upgrade

    Upgrade x-stream/xstream to a version that resolves this vulnerability.

    Fixed in 1.4.18
  5. Configuration

    Configure XStream's security framework using a whitelist limited to the minimal required types (instead of relying on the default blacklist only) to prevent the SSRF issue via HashMap unmarshaling.

    XStream Security Framework (whitelist) default blacklist vs whitelist-limited configuration = whitelist limited to the minimal required types

Event History

Aug 22, 2021
CVE Published
12:00 AM
Aug 23, 2021
CVE Published
via MITRE·06:20 PM
Data Sourced
via MITRE·06:20 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Aug 25, 2021
Data Sourced
via Red Hat·07:53 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-39152?

CVE-2021-39152 is a vulnerability in the XStream library that allows a remote attacker to request data from internal resources by manipulating the input stream.

2

How severe is CVE-2021-39152?

CVE-2021-39152 has a severity rating of 8.5, indicating a high severity level.

3

Which software is affected by CVE-2021-39152?

The XStream library versions 1.4.18 and below are affected by CVE-2021-39152.

4

How can I fix CVE-2021-39152?

To fix CVE-2021-39152, update the XStream library to version 1.4.19 or higher.

5

Where can I find more information about CVE-2021-39152?

You can find more information about CVE-2021-39152 at the following references: [link1], [link2], [link3].

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203