XStream.serializes.stack.overflow.Dos

description-logoDescription

This indicates an attack attempt to exploit a Denial of Service Vulnerability in XStream.
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.

affected-products-logoAffected Products

XStream Versions prior to 1.4.20

Impact logoImpact

Denial of Service: Remote attackers can crash vulnerable systems.

recomended-action-logoRecommended Actions

Apply the most recent upgrade or patch from the vendor.

Version Updates

Date Version Detail
2023-04-14 0.00346

CVE References

CVE-2022-41966