{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-40557","published":"2026-04-27T14:16:48.017000Z","last_modified":"2026-10-26T22:10:00.163000Z","status":"Analyzed","cvss":{"version":"3.1","score":4.8,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","primary":false},"auth":false,"cwes":["CWE-295"],"cpes":[{"criteria":"cpe:2.3:a:apache:storm_prometheus_reporter:*:*:*:*:*:*:*:*","part":"a","vendor":"apache","product":"storm_prometheus_reporter","version_start_including":"2.6.3","version_end_excluding":"2.8.7"}],"cpes_truncated":false,"vendors":["apache"],"products":["apache/storm_prometheus_reporter"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-82fm-wpc2-5pmp","ecosystem":"Maven","name":"org.apache.storm:storm-metrics-prometheus","purl":"pkg:maven/org.apache.storm/storm-metrics-prometheus","ranges":[{"introduced":"2.6.3","fixed":"2.8.7"}],"versions":["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"],"versions_truncated":false}],"severity":"medium","priority_score":44,"links":{"html_es":"/es/cve/CVE-2026-40557/","html_en":"/en/cve/CVE-2026-40557/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-40557","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-40557"},"untrusted":{"vendor_name":"Apache","product_name":"Storm Prometheus Reporter","desc_en":"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.","affected":[{"untrusted_vendor":"Apache Software Foundation","untrusted_product":"Apache Storm Prometheus Reporter","versions":[]}],"references":[{"url":"https://lists.apache.org/thread/f5bv68z1y5xstz22psjk05p3wn86knjq","tags":["Mailing List","Vendor Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2026/04/25/2","tags":["Mailing List","Third Party Advisory"]}]}}