🔍 CVE-2026-40998

8.2
CVSS Score
HIGH
2026-06-11
2026-09-04 18:19
✅ 완료

🇰🇷 한글 설명

Jaxp13XPathTemplate이 StreamSource 및 SAXSource 입력을 처리할 때 Spring의 보안 설정 대신 JDK 기본 DocumentBuilderFactory를 사용하여 XPath를 평가하는 취약점입니다. 이로 인해 신뢰할 수 없는 XML 페이로드를 사용하는 애플리케이션은 XML 외부 엔티티(XXE) 공격에 노출될 수 있습니다.

💡 쉬운 설명

프로그램이 외부에서 들어온 XML 데이터를 검사할 때 보안 장치를 제대로 작동시키지 않아 발생하는 문제입니다. 공격자가 조작된 XML 파일을 보내면 서버 내부의 중요한 파일을 훔쳐보거나 공격할 수 있습니다.

🇺🇸 원문 (English)

Jaxp13XPathTemplate evaluated XPath expressions for StreamSource and SAXSource inputs using a code path that parsed attacker-controlled XML with the JDK's default DocumentBuilderFactory behavior instead of Spring's hardened parser configuration. Applications that evaluate XPath against untrusted XML payloads could therefore be exposed to XML External Entity (XXE) style attacks. Affected versions: Spring Web Services 5.0.0 through 5.0.1; 4.1.0 through 4.1.3; 4.0.0 through 4.0.18; 3.1.0 through 3.1.8.

📍 영향받는 시스템

Spring Web Services 5.0.0-5.0.1, 4.1.0-4.1.3, 4.0.0-4.0.18, 3.1.0-3.1.8

⚔️ 공격 벡터

신뢰할 수 없는 XML 데이터를 XPath 평가 대상으로 전달하여 XXE 공격 수행

🛡️ 대응 방법

Spring Web Services를 취약점이 해결된 최신 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 결과에 포함된 spring-ws-core의 버전이 취약 범위에 해당하는지 확인하십시오.

Shell / Script
mvn dependency:tree | grep -E 'spring-ws-core:[3\.|4\.|5\.][0-9\.]+'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Spring Web Services
🇰🇷 KISA(한국인터넷진흥원) 보안 권고 이 CVE에 대한 한국 공식 권고 (1건)
Spring 제품 보안 업데이트 권고 P4
📅 2026-06-17 · sec_notice
Spring Framework 및 관련 라이브러리(Micrometer, Spring Security 등)에서 SSRF, XSS, RCE 가능성이 있는 다수의 취약점이 발견되었습니다. 해당 제품을 사용하는 사용자는 권고된 최신 버전으로 즉시 업데이트해야 합니다.
KISA 원문 →