jackson-databind: Case-insensitive deserialization bypasses per-property @JsonIgnoreProperties
FasterXML jackson-databind
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| com.fasterxml.jackson.core:jackson-databind Maven |
|
|
FasterXML jackson-databind
| Product | Affected | Fixed in |
|---|---|---|
| com.fasterxml.jackson.core:jackson-databind Maven |
|
|
| tools.jackson.core:jackson-databind Maven |
|
|
jackson-databind contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor. From 2.8.0 until 2.18.9, 2.21.5, and 3.1.4, in BeanDeserializerBase.createContextual(), per-property @JsonIgnoreProperties exclusions are applied by _handleByNameInclusion(), producing a contextual deserializer whose BeanPropertyMap has the ignored properties removed. The subsequent per-property case-insensitivity block (triggered by @JsonFormat(ACCEPT_CASE_INSENSITIVE_PROPERTIES)) rebuilds from this._beanProperties (the original, unfiltered map) instead of contextual._beanProperties, then overwrites the filtered map — restoring every property _handleByNameInclusion had just removed. The ignored property becomes writable again. This vulnerability is fixed in 2.18.9, 2.21.5, and 3.1.4.
From the CVE record · GitHub_M
In jackson-databind, per-property case-insensitive deserialization can restore properties excluded by @JsonIgnoreProperties. An attacker who can supply data for deserialization under these settings can make an ignored property writable; the input does not specify authentication or user-interaction requirements.
Check Maven applications using com.fasterxml.jackson.core:jackson-databind versions >=2.8.0 <2.18.9, >=2.19.0 <2.21.5, >=2.22.0 <2.22.1, or >=3.1.0 <3.1.4, or tools.jackson.core:jackson-databind versions >=3.1.0 <3.1.4.