← VULNERABILITIES

DHI-axci-qytq-wgk3-kk4t

DefaultBaseTypeLimitingValidator is the PolymorphicTypeValidator applied automatically whenever @JsonTypeInfo is used…

UnscoredFix available
CVSS
—
EPSS
—
Published
2026-11-19
Age
14d old
Modified
2026-12-04
Product
Docker Hardened Images:Alpine:3.23 flink-kubernetes-operator

Description

DefaultBaseTypeLimitingValidator is the PolymorphicTypeValidator applied automatically whenever @JsonTypeInfo is used without an explicitly configured custom validator. It denies polymorphic resolution only for a fixed set of "unsafe base types", and its isSafeSubType method returns true unconditionally for every base type outside that set. java.lang.Comparable was absent from the list despite being implemented by a very large fraction of JDK and application classes, comparable in breadth to java.io.Serializable, which is on the list for that reason. An application declaring an @JsonTypeInfo-annotated property or class with Comparable as its base type, and no custom PolymorphicTypeValidator, will accept a type identifier for essentially any class implementing Comparable. This yields an attacker-controlled object instantiation primitive; a demonstrated case constructs a java.io.File for an arbitrary attacker-chosen path, which becomes path-traversal-adjacent if the application subsequently calls path-sensitive methods on the value. No class implementing Comparable has been identified that yields code execution through deserialization alone. Global Default Typing via activateDefaultT

Fixed in

8.14.6-r0 · 9.8.0-r1 · 9.8.1-0

Affected packages

EcosystemPackageRangeFixed
Docker Hardened Images:Alpine:3.23gradle-8>=0, <8.14.6-r08.14.6-r0
Docker Hardened Images:Alpine:3.23gradle-9>=0, <9.8.0-r19.8.0-r1
Docker Hardened Images:Alpine:3.24gradle-8>=0, <8.14.6-r08.14.6-r0
Docker Hardened Images:Alpine:3.24gradle-9>=0, <9.8.0-r19.8.0-r1
Docker Hardened Images:Debian:13gradle-9>=0, <9.8.1-09.8.1-0

Sources

  • OSV · first seen 14d ago · CC-BY 4.0

References

JSON