🔍 CVE-2013-0340

6.8
CVSS Score
MEDIUM
2014-01-21
2026-10-14 07:16
✅ 완료

🇰🇷 한글 설명

Expat 2.4.0 미만 버전에서 XML 엔티티 확장을 적절히 처리하지 못해 발생하는 XML 외부 엔티티(XXE) 취약점입니다. 공격자가 조작된 XML 문서를 통해 서비스 거부(DoS), 내부 서버로의 HTTP 요청 전송, 또는 임의 파일 읽기를 수행할 수 있습니다.

💡 쉬운 설명

악의적으로 만들어진 XML 파일을 읽을 때, 컴퓨터가 외부의 정보를 가져오려다 시스템이 멈추거나 중요한 파일을 몰래 읽히는 보안 문제입니다. 이를 통해 해커가 서버의 내부 정보를 훔쳐볼 수 있습니다.

🇺🇸 원문 (English)

expat before version 2.4.0 does not properly handle entities expansion unless an application developer uses the XML_SetEntityDeclHandler function, which allows remote attackers to cause a denial of service (resource consumption), send HTTP requests to intranet servers, or read arbitrary files via a crafted XML document, aka an XML External Entity (XXE) issue. NOTE: it could be argued that because expat already provides the ability to disable external entity expansion, the responsibility for resolving this issue lies with application developers; according to this argument, this entry should be REJECTed, and each affected application would need its own CVE.

📍 영향받는 시스템

Expat 2.4.0 미만 버전

⚔️ 공격 벡터

조작된 XML 문서를 서버에 전송하여 외부 엔티티 확장을 유도함

🛡️ 대응 방법

Expat 라이브러리를 2.4.0 이상 버전으로 업데이트하거나, 애플리케이션 개발 시 XML_SetEntityDeclHandler를 사용하여 외부 엔티티 확장을 비활성화함

🔧 검증 코드

출력된 결과에서 설치된 expat의 버전을 확인하여 2.4.0 미만인지 체크함

Shell / Script
dpkg -l | grep libexpat1 || rpm -qa | grep expat

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

IBM WebSphere Application Server