S4E just found a high top 10 tcp port service scan
high·Product Based Web Vulnerabilities·Updated Feb 23, 2024

Apache Druid Kafka Connect RCE Scanner

Apache Druid Kafka Connect RCE Vulnerability Detection

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, ipv4, subdomain
CostFree
0
Times Used
by S4E users
0
Assets Scanned
domains & IPs
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2023-25194
8.8
CVSShigh
Exploitable remotely over the internet · low-privilege account sufficient.

A possible security vulnerability has been identified in Apache Kafka Connect API. This requires access to a 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 Connect clusters since Apache Kafka Connect 2.3.0. When configuring the connector via the 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.JndiLoginModule", 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.4.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" is disabled in Apache Kafka Connect 3.4.0. We advise the Kafka Connect users to validate connector configurations and only allow trusted JNDI 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.

Attack Vector
Network
Privileges Req.
Low
User Interaction
None
Affected
Apache Kafka Connect APIby Apache Software Foundation
AFFECTED< 3.4.0SAFE ✓≥ 3.4.0
Updated Aug 19, 2026View on NVD →
Detail

Vulnerability Overview

CVE-2023-25194 identifies a significant security flaw in Apache Druid's Kafka Connect, where unsafe deserialization of user-supplied data allows remote authenticated attackers to execute arbitrary code on the host system. This vulnerability stems from the insecure handling of object deserialization during the connector's configuration process through the Kafka Connect REST API.

Vulnerability Details

The vulnerability arises within the process of configuring the connector through the Kafka Connect REST API, where unsafe deserialization occurs. Attackers can craft malicious payloads that, when deserialized, execute arbitrary code on the server hosting the Apache Druid instance. This issue requires that the attacker has authenticated access to the Kafka Connect REST API.

Possible Effects

Exploiting this vulnerability can lead to:

  • Unauthorized code execution on the server.
  • Potential compromise of the server hosting the Apache Druid instance.
  • Unauthorized access to data processed or managed by Apache Druid and Kafka Connect.

Why Choose S4E

S4E offers comprehensive vulnerability scanning solutions tailored to modern technological landscapes, including complex ecosystems like Apache Druid and Kafka. Subscribing to our platform provides:

  • Advanced scanning capabilities to detect and mitigate vulnerabilities like CVE-2023-25194.
  • Detailed reports and actionable insights for effective vulnerability management.
  • Continuous security monitoring to safeguard your infrastructure against emerging threats.

References

Solution Advice
  • Upgrade to the Latest Version: Ensure Apache Druid and Kafka Connect are updated to the latest versions where the vulnerability has been fixed.
  • Restrict API Access: Limit access to the Kafka Connect REST API to trusted users only.
  • Monitoring and Logging: Enhance monitoring of Apache Druid instances and Kafka Connect REST API usage to detect unusual activities.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.