CVE-2026-40682
Beskrivelse
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.
Beskrivelsen gjengis slik kilden har publisert den, på engelsk.
Nøkkelfakta
- Publisert
- 2026-05-04
- Sist endret
- 2026-10-26
- Tildelt av
- security@apache.org
- CVSS-vektor
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N- Scoret av
- 134c704f-9b21-4f2e-91b3-4a467353bcc0
- Sannsynlighet for utnyttelse
-
0.5 %
høyere enn 40 %
av alle kjente sårbarheter
EPSS, neste 30 dager, modell v2026.06.15 - Rettelse finnes
- Ikke registrert hos kildene
Berørte produkter
| Leverandør | Produkt | Versjoner | Status |
|---|---|---|---|
| Apache | Opennlp | < 2.5.9 | Berørt |
| Apache | Opennlp | 3.0.0 | Berørt |
Svakhetstype
-
CWE-611: Improper Restriction of XML External Entity Reference
The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.
Referanser
- https://lists.apache.org/thread/r6jpt0qr9nj67gqhppqg7jxf8vsbo0w6
- http://www.openwall.com/lists/oss-security/2026/05/01/19
- https://access.redhat.com/security/cve/CVE-2026-40682
- https://bugzilla.redhat.com/show_bug.cgi?id=2466484
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40682.json
Relatert hos Berigo
Artikler
-
Hullet i proxymodulen foran Oracle WebLogic utnyttes nå
Samme produkt
2026-08-25
CISA førte 24. august sårbarheten CVE-2026-21962 opp i katalogen over kjente utnyttede sårbarheter, etter bevis for aktiv utnyttelse. Feilen ligger i…
-
Kryptobiblioteket i Python har fått algoritmene som skal tåle kvantemaskiner
Samme produkt
2026-08-18
Trail of Bits har lagt ML-KEM og ML-DSA inn i pyca/cryptography, finansiert av Sovereign Tech Agency. Biblioteket er den ellevte mest nedlastede pakk…
-
Unit 42: kinesiskspråklig aktør kjørte autonome angrep med KI-agent
Samme produkt
2026-07-31
Unit 42 offentliggjorde 30. juli 2026 en kampanje der en kinesiskspråklig aktør lot en KI-agent lete opp mål, hente angrepskode og forsøke å utnytte …
-
KI-agent valgte mål og byttet sårbarhet på egen hånd i kinesisk kampanje
Samme produkt
2026-07-31
Unit 42 beskriver en kinesisktalende aktør som koblet språkmodellen DeepSeek til agentrammeverket Hermes Agent, og lot oppsettet finne mål, hente utn…
Berører dette dere?
En sårbarhet betyr bare noe hvis dere kjører produktet, i en berørt versjon, et sted en angriper kommer til.