Skip to main content

OpenSearch Data Prepper CVE-2025-62371

HIGH
Improper Certificate Validation (CWE-295)
2025-10-15 security-advisories@github.com
7.4
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain MITM position on Data Prepper↔OpenSearch path
  2. Delivery
    Intercept TLS handshake
  3. Exploit
    Present forged certificate
  4. Execution
    Trust-all strategy accepts cert
  5. Impact
    Decrypt and modify observability data in transit

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
Exploitation Conditions

Exploitation requires two concrete conditions: (1) the OpenSearch sink or source plugin is configured WITHOUT the 'cert' parameter (the vulnerable default, in which the plugin silently uses a trust-all SSL strategy), and (2) the attacker holds an active man-in-the-middle position on the network between Data Prepper and the target OpenSearch cluster's HTTPS endpoint. It is limited to Data Prepper versions prior to 2.12.2. It does NOT require authentication or user interaction, but the need to intercept the TLS connection (AC:H) means it is not exploitable remotely against a target the attacker cannot network-path-intercept. Explicitly setting the 'cert' parameter to the cluster CA certificate fully mitigates it even before patching.

Impact

This is a genuine but conditional TLS trust flaw (CWE-295), not an inflated high-CVSS-low-risk item, yet the real-world risk is moderate rather than urgent. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N, 7.4) correctly captures the profile: no authentication or user interaction is needed, but AC:H reflects that exploitation requires the attacker to already occupy a man-in-the-middle position on the network path between Data Prepper and its OpenSearch cluster - the hardest prerequisite. All threat-intelligence signals point away from active or imminent mass exploitation: EPSS is very low at 0.19% (8th percentile), the CVE is NOT in CISA KEV, and no public exploit code is identified. There is therefore no signal conflict to reconcile - vendor severity, EPSS, and KEV status are internally consistent (a real design defect that is not being weaponized at scale). The C:H/I:H rating is justified because a successful MITM lets the attacker both read and tamper with all observability data (logs, traces, metrics) in transit, which can include sensitive operational data; A:N is appropriate as availability is not directly impacted. Priority should be driven by whether the network path is trusted: environments where Data Prepper talks to OpenSearch over a controlled/internal segment face low practical risk, while cross-network or cloud-transit deployments should patch promptly.

Exploit ScenarioDerived

An attacker who can position themselves on the network path between a Data Prepper instance and its OpenSearch cluster (e.g., via ARP spoofing, a compromised router/proxy, or rogue node in a shared cloud segment) presents a forged TLS certificate. Because the sink/source plugins use a trust-all SSL strategy when no cert path is configured, Data Prepper accepts the forged certificate and the attacker silently intercepts and modifies observability data in transit. No public exploit code exists, and success depends on first achieving the MITM position (AC:H).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 30, 2026

Man-in-the-middle attackers who already sit on the network path between OpenSearch Data Prepper (versions prior to 2.12.2) and an OpenSearch cluster can silently intercept and modify data in transit, because the OpenSearch sink and source plugins fall back to a trust-all SSL strategy whenever the 'cert' parameter is omitted rather than relying on the JVM's normal certificate validation. The flaw (CWE-295) is unauthenticated (PR:N) and needs no user interaction, but exploitation requires two concrete conditions: a deployment that leaves 'cert' unset and an adversary capable of intercepting the TLS connection, which is why the assessed vector is AV:N/AC:H and why the real-world risk is moderate rather than urgent. No public exploit code has been identified at time of analysis, EPSS is low at 0.19% (8th percentile), and the issue is not listed in CISA KEV; a vendor patch is available in Data Prepper 2.12.2 and explicitly setting the cluster CA certificate fully mitigates the issue even before upgrading.

RemediationAI

Upgrade to the vendor-released patch, OpenSearch Data Prepper 2.12.2, which changes the trust-all behavior so it only applies when an explicit 'insecure' flag is set and otherwise leaves standard certificate validation enabled (fix commits 98fcf0d0ff9c18f1f7501e11dbed918814724b99, b0386a5af3fb71094ba6c86cd8b2afc783246599 and db11ce8f27ebca018980b2bca863f7173de9ce56, documented in GHSA-43ff-rr26-8hx4). If an immediate upgrade is not possible, apply the vendor workaround: explicitly supply the cluster's CA certificate so the vulnerable fallback is never taken - for the OpenSearch sink add 'cert: /path/to/your/ca-certificate.pem' at the top level of the sink configuration, and for the OpenSearch source add the same path under 'connection: cert: /path/to/your/ca-certificate.pem'. Setting that parameter restores proper server authentication and fully neutralizes the issue even on unpatched versions. Do not enable the new 'insecure' flag as a convenience workaround, since it deliberately re-introduces the same trust-all exposure. As defense in depth, treat the Data Prepper-to-OpenSearch path as sensitive and reduce the attacker's ability to reach a man-in-the-middle position (segment the pipeline network, avoid untrusted or shared transports), but note that these are compensating controls only and carry the trade-off of added network complexity without fixing the missing certificate validation, so the cert parameter or the 2.12.2 upgrade remains the definitive fix.

Affected Packages

maven org.opensearch.dataprepper.plugins:opensearch fix: 2.12.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in maven

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Data Prepper is a Java-based open source data collector for observability pipelines, and this issue lives in the 'opensearch' plugin module (Maven coordinate org.opensearch.dataprepper.plugins:opensearch) that implements both the OpenSearch sink and the OpenSearch source. The root cause is CWE-295, Improper Certificate Validation: in ConnectionConfiguration.java the connection builder selected its SSLContext with the ternary 'certPath != null ? getCAStrategy(certPath) : getTrustAllStrategy()', so any deployment that did not supply a certificate path automatically received a trust-all TrustManager instead of the JVM default trust store. The same pattern appeared in the source-side OpenSearchClientFactory, where a trust-all TrustManager array was always registered via tlsTrustManagersProvider on the Elasticsearch/OpenSearch REST clients and the AWS SDK v2 Apache HTTP client. Because these clients establish the HTTPS channel to the cluster, accepting any presented certificate removes the server authentication step of TLS and opens the door to interception and tampering by any party able to position itself on that path. The fix commits (98fcf0d, b0386a5, db11ce8) invert the logic: trust-all is now only used when an explicit 'insecure' flag is set, and when neither a cert path nor insecure is configured the code returns an empty TrustManager array (leaving the default, validating behavior in place), while Azure/OpenSearch URL construction was also corrected to use toHostString() so explicit ports survive in the AWS SDK v2 transport. The trust-everything behavior was therefore a secure-by-default failure rather than an exploitable memory-safety or injection class bug, and it disappears entirely once a cert path is present.

Know when Opensearch Data Prepper gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 7.4 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 7.4 HIGH

AC:H because a network MITM position is required; PR:N/UI:N as no auth or interaction is needed; C:H/I:H since intercepted traffic can be read and modified; A:N as availability is unaffected.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

DescriptionCVE.org

OpenSearch Data Prepper as an open source data collector for observability data. In versions prior to 2.12.2, the OpenSearch sink and source plugins in Data Prepper trust all SSL certificates by default when no certificate path is provided. Prior 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 bypasses SSL certificate validation, potentially allowing attackers to intercept and modify data in transit through man-in-the-middle attacks. The vulnerability affects connections to OpenSearch when the cert parameter is not explicitly provided. This issue has been patched in version 2.12.2. As a workaround, users can add the cert parameter to their OpenSearch sink or source configuration with the path to the cluster's CA certificate.

Executive ViewAI

Why It Matters

OpenSearch Data Prepper deployments prior to version 2.12.2 can expose data moving to and from OpenSearch clusters to interception or alteration when configuration safeguards are omitted and an adversary is positioned on the network path. This configuration-dependent risk affects data pipeline integrity rather than representing a broadly exploited vulnerability, and no public exploit identified at time of analysis. Leadership should care because affected pipelines may carry sensitive business data, and remediation is straightforward through vendor patching or proper certificate configuration.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Low
niche observability data-collector component of the OpenSearch ecosystem
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Medium

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +37
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)CVE.org

cpe:2.3:a:amazon:opensearch_data_prepper:*:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy