{"id":"CVE-2026-114349","aliases":["UBUNTU-CVE-2026-114349"],"summary":"Apache Kafka: Denial of service via unbounded memory allocation when decoding compressed record batches","published_at":"2026-10-28T16:46:54.92Z","modified_at":"2026-11-18T17:36:13Z","products":[{"slug":"kafka","name":"Apache Kafka","category":"web-data"}],"rating":{"severity":"medium","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","attack_path":"internet_authenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.005489999894052744,"percentile":0.46636998653411865,"date":"2026-11-18T00:00:00Z"},"priority":7.5,"details":"When a broker decodes a compressed record batch, the per-record decoder reads a declared body size from the decompressed stream and allocates a buffer of that size before validating it against the bytes available or any configured limit. The size is attacker-controlled, and the batch CRC does not constrain it, so a small (around 90-byte), CRC-valid compressed produce request can declare a body size of up to about 2 GiB and force the broker to attempt that allocation, raising OutOfMemoryError. The record size limit (max.message.bytes), the request size limit, and client/broker quotas bound only the compressed wire size, not the declared decompressed size.\n\n\nImpact:\n\nAn authenticated principal with Write on a topic can crash broker request-handler threads (reached when a batch's codec differs from the topic's compression.type and records are re-encoded) and any consumer that fetches the record, denying service. On brokers started with -XX:+ExitOnOutOfMemoryError, a common hardening, a single crafted request terminates the broker JVM. More seriously, a crafted record  is accepted at ingest and written to disk; when the log-cleaner later reads it on a compacted topic, the OutOfMemoryError (an Error, not an Exception) terminates the cleaner thread, which is not restarted. With the default of a single cleaner thread, log compaction then stops for the entire broker, including the internal __consumer_offsets and __transaction_state topics, and the condition persists across restarts until the offending record is removed. The impact is availability only; no data is disclosed or altered.\n\n\nMitigation:\n\nUpgrade to Apache Kafka 4.2.2, 4.3.2, or 4.4.0, and set max.decompressed.message.bytes (at the broker and/or topic level) to a bounded value appropriate for your workload. Upgrading alone is not sufficient: for backward compatibility this configuration defaults to an effectively unlimited value (about 2 GiB), so a broker remains exposed until the limit is set. Choose a value at or slightly above the largest legitimate decompressed record your applications produce, and comfortably below the broker heap divided by the number of request-handler and cleaner threads. Until you can upgrade and configure the limit, restrict Write access to trusted producers; quotas and max.message.bytes do not mitigate this issue.\n\n\nResolution:\n\nFrom Apache Kafka 4.2.2, 4.3.2, and 4.4.0: the broker validates a record's declared decompressed body size against max.decompressed.message.bytes before allocating, on the produce-validation, log-compaction, and timestamp-lookup paths, and rejects oversized or negative sizes with InvalidRecordException. Operators must set this configuration to a bounded value to be protected, as its default is effectively unlimited.","affected_stack":[{"ecosystem":"CVE","package":"Apache Software Foundation/Apache Kafka","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.11.0.0"},{"fixed":"2.5.0"}]}],"fixed":["2.5.0"],"provider":"cvelistv5","source":"CVE-2026-114349","relation":"self"},{"ecosystem":"CVE","package":"Apache Software Foundation/Apache Kafka","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.11.0.0"},{"fixed":"4.0.0"}]}],"fixed":["4.0.0"],"provider":"cvelistv5","source":"CVE-2026-114349","relation":"self"},{"ecosystem":"CVE","package":"Apache Software Foundation/Apache Kafka","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.4.0"},{"last_affected":"4.1.2"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.2.0"},{"last_affected":"4.2.1"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.3.0"},{"last_affected":"4.3.1"}]}],"provider":"cvelistv5","source":"CVE-2026-114349","relation":"self"}],"affected_other":[{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"kafka","purl":"pkg:deb/ubuntu/kafka?arch=source&distro=esm-apps%2Fbionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.0u2-0ubuntu3.1","2.2.0u2-0ubuntu3.2","2.2.2u1-0ubuntu1+esm2"],"provider":"osv","source":"UBUNTU-CVE-2026-114349","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Fuse 7","cpe":"cpe:/a:redhat:jboss_fuse:7","status":"affected","packages":["kafka-clients"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2026-114349"},{"vendor":"Red Hat","product":"Red Hat build of Apache Camel 4 for Quarkus 3","cpe":"cpe:/a:redhat:camel_quarkus:3","status":"affected","packages":["kafka-clients"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-114349"},{"vendor":"Red Hat","product":"Red Hat build of Apache Camel for Spring Boot 4","cpe":"cpe:/a:redhat:camel_spring_boot:4","status":"affected","packages":["kafka-clients"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-114349"},{"vendor":"Red Hat","product":"Red Hat build of Apicurio Registry 3","cpe":"cpe:/a:redhat:apicurio_registry:3","status":"affected","packages":["kafka-clients"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-114349"},{"vendor":"Red Hat","product":"Red Hat build of Debezium 3","cpe":"cpe:/a:redhat:debezium:3","status":"affected","packages":["kafka-clients"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-114349"},{"vendor":"Red Hat","product":"Red Hat build of Quarkus","cpe":"cpe:/a:redhat:quarkus:3","status":"affected","packages":["kafka-clients"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-114349"},{"vendor":"Red Hat","product":"streams for Apache Kafka 3","cpe":"cpe:/a:redhat:amq_streams:3","status":"affected","packages":["kafka-clients"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-114349"}],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-4221","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-4221","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-10-28T23:00:00Z","modified_at":"2026-10-28T23:00:00Z","summary":"Apache Kafka: Mehrere Schwachstellen","details":"Ein Angreifer kann mehrere Schwachstellen in Apache Kafka ausnutzen, um einen Denial of Service Angriff durchzuführen, um Informationen offenzulegen und um Sicherheitsvorkehrungen zu umgehen.\n\nApache Kafka ist eine verteilte Streaming-Plattform mit einer Publish-Subcribe-Architektur (Pub-Sub).","severity":[{"type":"BSI","score":"mittel","source":"WID-SEC-W-2026-4221"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-4221.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-4221"},{"type":"WEB","url":"https://kafka.apache.org/community/cve-list/"},{"type":"WEB","url":"https://seclists.org/oss-sec/2026/q4/414"},{"type":"WEB","url":"https://seclists.org/oss-sec/2026/q4/415"},{"type":"WEB","url":"https://seclists.org/oss-sec/2026/q4/416"},{"type":"WEB","url":"https://seclists.org/oss-sec/2026/q4/417"},{"type":"WEB","url":"https://seclists.org/oss-sec/2026/q4/418"},{"type":"WEB","url":"https://seclists.org/oss-sec/2026/q4/419"},{"type":"WEB","url":"https://seclists.org/oss-sec/2026/q4/420"},{"type":"WEB","url":"https://seclists.org/oss-sec/2026/q4/421"},{"type":"WEB","url":"https://seclists.org/oss-sec/2026/q4/422"},{"type":"WEB","url":"https://seclists.org/oss-sec/2026/q4/423"},{"type":"WEB","url":"https://seclists.org/oss-sec/2026/q4/424"},{"type":"WEB","url":"https://seclists.org/oss-sec/2026/q4/425"},{"type":"WEB","url":"https://seclists.org/oss-sec/2026/q4/426"}]},{"provider":"cvelistv5","source_id":"CVE-2026-114349","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-114349","license":"CC-BY-4.0","published_at":"2026-10-28T16:46:54.92Z","modified_at":"2026-11-05T17:28:41.305Z","summary":"Apache Kafka: Denial of service via unbounded memory allocation when decoding compressed record batches","details":"When a broker decodes a compressed record batch, the per-record decoder reads a declared body size from the decompressed stream and allocates a buffer of that size before validating it against the bytes available or any configured limit. The size is attacker-controlled, and the batch CRC does not constrain it, so a small (around 90-byte), CRC-valid compressed produce request can declare a body size of up to about 2 GiB and force the broker to attempt that allocation, raising OutOfMemoryError. The record size limit (max.message.bytes), the request size limit, and client/broker quotas bound only the compressed wire size, not the declared decompressed size.\n\n\nImpact:\n\nAn authenticated principal with Write on a topic can crash broker request-handler threads (reached when a batch's codec differs from the topic's compression.type and records are re-encoded) and any consumer that fetches the record, denying service. On brokers started with -XX:+ExitOnOutOfMemoryError, a common hardening, a single crafted request terminates the broker JVM. More seriously, a crafted record  is accepted at ingest and written to disk; when the log-cleaner later reads it on a compacted topic, the OutOfMemoryError (an Error, not an Exception) terminates the cleaner thread, which is not restarted. With the default of a single cleaner thread, log compaction then stops for the entire broker, including the internal __consumer_offsets and __transaction_state topics, and the condition persists across restarts until the offending record is removed. The impact is availability only; no data is disclosed or altered.\n\n\nMitigation:\n\nUpgrade to Apache Kafka 4.2.2, 4.3.2, or 4.4.0, and set max.decompressed.message.bytes (at the broker and/or topic level) to a bounded value appropriate for your workload. Upgrading alone is not sufficient: for backward compatibility this configuration defaults to an effectively unlimited value (about 2 GiB), so a broker remains exposed until the limit is set. Choose a value at or slightly above the largest legitimate decompressed record your applications produce, and comfortably below the broker heap divided by the number of request-handler and cleaner threads. Until you can upgrade and configure the limit, restrict Write access to trusted producers; quotas and max.message.bytes do not mitigate this issue.\n\n\nResolution:\n\nFrom Apache Kafka 4.2.2, 4.3.2, and 4.4.0: the broker validates a record's declared decompressed body size against max.decompressed.message.bytes before allocating, on the produce-validation, log-compaction, and timestamp-lookup paths, and rejects oversized or negative sizes with InvalidRecordException. Operators must set this configuration to a bounded value to be protected, as its default is effectively unlimited.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP:CVE-2026-114349"}],"affected":[{"ecosystem":"CVE","package":"Apache Software Foundation/Apache Kafka","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.11.0.0"},{"fixed":"2.5.0"}]}],"fixed":["2.5.0"],"provider":"cvelistv5","source":"CVE-2026-114349","relation":"self"},{"ecosystem":"CVE","package":"Apache Software Foundation/Apache Kafka","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.11.0.0"},{"fixed":"4.0.0"}]}],"fixed":["4.0.0"],"provider":"cvelistv5","source":"CVE-2026-114349","relation":"self"},{"ecosystem":"CVE","package":"Apache Software Foundation/Apache Kafka","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.4.0"},{"last_affected":"4.1.2"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.2.0"},{"last_affected":"4.2.1"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.3.0"},{"last_affected":"4.3.1"}]}],"provider":"cvelistv5","source":"CVE-2026-114349","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://kafka.apache.org/cve-list"},{"type":"WEB","url":"https://lists.apache.org/thread/hdy56hrd1h9btf30jb1noswsx32l17dq"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2026-114349","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-114349","license":"CC-BY-SA-4.0","published_at":"2026-10-28T17:17:00Z","modified_at":"2026-11-07T01:45:11.504912Z","details":"When a broker decodes a compressed record batch, the per-record decoder reads a declared body size from the decompressed stream and allocates a buffer of that size before validating it against the bytes available or any configured limit. The size is attacker-controlled, and the batch CRC does not constrain it, so a small (around 90-byte), CRC-valid compressed produce request can declare a body size of up to about 2 GiB and force the broker to attempt that allocation, raising OutOfMemoryError. The record size limit (max.message.bytes), the request size limit, and client/broker quotas bound only the compressed wire size, not the declared decompressed size. Impact: An authenticated principal with Write on a topic can crash broker request-handler threads (reached when a batch's codec differs from the topic's compression.type and records are re-encoded) and any consumer that fetches the record, denying service. On brokers started with -XX:+ExitOnOutOfMemoryError, a common hardening, a single crafted request terminates the broker JVM. More seriously, a crafted record  is accepted at ingest and written to disk; when the log-cleaner later reads it on a compacted topic, the OutOfMemoryError (an Error, not an Exception) terminates the cleaner thread, which is not restarted. With the default of a single cleaner thread, log compaction then stops for the entire broker, including the internal __consumer_offsets and __transaction_state topics, and the condition persists across restarts until the offending record is removed. The impact is availability only; no data is disclosed or altered. Mitigation: Upgrade to Apache Kafka 4.2.2, 4.3.2, or 4.4.0, and set max.decompressed.message.bytes (at the broker and/or topic level) to a bounded value appropriate for your workload. Upgrading alone is not sufficient: for backward compatibility this configuration defaults to an effectively unlimited value (about 2 GiB), so a broker remains exposed until the limit is set. Choose a value at or slightly above the largest legitimate decompressed record your applications produce, and comfortably below the broker heap divided by the number of request-handler and cleaner threads. Until you can upgrade and configure the limit, restrict Write access to trusted producers; quotas and max.message.bytes do not mitigate this issue. Resolution: From Apache Kafka 4.2.2, 4.3.2, and 4.4.0: the broker validates a record's declared decompressed body size against max.decompressed.message.bytes before allocating, on the produce-validation, log-compaction, and timestamp-lookup paths, and rejects oversized or negative sizes with InvalidRecordException. Operators must set this configuration to a bounded value to be protected, as its default is effectively unlimited.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"UBUNTU-CVE-2026-114349"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2026-114349"}],"affected":[{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"kafka","purl":"pkg:deb/ubuntu/kafka?arch=source&distro=esm-apps%2Fbionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.0u2-0ubuntu3.1","2.2.0u2-0ubuntu3.2","2.2.2u1-0ubuntu1+esm2"],"provider":"osv","source":"UBUNTU-CVE-2026-114349","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-114349"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-114349"},{"type":"REPORT","url":"https://kafka.apache.org/cve-list"},{"type":"REPORT","url":"http://www.openwall.com/lists/oss-security/2026/10/28/18"}]},{"provider":"redhat-vex","source_id":"CVE-2026-114349","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-114349","license":"CC-BY-4.0","published_at":"2026-10-28T16:46:54.92Z","modified_at":"2026-11-18T17:36:13Z","summary":"kafka: kafka: Denial of Service via excessive memory allocation during record decompression","details":"A flaw was found in Apache Kafka. An authenticated attacker with write permissions to a topic can cause a Denial of Service (DoS) by sending a specially crafted compressed record batch. Because the broker allocates memory based on an unvalidated record size declared in the decompressed data stream, processing the request exhausts system memory. This failure can crash broker request threads, terminate the server, or halt background log compaction tasks.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2026-114349"},{"type":"Red Hat","score":"Moderate","source":"CVE-2026-114349"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Fuse 7","cpe":"cpe:/a:redhat:jboss_fuse:7","status":"affected","packages":["kafka-clients"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2026-114349"},{"vendor":"Red Hat","product":"Red Hat build of Apache Camel 4 for Quarkus 3","cpe":"cpe:/a:redhat:camel_quarkus:3","status":"affected","packages":["kafka-clients"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-114349"},{"vendor":"Red Hat","product":"Red Hat build of Apache Camel for Spring Boot 4","cpe":"cpe:/a:redhat:camel_spring_boot:4","status":"affected","packages":["kafka-clients"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-114349"},{"vendor":"Red Hat","product":"Red Hat build of Apicurio Registry 3","cpe":"cpe:/a:redhat:apicurio_registry:3","status":"affected","packages":["kafka-clients"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-114349"},{"vendor":"Red Hat","product":"Red Hat build of Debezium 3","cpe":"cpe:/a:redhat:debezium:3","status":"affected","packages":["kafka-clients"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-114349"},{"vendor":"Red Hat","product":"Red Hat build of Quarkus","cpe":"cpe:/a:redhat:quarkus:3","status":"affected","packages":["kafka-clients"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-114349"},{"vendor":"Red Hat","product":"streams for Apache Kafka 3","cpe":"cpe:/a:redhat:amq_streams:3","status":"affected","packages":["kafka-clients"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-114349"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-114349.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-114349"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2562990"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-114349"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114349"},{"type":"WEB","url":"https://kafka.apache.org/cve-list"}]}],"references":[{"type":"ADVISORY","url":"https://kafka.apache.org/cve-list"},{"type":"WEB","url":"https://lists.apache.org/thread/hdy56hrd1h9btf30jb1noswsx32l17dq"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-114349"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-114349"},{"type":"REPORT","url":"http://www.openwall.com/lists/oss-security/2026/10/28/18"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-114349.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-114349"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2562990"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114349"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-4221","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-4221","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-10-28T23:00:00Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2026-114349","url":"https://www.cve.org/CVERecord?id=CVE-2026-114349","license":"CC-BY-4.0","modified_at":"2026-11-05T17:28:41.305Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2026-114349","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-114349","license":"CC-BY-SA-4.0","modified_at":"2026-11-07T01:45:11.504912Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-114349","url":"https://access.redhat.com/security/cve/CVE-2026-114349","license":"CC-BY-4.0","modified_at":"2026-11-18T17:36:13Z","relation":"self"}]}
