CVE-2026-43825 Apache OpenNLP :: Core :: ML :: LibSVM: Unsafe Java Deserialization in SvmDoccatModel
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
Description
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.
Upgrade path
6 packages: 1 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/apache-opennlp(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/apache-opennlp(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/apache-opennlp(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/apache-opennlp(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| org.apache.opennlp/opennlp-ml-libsvm(Maven) | >= 3.0.0-M1, < 3.0.0-M4 | 3.0.0-M4 | Fixed |
| apache opennlp | = 3.0.0-m1; = 3.0.0-m2; = 3.0.0-m3 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.apache.opennlp/opennlp-ml-libsvm(Maven) | >= 3.0.0-M1, < 3.0.0-M4 | 3.0.0-M4 |
| ubuntu/apache-opennlp(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/apache-opennlp(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/apache-opennlp(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/apache-opennlp(Ubuntu:26.10) | All versions | No fix listed |
| apache opennlp | = 3.0.0-m1 | No fix listed |
| apache opennlp | = 3.0.0-m2 | No fix listed |
| apache opennlp | = 3.0.0-m3 | No fix listed |
References
- lists.apache.org mailing-list vendor-advisory
- www.openwall.com mailing-list third-party-advisory
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2497394 issue-tracking
- www.cve.org
- nvd.nist.gov
- Ubuntu CVE tracker vendor-advisory
- Debian Security Tracker CVE-2026-43825 vendor-advisory