🔍 CVE-2022-46751

8.2
CVSS Score
HIGH
2023-08-21
2026-06-17 05:12
✅ 완료

🇰🇷 한글 설명

Apache Ivy 2.5.2 미만 버전에서 발생하는 XML 외부 엔티티(XXE) 및 XML 인젝션 취약점입니다. 공격자가 조작된 XML 파일을 통해 외부 DTD를 다운로드하거나 엔티티 참조를 확장함으로써 데이터를 탈취하거나 내부 리소스에 접근할 수 있습니다.

💡 쉬운 설명

프로그램이 XML 파일을 읽을 때 외부의 위험한 정보를 함부로 가져오도록 허용하는 보안 결함입니다. 이를 통해 해커가 서버 내부의 중요한 파일을 훔쳐보거나 시스템을 방해할 수 있습니다.

🇺🇸 원문 (English)

Improper Restriction of XML External Entity Reference, XML Injection (aka Blind XPath Injection) vulnerability in Apache Software Foundation Apache Ivy.This issue affects any version of Apache Ivy prior to 2.5.2. When Apache Ivy prior to 2.5.2 parses XML files - either its own configuration, Ivy files or Apache Maven POMs - it will allow downloading external document type definitions and expand any entity references contained therein when used. This can be used to exfiltrate data, access resources only the machine running Ivy has access to or disturb the execution of Ivy in different ways. Starting with Ivy 2.5.2 DTD processing is disabled by default except when parsing Maven POMs where the default is to allow DTD processing but only to include a DTD snippet shipping with Ivy that is needed to deal with existing Maven POMs that are not valid XML files but are nevertheless accepted by Maven. Access can be be made more lenient via newly introduced system properties where needed. Users of Ivy prior to version 2.5.2 can use Java system properties to restrict processing of external DTDs, see the section about "JAXP Properties for External Access restrictions" inside Oracle's "Java API for XML Processing (JAXP) Security Guide".

📍 영향받는 시스템

Apache Ivy 2.5.2 미만 모든 버전

⚔️ 공격 벡터

조작된 XML 파일(설정 파일, Ivy 파일, Maven POM 등)을 파싱하도록 유도하여 외부 엔티티 참조를 실행

🛡️ 대응 방법

Apache Ivy를 2.5.2 이상의 최신 버전으로 업데이트하거나 Java 시스템 속성을 사용하여 외부 DTD 처리를 제한

🔧 검증 코드

출력된 Ivy 버전이 2.5.2 미만인지 확인하여 취약 여부를 판단합니다.

Shell / Script
java -cp ivy.jar ivy.version 2>/dev/null || echo 'Check ivy version manually'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L

💻 영향받는 소프트웨어

Spring Data REST