Vulnerabilities in pkg:maven/org.apache.storm/storm-metrics-prometheus

PACKAGE
Advisory Identifier: GHSA-82fm-wpc2-5pmp
Advisory Summary

CVE-2026-40557 is a MODERATE (CVSS 4.8) improper certificate validation vulnerability (CWE-295: Improper Certificate Validation) affecting Storm metrics prometheus libraries in the Maven ecosystem. The issue involves apache storm prometheus reporter vulnerable to improper certificate validation via global ssl context downgrade. Remediation is available by upgrading affected packages to version 2.8.7.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.storm/storm-metrics-prometheus

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.storm/storm-metrics-prometheus. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-82fm-wpc2-5pmp CVE-2026-40557 MODERATE Apache Storm Prometheus Reporter vulnerable to Improper Certificate Validation via Global SSL Context Downgrade

CVE-2026-40557 at a Glance

CVE Identifier CVE-2026-40557
GHSA Identifier GHSA-82fm-wpc2-5pmp
Severity MODERATE
CVSS v3.1 Base Score 4.8
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Storm metrics prometheus
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 4.8

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:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-40557

To remediate this vulnerability, upgrade all affected Storm metrics prometheus dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.storm:storm-metrics-prometheus fixed: 2.8.7
<dependency>
    <groupId>org.apache.storm</groupId>
    <artifactId>storm-metrics-prometheus</artifactId>
    <version>2.8.7</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.storm

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-40557, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.storm

Analyze the terminal output to locate any version of Storm metrics prometheus in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.8.7), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.storm 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 Storm metrics prometheus, 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

Improper Certificate Validation via Global SSL Context Downgrade in Apache Storm Prometheus Reporter Versions Affected: from 2.6.3 to 2.8.6 Description:  In production deployments where an administrator enables storm.daemon.metrics.reporter.plugin.prometheus.skip_tls_validation (by default it is disabled) intending to affect only the Prometheus reporter, the undocumented global side effect creates an attack surface across every TLS-protected communication channel in the Storm daemon. The PrometheusPreparableReporter class implements an INSECURE_TRUST_MANAGER that accepts all SSL certificates without validation, with empty checkClientTrusted and checkServerTrusted methods. Most critically, when the storm.daemon.metrics.reporter.plugin.prometheus.skip_tls_validation configuration option is enabled (default = disabled) for HTTPS Prometheus PushGateway connections, the INSECURE_CONNECTION_FACTORY calls SSLContext.setDefault(sslContext), which globally replaces the JVM's default SSL context rather than applying the insecure context only to the Prometheus connection. This payload flows through storm.yaml configuration → PrometheusPreparableReporter.prepare() → INSECURE_CONNECTION_FACTORY → SSLContext.setDefault(), resulting in a JVM-wide TLS security downgrade. All subsequent HTTPS connections in the process - including ZooKeeper, Thrift, Netty, and UI connections - silently trust all certificates, including self-signed, expired, and attacker-generated ones, enabling man-in-the-middle interception of cluster state, topology submissions, tuple data, and administrative credentials. Mitigation: 2.x users should upgrade to 2.8.7 if the Prometheus Metrics Reporter is used. Prometheus Metrics Reporter Users who cannot upgrade immediately should remove the storm.daemon.metrics.reporter.plugin.prometheus.skip_tls_validation: true setting from their storm.yaml configuration and instead configure a proper truststore containing the PushGateway's certificate.

CVE-2026-40557 Affected Storm metrics prometheus Versions

1 component(s)
Fixed Versions:
2.8.7
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.storm:storm-metrics-prometheus
Maven
≥ 2.6.3
< 2.8.7
2.8.7

References

Frequently Asked Questions

What is CVE-2026-40557?
CVE-2026-40557 is a security vulnerability in Storm metrics prometheus involving Apache Storm Prometheus Reporter vulnerable to Improper Certificate Validation via Global SSL Context Downgrade under CWE-295: Improper Certificate Validation.
Which Storm metrics prometheus versions are affected?
Affected versions include releases prior to 2.8.7 across affected packages: org.apache.storm:storm-metrics-prometheus.
What version fixes CVE-2026-40557?
Upgrading to 2.8.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is storm-metrics-prometheus affected?
Yes, org.apache.storm:storm-metrics-prometheus is affected in releases prior to 2.8.7. Upgrade your dependency to 2.8.7 or later.
What is the CVSS score of CVE-2026-40557?
CVE-2026-40557 has a CVSS v3.1 base score of 4.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2026-40557?
CVE-2026-40557 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check Maven dependencies for CVE-2026-40557?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.storm'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-82fm-wpc2-5pmp",
  "modified" : "2026-05-05T22:05:03Z",
  "published" : "2026-04-27T15:30:52Z",
  "aliases" : [ "CVE-2026-40557" ],
  "summary" : "Apache Storm Prometheus Reporter vulnerable to Improper Certificate Validation via Global SSL Context Downgrade",
  "details" : "Improper Certificate Validation via Global SSL Context Downgrade in Apache Storm Prometheus Reporter\n\n\nVersions Affected: from 2.6.3 to 2.8.6\n\n\nDescription: \n\nIn production deployments where an administrator enables storm.daemon.metrics.reporter.plugin.prometheus.skip_tls_validation (by default it is disabled) intending to affect only the Prometheus reporter, the undocumented global side effect creates an attack surface across every TLS-protected communication channel in the Storm daemon.\n\n\nThe PrometheusPreparableReporter class implements an INSECURE_TRUST_MANAGER that accepts all SSL certificates without validation, with empty checkClientTrusted and checkServerTrusted methods. Most critically, when the storm.daemon.metrics.reporter.plugin.prometheus.skip_tls_validation configuration option is enabled (default = disabled) for HTTPS Prometheus PushGateway connections, the INSECURE_CONNECTION_FACTORY calls SSLContext.setDefault(sslContext), which globally replaces the JVM's default SSL context rather than applying the insecure context only to the Prometheus connection. This payload flows through storm.yaml configuration → PrometheusPreparableReporter.prepare() → INSECURE_CONNECTION_FACTORY → SSLContext.setDefault(), resulting in a JVM-wide TLS security downgrade. All subsequent HTTPS connections in the process - including ZooKeeper, Thrift, Netty, and UI connections - silently trust all certificates, including self-signed, expired, and attacker-generated ones, enabling man-in-the-middle interception of cluster state, topology submissions, tuple data, and administrative credentials.\n\n\n\n\nMitigation: 2.x users should upgrade to 2.8.7 if the Prometheus Metrics Reporter is used. Prometheus Metrics Reporter Users who cannot upgrade immediately should remove the storm.daemon.metrics.reporter.plugin.prometheus.skip_tls_validation: true setting from their storm.yaml configuration and instead configure a proper truststore containing the PushGateway's certificate.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.storm:storm-metrics-prometheus"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.6.3"
      }, {
        "fixed" : "2.8.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-40557"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/storm"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/f5bv68z1y5xstz22psjk05p3wn86knjq"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2026/04/25/2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-05T22:05:03Z",
    "nvd_published_at" : "2026-04-27T14:16:48Z"
  }
}