CVE-2021-21342
Published: 23 March 2021
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.
Priority
Status
Package | Release | Status |
---|---|---|
libxstream-java Launchpad, Ubuntu, Debian |
kinetic |
Released
(1.4.15-2)
|
impish |
Released
(1.4.15-2)
|
|
trusty |
Needed
|
|
upstream |
Released
(1.4.16)
|
|
bionic |
Released
(1.4.11.1-1~18.04.2)
|
|
focal |
Released
(1.4.11.1-1ubuntu0.2)
|
|
groovy |
Released
(1.4.11.1-2ubuntu0.1)
|
|
hirsute |
Released
(1.4.15-1ubuntu0.1)
|
|
xenial |
Needed
|
|
jammy |
Released
(1.4.15-2)
|
|
lunar |
Released
(1.4.15-2)
|
|
mantic |
Released
(1.4.15-2)
|
Severity score breakdown
Parameter | Value |
---|---|
Base score | 9.1 |
Attack vector | Network |
Attack complexity | Low |
Privileges required | None |
User interaction | None |
Scope | Unchanged |
Confidentiality | High |
Integrity impact | High |
Availability impact | None |
Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
References
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-21342
- https://github.com/x-stream/xstream/security/advisories/GHSA-hvv8-336g-rx3m
- http://x-stream.github.io/changes.html#1.4.16
- https://x-stream.github.io/CVE-2021-21342.html
- https://x-stream.github.io/security.html#workaround
- https://ubuntu.com/security/notices/USN-4943-1
- NVD
- Launchpad
- Debian