CVE-2026-40682 | Apache OpenNLP: XXE via Dictionary Parsing in DictionaryEntryPersistor

XML External Entity (XXE) via Unsanitized Dictionary Parsing in Apache OpenNLP DictionaryEntryPersistor Versions Affected: before 2.5.9, before 3.0.0-M3 Description: The DictionaryEntryPersistor class initializes a static SAXParserFactory at class-load time without enabling FEATURE_SECURE_PROCESSING or disabling DTD processing. When create(InputStream, EntryInserter) is invoked, the only feature set on the XMLReader is namespace support — external entity resolution and DOCTYPE declarations remain fully enabled. An attacker who can supply a crafted dictionary file (e.g., a stop-word list or domain dictionary) containing a malicious DOCTYPE declaration can trigger local file disclosure via file:// entity references or server-side request forgery via http:// entity references during SAX parsing, before the application processes a single dictionary entry. This is inconsistent with the project's own XmlUtil.createSaxParser() helper, which correctly sets FEATURE_SECURE_PROCESSING and disallow-doctype-decl and is used by all other XML parsing paths in the codebase. The public Dictionary(InputStream) constructor delegates directly to this method and is the documented API for loading user-supplied dictionaries, making untrusted input a realistic scenario. Mitigation: 2.x users should upgrade to 2.5.9. 3.x users should upgrade to 3.0.0-M3. Users who cannot upgrade immediately should ensure that all dictionary files are sourced from trusted origins and should consider wrapping the Dictionary(InputStream) constructor with input validation that rejects any XML containing a DOCTYPE declaration before it reaches the parser.

公開: 2026-05-04 最終更新: 2026-06-17 Assigner: [email protected] ソース: [email protected]

総合評価: CVE-2026-40682 は中リスク(47.8/100)。CVSS 深刻度は重大。悪用される可能性が高い(EPSS 0.40%、32 パーセンタイル) 推奨対応: 影響資産を整理し、修補計画に組み込んでください。

リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。

CVE-2026-40682 の EPSS(Exploit Prediction Scoring System)スコア

EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。

# 日付 旧 EPSS スコア 新 EPSS スコア Δ(新 − 旧)
1 2026-06-15 0.09% 0.40% +0.32%
2 2026-05-07 0.03% 0.09% +0.06%
3 2026-05-05 0.03%

EPSS の全履歴 (全 3 件)

CVE-2026-40682 の CVSS(Common Vulnerability Scoring System)指標

この CVE の CVSS 指標。

ベーススコア バージョン 深刻度 ベクトル 悪用しやすさ 影響 スコアの出典
9.1 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N クリックして展開
攻撃ベクター (AV:N)
インターネットなど、ルーティングされたネットワーク越しに遠隔から悪用しうる。端末の前にいる必要はない。
攻撃の複雑さ (AC:L)
攻撃者が条件を満たせば、レース条件や珍しい構成に依存せずに再現しやすい。
必要な権限 (PR:N)
事前のログインや昇格は不要で、匿名アクセスのまま踏み台にしうる。
ユーザーの関与 (UI:N)
メールのリンクを開く、マクロを有効にするなど、被害者の協力がなくても成立しうる。
スコープ (S:U)
影響は脆弱コンポーネントと同一のセキュリティ権限・信頼境界の内側に収まる。
機密性への影響 (C:H)
広範な機微データの読み取りや持ち出しが現実的。
完全性への影響 (I:H)
権限の奪取や広範なログ改竄など、システムの信頼根拠を揺るがす改ざんが現実的。
可用性への影響 (A:N)
業務継続に支障が出るレベルの停止や劣化は想定されない。
3.9 5.2 134c704f-9b21-4f2e-91b3-4a467353bcc0

CVE-2026-40682 の弱点分類(列挙)

CVE-2026-40682 の GitHub Security Advisory

GHSA-4v8g-86x5-3vrc · 深刻度: critical · エコシステム: maven — Apache OpenNLP DictionaryEntryPersistor Vulnerable to XML External Entity (XXE) via Unsanitized Dictionary Parsing

CVE-2026-40682 の OS トラッカー

vendor priority summary link
debian not yet assigned CVE-2026-40682 not yet assigned priority: Debian including 1 source packages (apache-opennlp), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): open 3, resolved 2. https://security-tracker.debian.org/tracker/CVE-2026-40682
ubuntu medium CVE-2026-40682 medium priority: Ubuntu including 1 source packages (apache-opennlp), 6 status rows across 6 suites (focal, jammy, noble, questing, resolute, upstream): needs-triage 6. https://ubuntu.com/security/CVE-2026-40682

CVE-2026-40682 の影響を受けるソフトウェア/構成

ベンダー 製品 バージョン 生の CPE
apache opennlp < 2.5.9 cpe:2.3:a:apache:opennlp:*:*:*:*:*:*:*:*
apache opennlp 3.0.0 cpe:2.3:a:apache:opennlp:3.0.0:m1:*:*:*:*:*:*
apache opennlp 3.0.0 cpe:2.3:a:apache:opennlp:3.0.0:m2:*:*:*:*:*:*

CVE-2026-40682 の参考情報

cvelogic Threat Intelligence