🔍 CVE-2026-85250

7.5
CVSS Score
HIGH
2026-10-19
2026-11-03 21:35
✅ 완료

🇰🇷 한글 설명

Apache Camel XPath 컴포넌트에서 documentType을 InputSource로 설정했을 때 XML 외부 엔티티(XXE) 참조가 적절히 제한되지 않는 취약점입니다. 기본 문서 타입에서는 차단되는 DOCTYPE 선언이 이 설정에서는 허용되어 외부 엔티티가 해석됩니다.

💡 쉬운 설명

Apache Camel의 XPath 기능에서 특정 설정을 사용하면 보안 제한이 우회됩니다. 외부에서 보낸 악성 XML로 서버의 파일을 읽거나 임의의 호스트로 요청을 보낼 수 있습니다.

🇺🇸 원문 (English)

Improper Restriction of XML External Entity Reference vulnerability in Apache Camel XPath component. This issue affects Apache Camel: from 4.0.0 before 4.18.5, from 4.19.0 before 4.22.1. With documentType set to InputSource, XPathBuilder handed the payload straight to javax.xml.xpath, which builds a DocumentBuilder of its own using the JDK defaults. The hardening applied to Camel's default document type was therefore bypassed: a DOCTYPE declaration that is refused on the default type was accepted here, and the external entity it declared was resolved and expanded into the evaluated document. An external sender whose XML reaches such an expression could read files readable by the Camel process and cause the process to issue requests to hosts it names. The two document types disagreeing on parser configuration is what made this reachable, since a deployment choosing InputSource for streaming reasons had no indication it was also choosing a weaker parser. Upgrade to Apache Camel 4.23.0, which fixes the issue. Users on the 4.18.x LTS releases stream should upgrade to 4.18.5. Users on the 4.22.x LTS releases stream should upgrade to 4.22.1. The InputSource document type now goes through the same hardened parser as the default type, so a DOCTYPE is refused. Note that it also shares that type's documented escape hatch: the same DocumentBuilderFactory system properties that relax the default type relax this one, so a deployment that has set them remains unprotected by design. For deployments that cannot upgrade immediately, do not use documentType=InputSource on expressions evaluated over untrusted XML; the default document type already refuses a DOCTYPE.

📍 영향받는 시스템

Apache Camel 4.0.0 이상 4.18.5 미만, 4.19.0 이상 4.22.1 미만 (documentType=InputSource 사용 시)

⚔️ 공격 벡터

documentType=InputSource가 설정된 XPath 표현식에 외부 공격자가 DOCTYPE과 외부 엔티티를 포함한 XML을 전달하여 파일 노출 및 SSRF를 유발

🛡️ 대응 방법

Apache Camel 4.18.5(4.18.x LTS), 4.22.1(4.22.x LTS) 또는 4.23.0 이상으로 업그레이드하고, 즉시 업그레이드가 불가능하면 신뢰할 수 없는 XML에 대해 documentType=InputSource를 사용하지 않습니다.

🔧 검증 코드

출력된 camel-xpath 버전이 4.18.5, 4.22.1, 4.23.0 이상이면 패치된 것이며, 그보다 낮은 4.0.0~4.18.4 또는 4.19.0~4.22.0 버전이면 취약합니다.

Shell / Script
find / -name 'camel-xpath*.jar' 2>/dev/null | xargs -I{} sh -c 'echo {}; unzip -p {} META-INF/MANIFEST.MF 2>/dev/null | grep -i implementation-version'

📊 CVSS Vector String

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