Apache Camelの脆弱性、XML外部実体で任意のファイルを読まれるおそれ
概要
Apache CamelのCamel-Saxonコンポーネントに、XML外部実体の参照に関する脆弱性が見つかりました。XQueryの式やxquery エンドポイントに渡されたXMLで、Sourceとして届いた本文に含まれる外部実体が解決され、サーバー上のファイルを読み取られるおそれがあります。影響を受けるのは4.0.0以降4.18.5未満と、4.19.0以降4.22.2未満のApache Camelです。修正版の4.18.5または4.22.2に更新してください。
AI要約
外部の AI が作成した要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
Apache CamelのCamel-Saxonコンポーネントに、XML外部実体の参照に関する脆弱性が見つかりました。XQueryの式やxquery エンドポイントに渡されたXMLで、Sourceとして届いた本文に含まれる外部実体が解決され、サーバー上のファイルを読み取られるおそれがあります。影響を受けるのは4.0.0以降4.18.5未満と、4.19.0以降4.22.2未満のApache Camelです。修正版の4.18.5または4.22.2に更新してください。
影響パッケージ
| 種類 | パッケージ | 影響を受ける版 | 直った版 |
|---|---|---|---|
| Apache Software Foundation | Apache Camel |
4.0.0 以上 4.18.5 未満 4.19.0 以上 4.22.2 未満 |
4.18.5 4.22.2 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Improper Restriction of XML External Entity Reference vulnerability in Apache Camel Saxon component.
This issue affects Apache Camel: from 4.0.0 before 4.18.5, from 4.19.0 before 4.22.2.
XQueryBuilder in camel-saxon, which evaluates expressions for the xquery language and the xquery component, built its default Saxon Configuration with parse options that set only a whitespace stripping rule, leaving the XML parser at its defaults, under which a DOCTYPE declaration is accepted and external entities are resolved. A message body of type String or byte[], or any body read as an InputStream, is first turned into a javax.xml.transform.Source by Camel's own XML type converters, which configure the parser against external entities, so those bodies were not affected. A body that was already a Source, however, was handed to Saxon unchanged, and when that Source still had to be parsed, as a stream-based Source does, Saxon parsed it with that Configuration, bypassing the protection applied to the other body types. Such a body arises, for example, after a route converts the message with convertBodyTo(Source.class), or when a component or processor earlier in the route sets the body to a stream-based Source. A DOCTYPE with an external subset, or an external entity, declared in that body was therefore resolved and expanded into the document the expression was evaluated against. An external sender whose XML reaches an XQuery expression or an xquery endpoint in that form could read files re…
出典: oss-security (Openwall) NVD GitHub Advisory
参照URL
- advisory camel.apache.org
- advisory nvd.nist.gov
- advisory github.com
- OSS-SECURITY CVE-2026-90885: Apache Camel: Camel-Saxon XML External Entity Processing - XQueryBuilder Parsed a Message Body That Was Already a javax.xml.transform.Source With Saxon's Default Parser Settings, so an External Entity Declared in That Body Was Resolve
- patch github.com
- patch github.com
- patch github.com
- report issues.apache.org
- web camel.apache.org
- web github.com
- web repo.maven.apache.org