Skip to content

CVE-2022-41966 XStream Denial of Service via stack overflow

HighCVSS 7.5 EPSS 9.3%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial
Technology
UbuntuDebian

Description

XStream serializes Java objects to XML and back again. Versions prior to 1.4.20 may allow a remote attacker to terminate the application with a stack overflow error, resulting in a denial of service only via manipulation the processed input stream. The attack uses the hash code implementation for collections and maps to force recursive hash calculation causing a stack overflow. This issue is patched in version 1.4.20 which handles the stack overflow and raises an InputManipulationException instead. A potential workaround for users who only use HashMap or HashSet and whose XML refers these only as default map or set, is to change the default implementation of java.util.Map and java.util per the code example in the referenced advisory. However, this implies that your application does not care about the implementation of the map and all elements are comparable.

Upgrade path

15 packages: 10 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/libxstream-java(Ubuntu 24.04) = 1.4.20-1; All versions No fix listed No fix yet
ubuntu/libxstream-java(Ubuntu 25.10) = 1.4.21-1; All versions No fix listed No fix yet
ubuntu/libxstream-java(Ubuntu 26.04) = 1.4.21-1; All versions No fix listed No fix yet
ubuntu/libxstream-java(Ubuntu 26.10) = 1.4.21-1; All versions No fix listed No fix yet
com.thoughtworks.xstream/xstream(Maven) < 1.4.20; = 0.1; = 0.2; = 0.3 +41 more 1.4.20 Fixed
debian/libxstream-java(Debian 12) < 1.4.20-1 1.4.20-1 Fixed
debian/libxstream-java(Debian 13) < 1.4.20-1 1.4.20-1 Fixed
debian/libxstream-java(Debian 14) < 1.4.20-1 1.4.20-1 Fixed
ubuntu/libxstream-java(Ubuntu 18.04) < 1.4.11.1-1+deb10u4build0.18.04.1; = 1.4.10-1; = 1.4.11.1-1~18.04; = 1.4.11.1-1~18.04.1 +1 more 1.4.11.1-1+deb10u4build0.18.04.1 Fixed
ubuntu/libxstream-java(Ubuntu 20.04) < 1.4.11.1-1ubuntu0.3; = 1.4.11.1-1; = 1.4.11.1-1ubuntu0.1; = 1.4.11.1-1ubuntu0.2 1.4.11.1-1ubuntu0.3 Fixed
ubuntu/libxstream-java(Ubuntu 22.04) < 1.4.18-2ubuntu0.1; = 1.4.15-4; = 1.4.18-2 1.4.18-2ubuntu0.1 Fixed
ubuntu/libxstream-java(Ubuntu Pro 14.04) < 1.4.7-1ubuntu0.1+esm1; = 1.4.4-1; = 1.4.7-1; = 1.4.7-1ubuntu0.1 1.4.7-1ubuntu0.1+esm1 Fixed
ubuntu/libxstream-java(Ubuntu Pro 16.04) < 1.4.8-1ubuntu0.1+esm1; = 1.4.8-1; = 1.4.8-1ubuntu0.1 1.4.8-1ubuntu0.1+esm1 Fixed
xstream < 1.4.20 1.4.20 Fixed
x-stream xstream = < 1.4.20 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
com.thoughtworks.xstream/xstream(Maven) < 1.4.20 1.4.20
com.thoughtworks.xstream/xstream(Maven) = 0.1 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 0.2 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 0.3 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 0.5 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 0.6 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.0 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.0.1 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.0.2 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.1 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.1.1 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.1.2 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.1.3 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.2 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.2.1 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.2.2 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.3 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.3.1 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.1 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.10 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.10-java7 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.11 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.11-java7 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.11.1 No fix listed
Show 52 more
ProductAffected versionsFixed in
com.thoughtworks.xstream/xstream(Maven) = 1.4.12 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.12-java7 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.13 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.13-java7 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.14 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.14-java7 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.14-jdk7 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.15 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.16 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.17 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.18 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.19 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.2 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.3 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.4 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.5 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.6 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.7 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.8 No fix listed
com.thoughtworks.xstream/xstream(Maven) = 1.4.9 No fix listed
x-stream xstream = < 1.4.20 No fix listed
ubuntu/libxstream-java(Ubuntu:22.04) < 1.4.18-2ubuntu0.1 1.4.18-2ubuntu0.1
xstream < 1.4.20 1.4.20
ubuntu/libxstream-java(Ubuntu:24.04) All versions No fix listed
ubuntu/libxstream-java(Ubuntu:26.04) All versions No fix listed
ubuntu/libxstream-java(Ubuntu:26.10) All versions No fix listed
debian/libxstream-java(Debian:12) < 1.4.20-1 1.4.20-1
debian/libxstream-java(Debian:14) < 1.4.20-1 1.4.20-1
debian/libxstream-java(Debian:13) < 1.4.20-1 1.4.20-1
ubuntu/libxstream-java(Ubuntu:Pro:14.04) < 1.4.7-1ubuntu0.1+esm1 1.4.7-1ubuntu0.1+esm1
ubuntu/libxstream-java(Ubuntu:Pro:14.04) = 1.4.4-1 No fix listed
ubuntu/libxstream-java(Ubuntu:Pro:14.04) = 1.4.7-1 No fix listed
ubuntu/libxstream-java(Ubuntu:Pro:14.04) = 1.4.7-1ubuntu0.1 No fix listed
ubuntu/libxstream-java(Ubuntu:Pro:16.04) < 1.4.8-1ubuntu0.1+esm1 1.4.8-1ubuntu0.1+esm1
ubuntu/libxstream-java(Ubuntu:Pro:16.04) = 1.4.8-1 No fix listed
ubuntu/libxstream-java(Ubuntu:Pro:16.04) = 1.4.8-1ubuntu0.1 No fix listed
ubuntu/libxstream-java(Ubuntu:18.04) < 1.4.11.1-1+deb10u4build0.18.04.1 1.4.11.1-1+deb10u4build0.18.04.1
ubuntu/libxstream-java(Ubuntu:18.04) = 1.4.10-1 No fix listed
ubuntu/libxstream-java(Ubuntu:18.04) = 1.4.11.1-1~18.04 No fix listed
ubuntu/libxstream-java(Ubuntu:18.04) = 1.4.11.1-1~18.04.1 No fix listed
ubuntu/libxstream-java(Ubuntu:18.04) = 1.4.11.1-1~18.04.2 No fix listed
ubuntu/libxstream-java(Ubuntu:20.04) < 1.4.11.1-1ubuntu0.3 1.4.11.1-1ubuntu0.3
ubuntu/libxstream-java(Ubuntu:20.04) = 1.4.11.1-1 No fix listed
ubuntu/libxstream-java(Ubuntu:20.04) = 1.4.11.1-1ubuntu0.1 No fix listed
ubuntu/libxstream-java(Ubuntu:20.04) = 1.4.11.1-1ubuntu0.2 No fix listed
ubuntu/libxstream-java(Ubuntu:22.04) = 1.4.15-4 No fix listed
ubuntu/libxstream-java(Ubuntu:22.04) = 1.4.18-2 No fix listed
ubuntu/libxstream-java(Ubuntu:24.04) = 1.4.20-1 No fix listed
ubuntu/libxstream-java(Ubuntu:25.10) All versions No fix listed
ubuntu/libxstream-java(Ubuntu:25.10) = 1.4.21-1 No fix listed
ubuntu/libxstream-java(Ubuntu:26.10) = 1.4.21-1 No fix listed
ubuntu/libxstream-java(Ubuntu:26.04) = 1.4.21-1 No fix listed

References