Deserialization of Untrusted Data in xstream - CVE-2021-21343
Published: April 26, 2021 / Updated: December 17, 2024
xstream
Detailed vulnerability description
The vulnerability allows a remote attacker to delete arbitrary files.
The vulnerability exists due to insecure input validation when processing serialized data where the processed stream at unmarshalling time contains type information to recreate the formerly written objects. A remote attacker can pass specially crafted data to the application and delete arbitrary files.
How to mitigate CVE-2021-21343
Sources
- http://x-stream.github.io/changes.html#1.4.16
- https://github.com/x-stream/xstream/security/advisories/GHSA-74cv-f58x-f9wf
- https://lists.apache.org/thread.html/r9ac71b047767205aa22e3a08cb33f3e0586de6b2fac48b425c6e16b0@%3Cdev.jmeter.apache.org%3E
- https://lists.debian.org/debian-lts-announce/2021/04/msg00002.html
- https://x-stream.github.io/CVE-2021-21343.html
- https://x-stream.github.io/security.html#workaround