Vulnerability · Published Dec 16, 2020 · Assigned by GitHub_M
CVE-2020-26258Server-Side Forgery Request can be activated unmarshalling with XStream
Medium 6.3
In plain English
A medium-severity server-side request forgery 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 81.8% (higher than 99.6% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.15, a Server-Side Forgery Request vulnerability can be activated when unmarshalling. The vulnerability may allow a remote attacker to request data from internal resources that are not publicly available only by manipulating the processed input stream. If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.15. The reported vulnerability does not exist if running Java 15 or higher. No user is affected who followed the recommendation to setup XStream's Security Framework with a whitelist! Anyone relying on XStream's default blacklist can immediately switch to a whilelist for the allowed types to avoid the vulnerability. Users of XStream 1.4.14 or below who still want to use XStream default blacklist can use a workaround described in more detailed in the referenced advisories.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libxstream-java | 1.4.15-1 | DEBIAN-CVE-2020-26258 |
| Debian:13 | libxstream-java | 1.4.15-1 | DEBIAN-CVE-2020-26258 |
| Debian:14 | libxstream-java | 1.4.15-1 | DEBIAN-CVE-2020-26258 |
| Maven | com.thoughtworks.xstream:xstream | 1.4.15 | GHSA-4cch-wxpw-8p28 |
Affected products (as reported)
Weakness: CWE-918 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
References
- https://github.com/x-stream/xstream/security/advisories/GHSA-4cch-wxpw-8p28 x_refsource_CONFIRM
- https://lists.apache.org/thread.html/r97993e3d78e1f5389b7b172ba9f308440830ce5f051ee62714a0aa34@%3Ccommits.struts.apache.org%3E x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2020/12/msg00042.html x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7 x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20210409-0005 x_refsource_MISC
- https://www.debian.org/security/2021/dsa-4828 x_refsource_MISC
- https://x-stream.github.io/CVE-2020-26258.html x_refsource_MISC
- [struts-commits] 20201221 [struts] branch master updated: Upgrades XStream to version 1.4.15 to address CVE-2020-26258, CVE-2020-26259 mailing-list, x_refsource_MLIST, x_transferred
- https://security.netapp.com/advisory/ntap-20210409-0005/ x_refsource_CONFIRM, x_transferred
- FEDORA-2021-fbad11014a vendor-advisory, x_refsource_FEDORA, x_transferred
- FEDORA-2021-d894ca87dc vendor-advisory, x_refsource_FEDORA, x_transferred
- FEDORA-2021-5e376c0ed9 vendor-advisory, x_refsource_FEDORA, x_transferred