CVE-2022-41966 XStream Denial of Service via stack overflow
스택 오버플로를 통한 서비스 거부 XStream Denial of Service
설명
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.
XStream은 Java 객체를 XML로 직렬화하고 다시 반환합니다. 1.4.20 이전 버전은 원격 공격자가 스택 오버플로우 오류로 애플리케이션을 종료할 수 있으며, 이로 인해 처리된 입력 스트림을 조작하여 서비스 거부가 발생할 수 있습니다. 이 공격은 컬렉션과 맵에 대한 해시 코드 구현을 사용하여 재귀 해시 계산을 강제하여 스택 오버플로를 유발합니다. 이 문제는 스택 오버플로를 처리하고 대신 InputManipulationException을 발생시키는 버전 1.4.20에서 패치됩니다. HashMap 또는 HashSet만 사용하고 XML이 기본 맵 또는 세트로만 참조하는 사용자의 경우, 참조된 권고의 코드 예제에 따라 java.util.Map 및 java.util의 기본 구현을 변경하는 것이 가능합니다. 그러나 이것은 응용 프로그램이지도의 구현에 관심이없고 모든 요소가 비교 가능하다는 것을 의미합니다.
영향 받는 제품 제품 1개
-
해결 버전 있음
x-stream
xstream
영향 받는 버전
- 1.4.20 미만
해결 버전
- 1.4.20 이상