You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by mi...@apache.org on 2026/04/14 12:11:51 UTC
(kafka) branch trunk updated: MINOR: Clarify components not considered for security issues (#22048)
This is an automated email from the ASF dual-hosted git repository.
mimaison pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push:
new f8aa61406a7 MINOR: Clarify components not considered for security issues (#22048)
f8aa61406a7 is described below
commit f8aa61406a75c82f4137b60eceaec2e1e18ecefa
Author: Mickael Maison <mi...@users.noreply.github.com>
AuthorDate: Tue Apr 14 14:11:44 2026 +0200
MINOR: Clarify components not considered for security issues (#22048)
The Apache Kafka project regularly receives, and rejects, security
reports for these components. Add notes explaining why the project don't
consider these as security issues. This will hopefully reduce the number
of duplicate reports we receive or at least give us something we can
point reporters to.
Reviewers: Luke Chen <sh...@gmail.com>, Josep Prat
<jo...@aiven.io>
---
.../connect/rest/basic/auth/extension/PropertyFileLoginModule.java | 2 +-
.../java/org/apache/kafka/connect/util/SafeObjectInputStream.java | 6 ++++++
trogdor/README.md | 3 +++
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/connect/basic-auth-extension/src/main/java/org/apache/kafka/connect/rest/basic/auth/extension/PropertyFileLoginModule.java b/connect/basic-auth-extension/src/main/java/org/apache/kafka/connect/rest/basic/auth/extension/PropertyFileLoginModule.java
index 65f11990346..563da270da1 100644
--- a/connect/basic-auth-extension/src/main/java/org/apache/kafka/connect/rest/basic/auth/extension/PropertyFileLoginModule.java
+++ b/connect/basic-auth-extension/src/main/java/org/apache/kafka/connect/rest/basic/auth/extension/PropertyFileLoginModule.java
@@ -45,7 +45,7 @@ import javax.security.auth.spi.LoginModule;
* The absolute path of the file needs to specified using the option <b>file</b>
*
* <p><b>NOTE: This implementation is NOT intended to be used in production since the credentials are stored in PLAINTEXT in the
- * properties file.</b>
+ * properties file. For this reason, Apache Kafka project does not consider this a security issue.</b>
*/
public class PropertyFileLoginModule implements LoginModule {
private static final Logger log = LoggerFactory.getLogger(PropertyFileLoginModule.class);
diff --git a/connect/runtime/src/main/java/org/apache/kafka/connect/util/SafeObjectInputStream.java b/connect/runtime/src/main/java/org/apache/kafka/connect/util/SafeObjectInputStream.java
index df2da552780..bd0279fb3d9 100644
--- a/connect/runtime/src/main/java/org/apache/kafka/connect/util/SafeObjectInputStream.java
+++ b/connect/runtime/src/main/java/org/apache/kafka/connect/util/SafeObjectInputStream.java
@@ -22,6 +22,12 @@ import java.io.ObjectInputStream;
import java.io.ObjectStreamClass;
import java.util.Set;
+
+/**
+ * Security note: While it seems it possible to build a deserialization gadget to obtain RCE via
+ * FileOffsetBackingStore, it requires having write permissions on the filesystem of the Connect worker.
+ * For that reason the Apache Kafka project does not consider this a security issue.
+ */
public class SafeObjectInputStream extends ObjectInputStream {
protected static final Set<String> DEFAULT_NO_DESERIALIZE_CLASS_NAMES = Set.of(
diff --git a/trogdor/README.md b/trogdor/README.md
index dda1cd687d4..cebe191d408 100644
--- a/trogdor/README.md
+++ b/trogdor/README.md
@@ -4,6 +4,9 @@ Trogdor is a test framework for Apache Kafka.
Trogdor can run benchmarks and other workloads. Trogdor can also inject faults in order to stress test the system.
+Trogdor should only be used in development environment and it is designed to allow users to inject commands.
+For this reason, Apache Kafka project does not consider this a security issue.
+
Quickstart
=========================================================
First, we want to [start a single-node Kafka cluster](https://github.com/apache/kafka/blob/trunk/README.md#running-a-kafka-broker)