Skip to content
Heist/ feed
Back to feed
High

apache-opennlp — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-43825

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

Products
apache-opennlp
Affected versions
1.9.1-2, 1.9.2-1, 1.9.3-1, 1.9.4-1, 2.3.0-1, 2.3.1-1, 2.3.1-2, 2.3.2-1, 2.5.3-1, 2.5.3-1build1, 2.5.9-1
Fixed versions
Not specified
CVEs
CVE-2026-43825
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:12 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-43825

core-osv · Original source

Published 6 Jul 2026, 17:16 UTC

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

osv:UBUNTU-CVE-2026-43825

apache-opennlp

Fixed versions: Not specified

apache-opennlp

Fixed versions: Not specified

apache-opennlp

Fixed versions: Not specified

apache-opennlp

Fixed versions: Not specified

apache-opennlp

Fixed versions: Not specified

apache-opennlp

Fixed versions: Not specified

Complete source record
{
  "id": "7092ae8b87f779cc1ea1ca78897a1ecc39ca743673b6d475692a22d3fe3dd89c",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-43825",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-43825",
    "summary": "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",
    "evidence": "osv:UBUNTU-CVE-2026-43825",
    "products": [
      {
        "name": {
          "value": "apache-opennlp",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.9.1-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.9.2-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "apache-opennlp",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.9.3-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.9.4-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "apache-opennlp",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.3.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.3.1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.3.1-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.3.2-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "apache-opennlp",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.5.3-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "apache-opennlp",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.5.3-1build1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.5.9-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "apache-opennlp",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.5.3-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "2.5.3-1build1",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-43825",
      "aliases": [
        "UBUNTU-CVE-2026-43825"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "apache-opennlp",
            "purl": "pkg:deb/ubuntu/apache-opennlp?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.9.1-2",
            "1.9.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-43825.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-opennlp-java",
                "binary_version": "1.9.2-1"
              },
              {
                "binary_name": "opennlp",
                "binary_version": "1.9.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "apache-opennlp",
            "purl": "pkg:deb/ubuntu/apache-opennlp?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.9.3-1",
            "1.9.4-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-43825.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-opennlp-java",
                "binary_version": "1.9.4-1"
              },
              {
                "binary_name": "opennlp",
                "binary_version": "1.9.4-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "apache-opennlp",
            "purl": "pkg:deb/ubuntu/apache-opennlp?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "2.3.0-1",
            "2.3.1-1",
            "2.3.1-2",
            "2.3.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-43825.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-opennlp-java",
                "binary_version": "2.3.2-1"
              },
              {
                "binary_name": "opennlp",
                "binary_version": "2.3.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "apache-opennlp",
            "purl": "pkg:deb/ubuntu/apache-opennlp?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "2.5.3-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-43825.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-opennlp-java",
                "binary_version": "2.5.3-1"
              },
              {
                "binary_name": "opennlp",
                "binary_version": "2.5.3-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "apache-opennlp",
            "purl": "pkg:deb/ubuntu/apache-opennlp?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.5.3-1build1",
            "2.5.9-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-43825.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-opennlp-java",
                "binary_version": "2.5.9-1"
              },
              {
                "binary_name": "opennlp",
                "binary_version": "2.5.9-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "apache-opennlp",
            "purl": "pkg:deb/ubuntu/apache-opennlp?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.5.3-1",
            "2.5.3-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-43825.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-opennlp-java",
                "binary_version": "2.5.3-1build1"
              },
              {
                "binary_name": "opennlp",
                "binary_version": "2.5.3-1build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:58:17.330987495Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-43825"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-43825",
        "https://www.cve.org/CVERecord?id=CVE-2026-43825",
        "https://www.openwall.com/lists/oss-security/2026/07/06/9",
        "https://issues.apache.org/jira/browse/OPENNLP-1823",
        "https://lists.apache.org/thread/c7kom0pgk9cbpfnbooh5m3g85ndf50hn"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-43825",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 358511,
  "published_at": "2026-07-06T17:16:00+00:00"
}