Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreJsonKafkaHeaderMapper 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.
Jackson's built-in InetAddress deserialization calls InetAddress.getByName(), which immediately triggers a DNS resolution, enabling Server-Side Request Forgery (SSRF) in the default configuration.
Spring for Apache Kafka:
| Fix version | Availability |
|---|---|
| 4.1.1 | OSS |
| 4.1.0.1 | Enterprise Support Only |
| 4.0.7 | OSS |
| 4.0.6.1 | Enterprise Support Only |
| 3.3.17 | Enterprise Support Only |
| 2.9.15 | Enterprise Support Only |
| 2.8.13 | Enterprise Support Only |
No further mitigation steps are necessary.
The issue was identified and responsibly reported by Sharlong Wen (@Sharlong-Wen).
To report a security vulnerability for a project within the Spring portfolio, see the Security Policy