Vulnerabilities in pkg:maven/com.typesafe.akka/akka-stream-kafka_2.12

PACKAGE
Advisory Identifier: GHSA-55vq-xpjf-r2xc
Advisory Summary

CVE-2023-29471 is a MODERATE (CVSS 5.5) lightbend alpakka kafka logs credentials vulnerability (CWE-312: Cleartext Storage of Sensitive Information) affecting Akka stream kafka 3 libraries in the Maven ecosystem. The issue involves lightbend alpakka kafka logs credentials on debug level. Remediation is available by upgrading affected packages to version 4.0.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/com.typesafe.akka/akka-stream-kafka_2.12

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/com.typesafe.akka/akka-stream-kafka_2.12. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-55vq-xpjf-r2xc CVE-2023-29471 MODERATE Lightbend Alpakka Kafka logs credentials on debug level

CVE-2023-29471 at a Glance

CVE Identifier CVE-2023-29471
GHSA Identifier GHSA-55vq-xpjf-r2xc
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-312: Cleartext Storage of Sensitive Information
Affected Product Akka stream kafka 3
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2023-29471

To remediate this vulnerability, upgrade all affected Akka stream kafka 3 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

com.typesafe.akka:akka-stream-kafka_3 fixed: 4.0.2
<dependency>
    <groupId>com.typesafe.akka</groupId>
    <artifactId>akka-stream-kafka_3</artifactId>
    <version>4.0.2</version>
</dependency>
com.typesafe.akka:akka-stream-kafka_2.13 fixed: 4.0.2
<dependency>
    <groupId>com.typesafe.akka</groupId>
    <artifactId>akka-stream-kafka_2.13</artifactId>
    <version>4.0.2</version>
</dependency>
com.typesafe.akka:akka-stream-kafka_2.12 fixed: 4.0.2
<dependency>
    <groupId>com.typesafe.akka</groupId>
    <artifactId>akka-stream-kafka_2.12</artifactId>
    <version>4.0.2</version>
</dependency>
com.typesafe.akka:akka-stream-kafka_2.11 fixed: Latest secure release
<dependency>
    <groupId>com.typesafe.akka</groupId>
    <artifactId>akka-stream-kafka_2.11</artifactId>
    <version>Latest secure release</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=com.typesafe.akka

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-29471, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.typesafe.akka

Analyze the terminal output to locate any version of Akka stream kafka 3 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.2), your application is affected.

Note: The mvn dependency:tree -Dincludes=com.typesafe.akka command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-312: Cleartext Storage of Sensitive Information, where the product stores sensitive information in cleartext within a resource that might be accessible to another control sphere. In Akka stream kafka 3, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Lightbend Alpakka Kafka before 4.0.2 logs its configuration as debug information, and thus log files may contain credentials (if plain cleartext login is configured). This occurs in akka.kafka.internal.KafkaConsumerActor.

CVE-2023-29471 Affected Akka stream kafka 3 Versions

4 component(s)
Fixed Versions:
4.0.2
Product / Package Ecosystem Affected Versions Fixed Version
com.typesafe.akka:akka-stream-kafka_3
Maven
< 4.0.2
4.0.2
com.typesafe.akka:akka-stream-kafka_2.13
Maven
< 4.0.2
4.0.2
com.typesafe.akka:akka-stream-kafka_2.12
Maven
< 4.0.2
4.0.2
com.typesafe.akka:akka-stream-kafka_2.11
Maven

References

Frequently Asked Questions

What is CVE-2023-29471?
CVE-2023-29471 is a security vulnerability in Akka stream kafka 3 involving Lightbend Alpakka Kafka logs credentials on debug level under CWE-312: Cleartext Storage of Sensitive Information.
Which Akka stream kafka 3 versions are affected?
Affected versions include releases prior to 4.0.2 across affected packages: com.typesafe.akka:akka-stream-kafka_3, com.typesafe.akka:akka-stream-kafka_2.13, com.typesafe.akka:akka-stream-kafka_2.12, com.typesafe.akka:akka-stream-kafka_2.11.
What version fixes CVE-2023-29471?
Upgrading to 4.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is akka-stream-kafka_3 affected?
Yes, com.typesafe.akka:akka-stream-kafka_3 is affected in releases prior to 4.0.2. Upgrade your dependency to 4.0.2 or later.
Is akka-stream-kafka_2.13 affected?
Yes, com.typesafe.akka:akka-stream-kafka_2.13 is affected in releases prior to 4.0.2. Upgrade your dependency to 4.0.2 or later.
What is the CVSS score of CVE-2023-29471?
CVE-2023-29471 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2023-29471?
CVE-2023-29471 is classified under CWE-312: Cleartext Storage of Sensitive Information (The product stores sensitive information in cleartext within a resource that might be accessible to another control sphere.).
How can I check Maven dependencies for CVE-2023-29471?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.typesafe.akka'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-55vq-xpjf-r2xc",
  "modified" : "2025-09-30T18:53:16Z",
  "published" : "2023-04-27T21:30:26Z",
  "aliases" : [ "CVE-2023-29471" ],
  "summary" : "Lightbend Alpakka Kafka logs credentials on debug level",
  "details" : "Lightbend Alpakka Kafka before 4.0.2 logs its configuration as debug information, and thus log files may contain credentials (if plain cleartext login is configured). This occurs in akka.kafka.internal.KafkaConsumerActor.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.typesafe.akka:akka-stream-kafka_3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.typesafe.akka:akka-stream-kafka_2.13"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.typesafe.akka:akka-stream-kafka_2.12"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.typesafe.akka:akka-stream-kafka_2.11"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 4.0.2"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-29471"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/akka/alpakka-kafka/issues/1592"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/akka/alpakka-kafka/pull/1614/commits/4011b704e93b22f6fd956aac516c7159d384644c"
  }, {
    "type" : "WEB",
    "url" : "https://akka.io/security/alpakka-kafka-cve-2023-29471.html"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/akka/alpakka-kafka"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-312", "CWE-532" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-04-27T23:53:28Z",
    "nvd_published_at" : "2023-04-27T21:15:10Z"
  }
}