CVE-2021-21348: XStream is vulnerable to an attack using Regular Expression for a Denial of Service (ReDos)
Last updated 22 August 2024
Other sources
XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is a vulnerability which may allow a remote attacker to occupy a thread that consumes maximum CPU time and will never return. 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.
Affected Software
Remediation
Patch Available
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is CVE-2021-21348?
CVE-2021-21348 is a vulnerability in the XStream Java library that allows a remote attacker to consume maximum CPU time.
How does CVE-2021-21348 affect users?
Users who have not updated to XStream version 1.4.16 are affected by CVE-2021-21348.
What is the severity of CVE-2021-21348?
CVE-2021-21348 has a severity level of 7.5 (High).
How can I fix CVE-2021-21348?
To fix CVE-2021-21348, users should update to XStream version 1.4.16 or above.
Where can I find more information about CVE-2021-21348?
You can find more information about CVE-2021-21348 in the references provided: [GitHub Advisory](https://github.com/x-stream/xstream/security/advisories/GHSA-56p8-3fh9-4cvq), [XStream Advisory](https://x-stream.github.io/CVE-2021-21348.html), [Red Hat Bugzilla](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1942634).