jackson-databind: InetSocketAddress deserialization triggers eager DNS resolution (SSRF)
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in com.fasterxml.jackson.core:jackson-databind 2.18.8, com.fasterxml.jackson.core:jackson-databind 2.21.4 and tools.jackson.core:jackson-databind 3.1.4.
jackson-databind contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor. From 2.0.0 until 2.18.8, 2.21.4, and 3.1.4, JDKFromStringDeserializer constructed InetSocketAddress with new InetSocketAddress(host, port), which performs eager DNS name resolution for hostname inputs at deserialization time. An application that binds untrusted JSON into a type containing an InetSocketAddress field issues an attacker-chosen DNS query during readValue, before any application-level validation or connect logic. The fix uses InetSocketAddress.createUnresolved(host, port), deferring DNS to an explicit connect. This vulnerability is fixed in 2.18.8, 2.21.4, and 3.1.4.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| FasterXML | >=2.0.0 <2.18.8, >=2.19.0 <2.21.4, >=3.0.0 <3.1.4 | ||
| maven: com.fasterxml.jackson.core:jackson-databind | >=2.0.0 <2.18.8, >=2.19.0 <2.21.4 | 2.18.8, 2.21.4 | |
| maven: tools.jackson.core:jackson-databind | >=3.0.0 <3.1.4 | 3.1.4 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket