CVE-2026-110879
KritikTeknik Veri (Otomatik)
- CVSS Skoru
- 9.8
- EPSS
- 1.2%
- CWE
- CWE-502
- KEV Durumu
- Hayır
Yayım tarihi: 28 Ekim 2026
jackson-databind, sınıf-adı tip kimlik bilgilerinin dış sınıfını doğrular ancak generic argümanları içindeki saldırgan tarafından seçilen sınıfları kabul eder, bu sınıflar bildirilen tipi ihlal etseler veya doğrudan tip kimlikleri olarak reddedilseler bile. Bu, CVE-2026-54512 (GHSA-j3rv-43j4-c7qm) için eklenen generic argüman doğrulamasını atlar, bu da bu sorunun eksik bir düzeltmesidir. DatabindContext._resolveAndValidateGeneric(), dış sınıfı bildirilen temel tip karşı doğrular ve sonra tip kimliğinden her argümanı _validateTypeParameter()'ye geçirir, bu da argümanı dış temel tip karşı doğrular, ancak karşılık gelen bildirilen generic bağlantısını zorlamaz. Ayrıca, alt tip kontrolünden geçmeyen argümanlarla doğrulayıcıları çağırır, bu doğrulayıcılar beklenen alt tip kontrolünden geçmeyen argümanları kabul eder. Varsayılan DefaultBaseTypeLimitingValidator ile, generic alt tip içindeki ilgili olmayan bir sınıf, aynı sınıf doğrudan tip kimliği olarak reddedilse bile kabul edilir. Dış tip allowIfBaseType(...) kuralı tarafından onaylandığında, Jackson LaissezFaireSubTypeValidator'ı değiştirir, böylece yapılandırılan doğrulayıcı gömülü argümanları artık kısıtlamaz. Düz bir dizi tip kimliği olan [Lpkg.Gadget; gibi bir öğenin tipi de, dizi temel tipi onaylandıktan sonra doğrulanmaz. Etkilenen yollar, varsayılan Jackson 3.x JsonMapper ile annotation tabanlı sınıf-adı polimorfizmini, Jackson 2.x ve 3.x'te yapılandırılan varsayılan tiplemeyi ve bu varsayılan tiplemeyi ortaya çıkaran entegrasyonları içerir. Varsayılan doğrulayıcı durumu, uygulama tarafından oluşturulan bir doğrulayıcı gerektirmez: @JsonTypeInfo(use = Id.CLASS) ile, doğrudan bir gadget tip kimliği "Alt tip değil" olarak reddedilir, ancak aynı gadget etrafındaki generic bir sarmalayıcıyı adlandıran bir tip kimliği kabul edilir ve seri hale getirilir, saldırgan tarafından sağlanan bean özellikleri dahil. Sınıf-adı varsayılan tiplemesi Harita'yı izin verdiğinde, Map<String,String> olarak bildirilen bir özellik, HashMap<FileSystemXmlApplicationContext,String>'i kabul eder; harita anahtar keşfi sonra saldırgan tarafından kontrol edilen JSON özelliğini seçilen sınıfın bir dize oluşturucusuna geçirir. Spring sınıf yolunda ve saldırgan tarafından kontrol edilen XML'nin yüklenmesi durumunda, bu oluşturucu XML'yi yükler ve ProcessBuilder.start()'ı uygulama hesabı altında çağırır, bu da keyfi komut yürütmesini sağlar. Bu sorun, com.fasterxml.jackson.core:jackson-databind 2.10.0 ve tools.jackson.core:jackson-databind 3.0.0'dan etkilenir. 2.10.0'dan önceki sürümler etkilenmez, çünkü PolymorphicTypeValidator jackson-databind 2.10.0'da tanıtıldı.
Orijinal açıklama (İngilizce)
jackson-databind validates the outer class of a class-name type ID but accepts attacker-selected classes inside its generic arguments, even when those classes violate the declared type or would be rejected as direct type IDs. This bypasses the generic-argument validation added for CVE-2026-54512 (GHSA-j3rv-43j4-c7qm), of which this is an incomplete fix. DatabindContext._resolveAndValidateGeneric() checks the outer class against the declared base type and then passes each argument from the type ID to _validateTypeParameter(), which validates the argument against the outer base type rather than enforcing its corresponding declared generic binding. It also invokes validators with arguments that have not passed the subtype check those validators expect. Under the default DefaultBaseTypeLimitingValidator this accepts an unrelated class inside a generic subtype even when the same class is rejected as a direct type ID. Where an allowIfBaseType(...) rule approves the outer type, Jackson substitutes LaissezFaireSubTypeValidator, so the configured validator no longer restricts the embedded arguments. The element type of a plain array type ID such as [Lpkg.Gadget; is likewise left unvalidated once the array's base type is approved. Affected paths include annotation-based class-name polymorphism with a default Jackson 3.x JsonMapper, configured default typing in both Jackson 2.x and 3.x, and integrations that expose that default typing. The default-validator case requires no application-authored validator: with @JsonTypeInfo(use = Id.CLASS), a direct gadget type ID is rejected as "Not a subtype", while a type ID naming a generic wrapper around the same gadget is accepted and deserialized, including attacker-supplied bean properties. Where class-name default typing permits Map, a property declared as Map<String,String> accepts HashMap<FileSystemXmlApplicationContext,String>; map-key discovery then passes the attacker-controlled JSON property name to the selected class's one-string constructor. With Spring on the classpath and attacker-controlled XML the application can load, that constructor loads the XML and invokes ProcessBuilder.start() under the application account, giving arbitrary command execution. This issue affects com.fasterxml.jackson.core:jackson-databind from 2.10.0 and tools.jackson.core:jackson-databind from 3.0.0. Releases before 2.10.0 are not affected, because PolymorphicTypeValidator was introduced in jackson-databind 2.10.0.
Referanslar
Bu CVE için henüz editoryal inceleme yapılmadı. Sadece otomatik teknik veri gösteriliyor.