CVE-2026-43825Apache Opennlp
High 7.3 No auth needed
Follow: this CVE · Apache · Apache Opennlp We alert you by email or Slack (account required).
- Priority
- 59
- CVSS 3.1
- 7.3
- EPSS
- —
- Auth required
- No
- Published
- Jul 6, 2026
- Updated
- Oct 25, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-502
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
What happens
Untrusted Java Deserialization in Apache OpenNLP SvmDoccatModel
Versions Affected:
before 3.0.0-M4 (libsvm document categorization module; introduced in
OPENNLP-1808 and only present on the 3.x line)
Description:
SvmDoccatModel.deserialize(InputStream) reads an attacker-controlled
stream with java.io.ObjectInputStream and calls readObject() without an
ObjectInputFilter installed. ObjectInputStream materialises every class
referenced in the stream before the resulting object is cast to
SvmDoccatModel, so the cast that follows readObject() executes only
after the foreign object graph has already been deserialised in full.
If a Java deserialization gadget chain is available on the consumer's
classpath, a crafted payload supplied to
deserialize() executes arbitrary code in the JVM that loads it. Apache
OpenNLP itself does not ship a known gadget chain, so the realistic
risk is to downstream applications that embed the libsvm module
alongside vulnerable transitive dependencies. The method is public and
static, so any caller can pass an untrusted stream to it directly.
The practical impact is remote code execution against processes that
load SvmDoccatModel instances from untrusted or semi-trusted origins.
Mitigation:
3.x users should upgrade to 3.0.0-M4.
Users who cannot upgrade immediately should treat all serialized
SvmDoccatModel streams as untrusted input unless their provenance is
verified, and should avoid invoking SvmDoccatModel.deserialize() on
streams supplied by end users or fetched from third-party sources
without integrity checks.
What to do
- Apply the vendor's security update for Opennlp.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| apache | opennlp | 3.0.0 |
| apache | opennlp | 3.0.0 |
| apache | opennlp | 3.0.0 |
Official advisories
- opennlp-2.5.13-1.1 on GA media · SUSE · openSUSE-SU-2026:12616-1 · Nov 19, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- lists.apache.org Mailing List Vendor Advisory
- www.openwall.com Mailing List Third Party Advisory