CVE-2026-43825

HighCVSS 7.3/10Last modified Jul 8, 2026

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.

Metrics

CVSS 3.1 7.3/10CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Weakness enumeration

Affected software

VendorProductVersions
Apache Software FoundationApache OpenNLP :: Core :: ML :: LibSVM>= 3.0.0-M1, < 3.0.0-M4

References

Timeline

Published
Jul 6, 2026
Last modified
Jul 8, 2026
NVD status
Analyzed

Related CVEs from 2026

CVE-2026-438266.5The OpenSearch logging provider, when configured with a `host` URL that embeds credentials (for example `https://user:password@server.examplCVE-2026-438276.5Default configurations of Apache Shiro have a session fixation vulnerability. This issue affects Apache Shiro from 1.0 to 2.1.0, and 3.0.0-CVE-2026-438286.5Default configurations of Apache Shiro send sensitive cookies in HTTPS session without 'Secure' attribute. This issue affects Apache ShirCVE-2026-438297.5A stack-based buffer overflow vulnerability in the password functionality could allow an unauthenticated attacker to achieve code execution CVE-2026-438309.8A command injection vulnerability in the firmware upgrade file verification process could allow an attacker to execute arbitrary commands.CVE-2026-438317.5A stack-based buffer overflow vulnerability in the log message functionality could allow an unauthenticated attacker to achieve code executiCVE-2026-438327.5A stack-based buffer overflow vulnerability in the Cookie parsing methods could allow an unauthenticated attacker to achieve code execution CVE-2026-438335.3A stack-based buffer overflow vulnerability in the upload functionality could allow an authenticated attacker to achieve code execution.CVE-2026-438347.5A stack-based buffer overflow vulnerability in the logs settings functionality could allow an authenticated attacker to achieve code executiCVE-2026-438358.6A vulnerability in the firmware upgrade functionality could allow an authenticated attacker to upload a forged firmware upgrade file, potentCVE-2026-438369.3A vulnerability could allow an attacker to forge a packet to execute arbitrary commands with maximum privileges.CVE-2026-438377.5A buffer overflow vulnerability in the password verification functionality could allow an attacker with guest authentication to achieve code
CVE-2026-43825: High severity, CVSS 7.3 | Vulnix