CVE-2025-62371: Opensearch OpenSearch Data Prepper Plugins Trust Vulnerability
HIGHCVE-2025-62371 is a HIGH (CVSS 7.4) opensearch data prepper plugins trust vulnerability (CWE-295: Improper Certificate Validation) affecting Opensearch libraries in the Maven ecosystem. The issue involves opensearch data prepper plugins trust all ssl certificates by default. Remediation is available by upgrading affected packages to version 2.12.2.
CVE-2025-62371 at a Glance
Security Impact
CVSS: 7.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N).
How to Fix CVE-2025-62371
To remediate this vulnerability, upgrade all affected Opensearch dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.opensearch.dataprepper.plugins</groupId>
<artifactId>opensearch</artifactId>
<version>2.12.2</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.opensearch.dataprepper.plugins
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-62371, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.opensearch.dataprepper.plugins
Analyze the terminal output to locate any version of Opensearch in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.12.2), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.opensearch.dataprepper.plugins command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Opensearch, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-62371 Affected Opensearch Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.opensearch.dataprepper.plugins:opensearch
|
Maven |
< 2.12.2
|
2.12.2
|
References
Frequently Asked Questions
What is CVE-2025-62371?
Which Opensearch versions are affected?
What version fixes CVE-2025-62371?
Is opensearch affected?
What is the CVSS score of CVE-2025-62371?
What CWE is associated with CVE-2025-62371?
How can I check Maven dependencies for CVE-2025-62371?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-43ff-rr26-8hx4",
"modified" : "2025-10-15T20:09:53Z",
"published" : "2025-10-15T20:09:53Z",
"aliases" : [ "CVE-2025-62371" ],
"summary" : "OpenSearch Data Prepper plugins trust all SSL certificates by default",
"details" : "### Impact\n\nThe OpenSearch sink and source plugins in Data Prepper are configured to trust all SSL certificates by default when no certificate path was provided, making connections vulnerable to man-in-the-middle attacks.\n\nPrior to this fix, the OpenSearch sink and source plugins would automatically use a trust all SSL strategy when connecting to OpenSearch clusters if no certificate path was explicitly configured. This behavior bypassed SSL certificate validation, potentially allowing attackers to intercept and modify data in transit through man-in-the-middle attacks.\n\nThe vulnerability affects connections to OpenSearch when the `cert` parameter is not explicitly provided.\n\n### Patches\n\nData Prepper 2.12.2\n\n### Workarounds\n\nIf you cannot immediately upgrade to the fixed version, you can implement the following workaround.\n\n#### OpenSearch sink\n\nAdd the `cert` parameter to your OpenSearch sink configuration with the path to your cluster's CA certificate. The following example shows how to accomplish this.\n\n```\nsink:\n - opensearch:\n hosts: [\"https://your-opensearch-cluster:9200\"]\n cert: /path/to/your/ca-certificate.pem\n```\n\n#### OpenSearch source\n\nAdd the `cert` parameter to your OpenSearch sink configuration with the path to your cluster's CA certificate. The following example shows how to accomplish this.\n\n```\nsink:\n - opensearch:\n hosts: [\"https://your-opensearch-cluster:9200\"]\n connection:\n cert: /path/to/your/ca-certificate.pem\n```\n\n\n### References\n\nN/A",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.opensearch.dataprepper.plugins:opensearch"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.12.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/opensearch-project/data-prepper/security/advisories/GHSA-43ff-rr26-8hx4"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-62371"
}, {
"type" : "WEB",
"url" : "https://github.com/opensearch-project/data-prepper/commit/98fcf0d0ff9c18f1f7501e11dbed918814724b99"
}, {
"type" : "WEB",
"url" : "https://github.com/opensearch-project/data-prepper/commit/b0386a5af3fb71094ba6c86cd8b2afc783246599"
}, {
"type" : "WEB",
"url" : "https://github.com/opensearch-project/data-prepper/commit/db11ce8f27ebca018980b2bca863f7173de9ce56"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/opensearch-project/data-prepper"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-295" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-10-15T20:09:53Z",
"nvd_published_at" : "2025-10-15T18:15:39Z"
}
}