QID 354854
Date Published: 2023-04-06
QID 354854: Amazon Linux Security Advisory for xstream : ALAS2-2023-2007
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. (
( CVE-2022-41966)
Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.
Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.
- ALAS2-2023-2007 -
alas.aws.amazon.com/AL2/ALAS-2023-2007.html
CVEs related to QID 354854
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| ALAS2-2023-2007 | amazon linux 2 |
|