← back
CVE-2021-39144

XStream is vulnerable to a Remote Command Execution attack

CVSS 8.5 HIGHEPSS 98.5%● KEVCWE-502CWE-94
In short

XStream, a library that converts objects to XML, can be exploited by attackers to run arbitrary commands on a server if the input data is manipulated. This happens because the library deserializes untrusted data without proper restrictions.

Technical detail

Remote code execution vulnerability in XStream's deserialization process (CWE-502, CWE-94) allowing unauthenticated attackers to execute arbitrary system commands by crafting malicious XML input. Exploitation requires processing untrusted serialized data; mitigation requires implementing XStream's security whitelist framework or upgrading to version 1.4.18+, which defaults to a secure configuration instead of a blacklist approach.

Summary generated and translated by AI from the official description.
XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may allow a remote attacker has sufficient rights to execute commands of the host only by manipulating the processed input stream. No user is affected, who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types. XStream 1.4.18 uses no longer a blacklist by default, since it cannot be secured for general purpose.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Affected products
x-stream · xstream
⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →