GHSA-82fm-wpc2-5pmp

Suggest an improvement
Source
https://github.com/advisories/GHSA-82fm-wpc2-5pmp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-82fm-wpc2-5pmp/GHSA-82fm-wpc2-5pmp.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-82fm-wpc2-5pmp
Aliases
  • CVE-2026-40557
Published
2026-04-27T15:30:52Z
Modified
2026-05-05T22:16:53.778499Z
Severity
  • 4.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
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

Versions Affected: from 2.6.3 to 2.8.6

Description: 

In production deployments where an administrator enables storm.daemon.metrics.reporter.plugin.prometheus.skiptlsvalidation (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 INSECURETRUSTMANAGER that accepts all SSL certificates without validation, with empty checkClientTrusted and checkServerTrusted methods. Most critically, when the storm.daemon.metrics.reporter.plugin.prometheus.skiptlsvalidation configuration option is enabled (default = disabled) for HTTPS Prometheus PushGateway connections, the INSECURECONNECTIONFACTORY 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() → INSECURECONNECTIONFACTORY → 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.skiptlsvalidation: true setting from their storm.yaml configuration and instead configure a proper truststore containing the PushGateway's certificate.

Database specific
{
    "github_reviewed": true,
    "github_reviewed_at": "2026-05-05T22:05:03Z",
    "nvd_published_at": "2026-04-27T14:16:48Z",
    "severity": "MODERATE",
    "cwe_ids": [
        "CWE-295"
    ]
}
References

Affected packages

Maven / org.apache.storm:storm-metrics-prometheus

Package

Name
org.apache.storm:storm-metrics-prometheus
View open source insights on deps.dev
Purl
pkg:maven/org.apache.storm/storm-metrics-prometheus

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.3
Fixed
2.8.7

Affected versions

2.*
2.6.3
2.6.4
2.7.0
2.7.1
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.8.5
2.8.6

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-82fm-wpc2-5pmp/GHSA-82fm-wpc2-5pmp.json"