Description
When an application opts into DelegatingDeserializer, a producer can grow the consumer's heap without bound by sending records with unique random spring.kafka.serialization.selector header values, eventually causing GC thrash and OutOfMemoryError.

Affected versions:
Spring for Apache Kafka 4.0.0 through 4.0.5; 3.3.0 through 3.3.15; 3.2.0 through 3.2.13; 2.9.0 through 2.9.13; 2.8.0 through 2.8.11.
Published: 2026-06-09
Score: 6.5 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

When an application opts into DelegatingDeserializer, an attacker can send records containing unique, random values in the spring.kafka.serialization.selector header. These values become keys in an internal delegate cache that is not bounded; as the cache grows, the consumer’s heap consumption grows without limit, eventually forcing the garbage collector to thrash and causing an OutOfMemoryError. The vulnerability is a classic resource exhaustion flaw (CWE-770) that can be exploited to make the consumer process unavailable by exhausting its memory capacity, without granting any code‑execution or data‑breach privileges. The primary consequence is denial of service for the Kafka consumer component, potentially impacting any downstream services that rely on it.

Affected Systems

Spring for Apache Kafka versions 2.8.0 through 2.8.11, 2.9.0 through 2.9.13, 3.2.0 through 3.2.13, 3.3.0 through 3.3.15, and 4.0.0 through 4.0.5 are affected.

Risk and Exploitability

The CVSS score of 6.5 reflects a moderate severity impact limited to availability. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting that widespread exploitation is not currently observed. The likely attack vector is a remote Kafka producer that can inject arbitrary selector headers; the attacker must repeatedly send messages with unique header values to grow the cache to the point of exhaustion. The exploit does not require privileged access or pre‑existing foothold beyond the ability to send messages to the target consumer, but it can disrupt service if the consumer is critical to application logic.

Generated by OpenCVE AI on June 10, 2026 at 01:24 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Spring for Apache Kafka to a version beyond those listed in the affected range; the fix is included in future releases.
  • If upgrading is not immediately possible, reconfigure the application to avoid using DelegatingDeserializer or limit the header values that are accepted to prevent infinite cache growth.
  • Monitor JVM memory usage for signs of abnormal GC activity and set alerts for heap exhaustion thresholds; consider configuring heap size or enabling JVM flags to catch OOM conditions early.

Generated by OpenCVE AI on June 10, 2026 at 01:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

Wed, 10 Jun 2026 00:00:00 +0000

Type Values Removed Values Added
Description When an application opts into DelegatingDeserializer, a producer can grow the consumer's heap without bound by sending records with unique random spring.kafka.serialization.selector header values, eventually causing GC thrash and OutOfMemoryError. Affected versions: Spring for Apache Kafka 4.0.0 through 4.0.5; 3.3.0 through 3.3.15; 3.2.0 through 3.2.13; 2.9.0 through 2.9.13; 2.8.0 through 2.8.11.
Title In Spring for Apache Kafka, unbounded delegate cache keyed on user-controlled, potentially malicious selector header
Weaknesses CWE-770
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: vmware

Published:

Updated: 2026-06-09T23:48:51.048Z

Reserved: 2026-04-22T06:21:39.014Z

Link: CVE-2026-41726

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-06-10T00:16:52.030

Modified: 2026-06-10T00:16:52.030

Link: CVE-2026-41726

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-10T01:30:18Z

Weaknesses