CVE-2026-41726

In Spring for Apache Kafka, unbounded delegate cache keyed on user-controlled, potentially malicious selector header

Published Jun 9, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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

Source ID Title
Github GHSA Github GHSA GHSA-xvfq-4q6q-gxx7 In Spring for Apache Kafka, unbounded delegate cache keyed on user-controlled, potentially malicious selector header
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Spring
Spring spring For Apache Kafka
Vmware
Vmware spring For Apache Kafka
Vendors & Products Spring
Spring spring For Apache Kafka
Vmware
Vmware spring For Apache Kafka
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'}

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Jun 27, 2026, 9:14 PM
Reserved
Apr 22, 2026, 6:21 AM
Status
Analyzed
Published
Jun 10, 2026, 12:16 AM
Modified
Jul 23, 2026, 9:10 AM
Severity
Moderate
Public date
Jun 9, 2026, 11:48 PM