🔍 CVE-2025-31497

7.5
CVSS Score
HIGH
2025-04-15
2026-06-17 09:10
✅ 완료

🇰🇷 한글 설명

TEIGarage의 문서 변환 서비스에서 발생하는 XML 외부 엔티티(XXE) 주입 취약점입니다. 공격자가 조작된 XML 파일을 전송하여 서버의 임의 파일을 읽거나 서버 측 요청 위조(SSRF)를 수행할 수 있습니다.

💡 쉬운 설명

웹 서비스가 XML 파일을 처리할 때 보안 설정이 미흡하여 발생하는 문제입니다. 이를 통해 해커가 서버 내부의 중요한 파일을 훔쳐보거나 서버를 이용해 내부 네트워크를 공격할 수 있습니다.

🇺🇸 원문 (English)

TEIGarage is a webservice and RESTful service to transform, convert and validate various formats, focussing on the TEI format. The Document Conversion Service contains a critical XML External Entity (XXE) Injection vulnerability in its document conversion functionality. The service processes XML files during the conversion process but fails to disable external entity processing, allowing an attacker to read arbitrary files from the server's filesystem. This vulnerability could allow attackers to read sensitive files from the server's filesystem, potentially exposing configuration files, credentials, or other confidential information. Additionally, depending on the server configuration, this could potentially be used to perform server-side request forgery (SSRF) attacks by making the server connect to internal services. This issue is patched in version 1.2.4. A workaround for this vulnerability includes disabling external entity processing in the XML parser by setting the appropriate security features (e.g., XMLConstants.FEATURE_SECURE_PROCESSING).

📍 영향받는 시스템

TEIGarage Document Conversion Service (1.2.4 미만 버전)

⚔️ 공격 벡터

조작된 외부 엔티티가 포함된 XML 파일을 문서 변환 기능에 업로드하여 공격

🛡️ 대응 방법

TEIGarage를 1.2.4 버전으로 업데이트하거나 XML 파서에서 외부 엔티티 처리를 비활성화

🔧 검증 코드

명령어 결과에 1.2.4 버전이 포함되어 있으면 취약점이 해결된 상태입니다.

Shell / Script
curl -s http://<target-ip>/version | grep -E '1.2.4'

📊 CVSS Vector String

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