Skip to content
Heist/ feed
Back to feed
High

Apache Kafka Clients: Kafka Producer Message Corruption and Misrouting via Buffer Pool Race Condition

Type: advisorySources: OSV

A race condition in the Apache Kafka Java producer client’s buffer pool management can cause messages to be silently delivered to incorrect topics. When a produce batch expires due to delivery.timeout.ms while a network request containing that batch is still in flight, the batch’s ByteBuffer is prematurely deallocated and returned to the buffer pool. If a subsequent producer batch—potentially destined for a different topic—reuses this freed buffer before the original network request completes, the buffer contents may become corrupted. This can result in messages being delivered to unintended topics without any error being reported to the producer. Data Confidentiality: Messages intended for one topic may be delivered to a different topic, potentially exposing sensitive data to consumers who have access to the destination topic but not the intended source topic. Data Integrity: Consumers on the receiving topic may encounter unexpected or incompatible messages, leading to deserialization failures, processing errors, and corrupted downstream data. This issue affects Apache Kafka versions ≤ 3.9.1, ≤ 4.0.1, and ≤ 4.1.1. Kafka users are advised to upgrade to 3.9.2, 4.0.2, 4.1.2, 4.2.0, or later to address this vulnerability.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-35554
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 05:21 UTC · Revision 1

Source evidence

Apache Kafka Clients: Kafka Producer Message Corruption and Misrouting via Buffer Pool Race Condition

core-osv · Original source

Published 7 Apr 2026, 13:07 UTC

A race condition in the Apache Kafka Java producer client’s buffer pool management can cause messages to be silently delivered to incorrect topics. When a produce batch expires due to delivery.timeout.ms while a network request containing that batch is still in flight, the batch’s ByteBuffer is prematurely deallocated and returned to the buffer pool. If a subsequent producer batch—potentially destined for a different topic—reuses this freed buffer before the original network request completes, the buffer contents may become corrupted. This can result in messages being delivered to unintended topics without any error being reported to the producer. Data Confidentiality: Messages intended for one topic may be delivered to a different topic, potentially exposing sensitive data to consumers who have access to the destination topic but not the intended source topic. Data Integrity: Consumers on the receiving topic may encounter unexpected or incompatible messages, leading to deserialization failures, processing errors, and corrupted downstream data. This issue affects Apache Kafka versions ≤ 3.9.1, ≤ 4.0.1, and ≤ 4.1.1. Kafka users are advised to upgrade to 3.9.2, 4.0.2, 4.1.2, 4.2.0, or later to address this vulnerability.

osv:CVE-2026-35554
Complete source record
{
  "id": "9d17ff3fe17f79a51d5552e01bde20602cfa195c58ae39bfaa36230d6f1d8389",
  "url": "https://osv.dev/vulnerability/CVE-2026-35554",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Apache Kafka Clients: Kafka Producer Message Corruption and Misrouting via Buffer Pool Race Condition",
    "summary": "A race condition in the Apache Kafka Java producer client’s buffer pool management can cause messages to be silently delivered to incorrect topics. When a produce batch expires due to delivery.timeout.ms while a network request containing that batch is still in flight, the batch’s ByteBuffer is prematurely deallocated and returned to the buffer pool. If a subsequent producer batch—potentially destined for a different topic—reuses this freed buffer before the original network request completes, the buffer contents may become corrupted. This can result in messages being delivered to unintended topics without any error being reported to the producer. Data Confidentiality: Messages intended for one topic may be delivered to a different topic, potentially exposing sensitive data to consumers who have access to the destination topic but not the intended source topic. Data Integrity: Consumers on the receiving topic may encounter unexpected or incompatible messages, leading to deserialization failures, processing errors, and corrupted downstream data. This issue affects Apache Kafka versions ≤ 3.9.1, ≤ 4.0.1, and ≤ 4.1.1. Kafka users are advised to upgrade to 3.9.2, 4.0.2, 4.1.2, 4.2.0, or later to address this vulnerability.",
    "evidence": "osv:CVE-2026-35554",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-35554",
      "aliases": [
        "CVE-2026-35554",
        "GHSA-5qcv-4rpc-jp93"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/apache/kafka",
              "type": "GIT",
              "events": [
                {
                  "introduced": "ebb1d6e21cc9213071ee1c6a15ec3411fc215b81"
                },
                {
                  "fixed": "5e9866f43ab8e7e41ef39e5584ac50019381328d"
                },
                {
                  "introduced": "985bc99521dd22bbf620591b8db8613c54f596b2"
                },
                {
                  "fixed": "5d0fe56677f97d9525843963f1ffe329d2b69433"
                },
                {
                  "introduced": "13f70256db3c994c590e5d262a7cc50b9e973204"
                },
                {
                  "fixed": "c82fd9b934b4c1e6fa799e3f1dcc8f08d997740c"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:apache:kafka:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.8.0"
                      },
                      {
                        "fixed": "3.9.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:apache:kafka:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.0.0"
                      },
                      {
                        "fixed": "4.0.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:apache:kafka:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.1.0"
                      },
                      {
                        "fixed": "4.1.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.1.1-rc2",
            "4.1.1",
            "4.1.1-rc1",
            "4.1.0-rc3",
            "4.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-35554.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:42.875379916Z",
      "provider": "osv",
      "references": [
        "https://repo.maven.apache.org/maven2",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35554.json",
        "https://lists.apache.org/thread/f07x7j8ovyqhjd1to25jsnqbm6wj01d6",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-35554",
        "https://issues.apache.org/jira/browse/KAFKA-19012"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-362",
          "CWE-416"
        ],
        "cna_assigner": "apache",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.8.0"
                  },
                  {
                    "last_affected": "3.9.1"
                  },
                  {
                    "introduced": "4.0.0"
                  },
                  {
                    "last_affected": "4.0.1"
                  },
                  {
                    "introduced": "4.1.0"
                  },
                  {
                    "last_affected": "4.1.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35554.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-35554",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 510670,
  "published_at": "2026-04-07T13:07:08.679+00:00"
}