WaratekVRT Sign in

CVE-2025-27818 Apache Kafka

Affected softwareApache Kafka
Severity8.8 High CVSS 3.1
Fixed in3.9.1
WeaknessDeserialization of untrusted data (CWE-502)
Published10 Jun 2025
Updated17 Jun 2026

Description

A possible security vulnerability has been identified in Apache Kafka. This requires access to a alterConfig to the cluster resource, or Kafka Connect worker, and the ability to create/modify connectors on it with an arbitrary Kafka client SASL JAAS config and a SASL-based security protocol, which has been possible on Kafka clusters since Apache Kafka 2.0.0 (Kafka Connect 2.3.0). When configuring the broker via config file or AlterConfig command, or connector via the Kafka Kafka Connect REST API, an authenticated operator can set the sasl.jaas.config property for any of the connector's Kafka clients to "com.sun.security.auth.module.LdapLoginModule", which can be done via the producer.override.sasl.jaas.config, consumer.override.sasl.jaas.config, or admin.override.sasl.jaas.config properties. This will allow the server to connect to the attacker's LDAP server and deserialize the LDAP response, which the attacker can use to execute java deserialization gadget chains on the Kafka connect server. Attacker can cause unrestricted deserialization of untrusted data (or) RCE vulnerability when there are gadgets in the classpath. Since Apache Kafka 3.0.0, users are allowed to specify these properties in connector configurations for Kafka Connect clusters running with out-of-the-box configurations. Before Apache Kafka 3.0.0, users may not specify these properties unless the Kafka Connect cluster has been reconfigured with a connector client override policy that permits them. Since Apache Kafka 3.9.1/4.0.0, we have added a system property ("-Dorg.apache.kafka.disallowed.login.modules") to disable the problematic login modules usage in SASL JAAS configuration. Also by default "com.sun.security.auth.module.JndiLoginModule,com.sun.security.auth.module.LdapLoginModule" are disabled in Apache Kafka Connect 3.9.1/4.0.0. We advise the Kafka users to validate connector configurations and only allow trusted LDAP configurations. Also examine connector dependencies for vulnerable versions and either upgrade their connectors, upgrading that specific dependency, or removing the connectors as options for remediation. Finally, in addition to leveraging the "org.apache.kafka.disallowed.login.modules" system property, Kafka Connect users can also implement their own connector client config override policy, which can be used to control which Kafka client properties can be overridden directly in a connector config and which cannot.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published a year ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC none indexed
  • EPSS 1.1% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR deserialization security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-502: Deserialization of Untrusted Data.

How to mitigate CVE-2025-27818

Upgrade Apache Kafka to 3.9.1 or later. Until you can, Waratek RASP blocks exploitation with its deserialization and process rules. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

Affected software and releases

Oracle advisories

AdvisoryTypeQuarterProducts Oracle names in its risk matrix
Oracle Critical Patch Update April 2026 ↗ CPU 2026-Q2 Oracle Financial Services Applications / Base (Apache Kafka) (14.5.0.0.0-14.8.0.0.0)
Oracle Financial Services Applications / Common (Apache Kafka) (14.5.0.0.0-14.8.0.0.0)
Oracle Financial Services Applications / Configuration (Apache Kafka) (14.6.0.0.0-14.8.0.0.0)
Oracle Financial Services Applications / Core (Apache Kafka) (14.5.0.0.0-14.8.0.0.0)
Oracle Financial Services Applications / Dashboard (Apache Kafka) (14.5.0.0.0-14.8.0.0.0)
Oracle Financial Services Applications / Security (Apache Kafka) (14.5.0.0.0-14.8.0.0.0)
Oracle Siebel CRM / Event Publish and Subscribe (Apache Kafka) (17.0-26.2)
Oracle Critical Patch Update January 2026 ↗ CPU 2026-Q1 Oracle Financial Services Applications / Accessibility (Apache Kafka) (14.5.0.15.0, 14.6.0.11.0, 14.7.0.9.0, 14.8.0.1.0, 14.8.1.0.0)
Oracle Financial Services Applications / Common Core (Apache Kafka) (14.5.0.15.0, 14.6.0.11.0, 14.7.0.9.0, 14.8.0.1.0, 14.8.1.0.0)
Oracle Critical Patch Update October 2025 ↗ CPU 2025-Q4 Oracle Communications Applications / Core (Apache Kafka) (6.1.0-6.1.1)
Oracle Communications Applications / Notification Gateway (Apache Kafka) (12.0.3.0.0-12.0.6.0.0, 15.0.0.0.0-15.0.1.0.0, 15.1.0.0.0)
Oracle Communications Applications / Platform (Apache Kafka) (12.0.0.4.0-15.0.1.0.0)
Oracle Financial Services Applications / Reports (Apache Kafka) (14.5.0.0.0-14.8.0.0.0)
Oracle Fusion Middleware / Adapters (Apache Kafka) (14.1.2.0.0)
Oracle Critical Patch Update July 2025 ↗ CPU 2025-Q3 Oracle Financial Services Applications / Platform (Apache Kafka) (8.0.7.8, 8.0.8.6, 8.1.1.4, 8.1.2.5)
Oracle Financial Services Applications / Platform (Apache Kafka) (8.0.8)
Oracle Financial Services Applications / Platform (Apache Kafka) (8.0.8.1, 8.1.2.8, 8.1.2.9)
Oracle Fusion Middleware / Third Party (Apache Kafka) (12.2.1.4.0, 14.1.2.0.0)

Oracle components and versions

FamilyComponentVersions, as Oracle lists themRead as
Oracle Communications Applications Core (Apache Kafka) 6.1.0-6.1.1
Oracle Communications Applications Notification Gateway (Apache Kafka) 12.0.3.0.0-12.0.6.0.0, 15.0.0.0.0-15.0.1.0.0, 15.1.0.0.0 15.1.0.0.0
Oracle Communications Applications Platform (Apache Kafka) 12.0.0.4.0-15.0.1.0.0
Oracle Financial Services Applications Accessibility (Apache Kafka) 14.5.0.15.0, 14.6.0.11.0, 14.7.0.9.0, 14.8.0.1.0, 14.8.1.0.0 14.5.0.15.0 · 14.6.0.11.0 · 14.7.0.9.0 · 14.8.0.1.0 · 14.8.1.0.0
Oracle Financial Services Applications Base (Apache Kafka) 14.5.0.0.0-14.8.0.0.0
Oracle Financial Services Applications Common (Apache Kafka) 14.5.0.0.0-14.8.0.0.0
Oracle Financial Services Applications Common Core (Apache Kafka) 14.5.0.15.0, 14.6.0.11.0, 14.7.0.9.0, 14.8.0.1.0, 14.8.1.0.0 14.5.0.15.0 · 14.6.0.11.0 · 14.7.0.9.0 · 14.8.0.1.0 · 14.8.1.0.0
Oracle Financial Services Applications Configuration (Apache Kafka) 14.6.0.0.0-14.8.0.0.0
Oracle Financial Services Applications Core (Apache Kafka) 14.5.0.0.0-14.8.0.0.0
Oracle Financial Services Applications Dashboard (Apache Kafka) 14.5.0.0.0-14.8.0.0.0
Oracle Financial Services Applications Platform (Apache Kafka) 8.0.7.8, 8.0.8.6, 8.1.1.4, 8.1.2.5 8.0.7.8 · 8.0.8 · 8.0.8.1 · 8.0.8.6 · 8.1.1.4 · 8.1.2.5 · 8.1.2.8 · 8.1.2.9
Oracle Financial Services Applications Reports (Apache Kafka) 14.5.0.0.0-14.8.0.0.0
Oracle Financial Services Applications Security (Apache Kafka) 14.5.0.0.0-14.8.0.0.0
Oracle Fusion Middleware Adapters (Apache Kafka) 14.1.2.0.0 14.1.2.0.0
Oracle Fusion Middleware Third Party (Apache Kafka) 12.2.1.4.0, 14.1.2.0.0 12.2.1.4.0 · 14.1.2.0.0
Oracle Siebel CRM Event Publish and Subscribe (Apache Kafka) 17.0-26.2

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.kafka:kafka_2.11 2.3.0 none 2.4.1
org.apache.kafka:kafka_2.12 2.3.0 3.9.1 unbounded
org.apache.kafka:kafka_2.13 2.4.0 3.9.1 unbounded

Products and versions

4 products, 4 version entries
SourceVendorProductSchemeAffected versions
nvd apache kafka generic ≥ 2.3.0 and < 3.9.1
osv org.apache.kafka kafka_2.11 generic ≥ 2.3.0 and ≤ 2.4.1
osv org.apache.kafka kafka_2.12 generic ≥ 2.3.0 and < 3.9.1
osv org.apache.kafka kafka_2.13 generic ≥ 2.4.0 and < 3.9.1

References

URLTags
https://github.com/apache/kafka PACKAGE
https://kafka.apache.org/cve-list WEB
http://www.openwall.com/lists/oss-security/2025/06/09/2 WEB

Timeline

Published2025-06-10By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.