6.5Medium

CVE-2026-59278In Spring for Apache Kafka, SSRF via DNS resolution triggered by untrusted java.net types in header mapper default trusted packages

Spring Spring for Apache Kafka Published: (2 months ago)

Description

JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper include java.net in their default trusted packages list. When these mappers are used — which is the default configuration for all @KafkaListener consumers — an external Kafka producer can inject a java.net.InetAddress type via the spring_json_header_types message header. Spring for Apache Kafka 4.1.0 Spring for Apache Kafka 4.0.0 - 4.0.6 Spring for Apache Kafka 3.0.0 - 3.3.16 Spring for Apache Kafka 2.9.0 - 2.9.14 Spring for Apache Kafka 2.8.12 and earlier

Weakness (CWE): CWE-918

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Spring Spring for Apache Kafka 4.1.0, 4.0.0 – ≤ 4.0.6, 3.0.0 – ≤ 3.3.16, 2.9.0 – ≤ 2.9.14, ≤ 2.8.12
vmware spring for apache kafka < 2.8.13

References and patches

CPE matches (NVD) (5)

  • cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* < 2.8.13
  • cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* ≥ 2.9.0 < 2.9.15
  • cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* ≥ 3.0.0 < 3.3.17
  • cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* ≥ 4.0.0 < 4.0.6.1
  • cpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* ≥ 4.1.0 < 4.1.0.1