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.
Update org.springframework.kafka:spring-kafka to 4.0.6; org.springframework.kafka:spring-kafka to 3.3.16 if you use the affected versions. Test the change in a non-production environment first.
Local check
hol-guard supply-chain scanIn Spring for Apache Kafka, unbounded delegate cache keyed on user-controlled, potentially malicious selector header affects org.springframework.kafka:spring-kafka (maven), org.springframework.kafka:spring-kafka (maven), org.springframework.kafka:spring-kafka (maven), org.springframework.kafka:spring-kafka (maven), org.springframework.kafka:spring-kafka (maven). Severity is medium. 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.
AI coding agents often install or upgrade packages automatically in maven. A medium vulnerability in a dependency can be pulled into a project through a normal install or update without a human reviewing the change, expanding the blast radius from a single package to every agent workspace that depends on it.
| Package | Affected range | Fixed version |
|---|---|---|
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.
Update org.springframework.kafka:spring-kafka to 4.0.6; org.springframework.kafka:spring-kafka to 3.3.16 if you use the affected versions. Test the change in a non-production environment first.
Local check
hol-guard supply-chain scanIn Spring for Apache Kafka, unbounded delegate cache keyed on user-controlled, potentially malicious selector header affects org.springframework.kafka:spring-kafka (maven), org.springframework.kafka:spring-kafka (maven), org.springframework.kafka:spring-kafka (maven), org.springframework.kafka:spring-kafka (maven), org.springframework.kafka:spring-kafka (maven). Severity is medium. 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.
AI coding agents often install or upgrade packages automatically in maven. A medium vulnerability in a dependency can be pulled into a project through a normal install or update without a human reviewing the change, expanding the blast radius from a single package to every agent workspace that depends on it.
| Package | Affected range | Fixed version |
|---|---|---|
| org.springframework.kafka:spring-kafkamaven |
|---|
| >=4.0.0,<=4.0.5 |
| 4.0.6 |
| org.springframework.kafka:spring-kafkamaven | >=3.3.0,<=3.3.15 | 3.3.16 |
|---|
| org.springframework.kafka:spring-kafkamaven | >=3.2.0,<=3.2.13 | Not reported |
|---|
| org.springframework.kafka:spring-kafkamaven | >=2.9.0,<=2.9.13 | Not reported |
|---|
| org.springframework.kafka:spring-kafkamaven | <=2.8.11 | Not reported |
|---|
Fixed versions are reported by the source feed; confirm compatibility before updating.
Reported by GitHub Security Advisories (ghsa).
HOL Guard can help your team review package activity against supported protection paths.
Explore HOL Guard| org.springframework.kafka:spring-kafkamaven |
|---|
| >=4.0.0,<=4.0.5 |
| 4.0.6 |
| org.springframework.kafka:spring-kafkamaven | >=3.3.0,<=3.3.15 | 3.3.16 |
|---|
| org.springframework.kafka:spring-kafkamaven | >=3.2.0,<=3.2.13 | Not reported |
|---|
| org.springframework.kafka:spring-kafkamaven | >=2.9.0,<=2.9.13 | Not reported |
|---|
| org.springframework.kafka:spring-kafkamaven | <=2.8.11 | Not reported |
|---|
Fixed versions are reported by the source feed; confirm compatibility before updating.
Reported by GitHub Security Advisories (ghsa).
HOL Guard can help your team review package activity against supported protection paths.
Explore HOL Guard