🔍 CVE-2013-4152

6.8
CVSS Score
MEDIUM
2014-01-23
2026-06-16 23:56
✅ 완료

🇰🇷 한글 설명

Spring Framework 3.2.4 이전 버전의 JAXB marshaller에서 XML 외부 엔티티(XXE) 리졸루션이 비활성화되지 않아 발생하는 취약점입니다. 공격자는 DOMSource, StAXSource, SAXSource, StreamSource를 통해 XML 외부 엔티티 선언을 포함한 입력을 전송하여 임의 파일 읽기, DoS, CSRF 공격을 수행할 수 있습니다.

💡 쉬운 설명

Spring 프레임워크의 XML 처리 기능에서 보안 점검이 부족해서, 공격자가 특수하게 조작한 XML 파일을 보내면 서버의 파일을 몰래 읽거나 서버를 마비시킬 수 있습니다. XML 파일 안에 숨겨진 명령어를 포함시켜서 악용하는 방식입니다.

🇺🇸 원문 (English)

The Spring OXM wrapper in Spring Framework before 3.2.4 and 4.0.0.M1, when using the JAXB marshaller, does not disable entity resolution, which allows context-dependent attackers to read arbitrary files, cause a denial of service, and conduct CSRF attacks via an XML external entity declaration in conjunction with an entity reference in a (1) DOMSource, (2) StAXSource, (3) SAXSource, or (4) StreamSource, aka an XML External Entity (XXE) issue.

📍 영향받는 시스템

Spring Framework 3.2.4 이전, 4.0.0.M1 이전 버전 (JAXB marshaller 사용 시)

⚔️ 공격 벡터

XML 외부 엔티티(XXE) 선언을 포함한 DOMSource, StAXSource, SAXSource, StreamSource 입력

🛡️ 대응 방법

Spring Framework을 3.2.4 이상 또는 4.0.0 이상으로 업그레이드하고 XMLConstants.ACCESS_EXTERNAL_DTD를 빈 문자열로 설정

🔧 검증 코드

Spring Framework 버전이 3.2.4 미만이거나 4.0.0.M1 미만으로 표시되면 취약합니다. 버전 번호를 확인하여 3.2.4 이상 또는 4.0.0 정식 이상으로 업그레이드 필요

Shell / Script
find . -name 'pom.xml' -o -name 'build.gradle' | xargs grep -h 'spring' 2>/dev/null | grep -i version | head -1

📊 CVSS Vector String

CVSS Vector
AV:N/AC:M/Au:N/C:P/I:P/A:P

💻 영향받는 소프트웨어

Spring Framework