Deserialization in Apache Opennlp
CVE-2026-43825
- CVSS v3
- 7.3 High
- Public exploits
- None known
- EPSS
- 0.139 · 96.6th percentile
- Published
- 2026-07-06
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.
Vulnerability class: Insecure Deserialization
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.3 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- None
PR:N - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- Low
C:L - Integrity
- Low
I:L - Availability
- Low
A:L
EPSS exploit prediction
EPSS 0.139, 96.6th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Apache Opennlp — versions 3.0.0
- Apache Software Foundation Opennlp :: Core Ml Libsvm — versions 3.0.0-M1
Weakness classification (CWE)
References
- lists.apache.org/thread/c7kom0pgk9cbpfnbooh5m3g85ndf50hn (vendor-advisory, Mailing List, Vendor Advisory)
- www.openwall.com/lists/oss-security/2026/07/06/9 (Mailing List, Third Party Advisory)