You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "liyang (Jira)" <ji...@apache.org> on 2026/10/11 12:22:00 UTC

[jira] [Updated] (KYLIN-6092) Insecure Jackson deserialization

     [ https://issues.apache.org/jira/browse/KYLIN-6092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

liyang updated KYLIN-6092:
--------------------------
    Issue Type: Bug  (was: Task)

> Insecure Jackson deserialization
> --------------------------------
>
>                 Key: KYLIN-6092
>                 URL: https://issues.apache.org/jira/browse/KYLIN-6092
>             Project: Kylin
>          Issue Type: Bug
>            Reporter: PJ Fanning
>            Assignee: Longfei Jiang
>            Priority: Major
>
> [https://github.com/apache/kylin/blob/b5b94b51abaf83d68088e4fcab606d2a6530e54d/src/core-common/src/main/java/org/apache/kylin/common/persistence/event/Event.java#L33]
> `@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS)` – when you deserialize the `@class` value that appears in the JSON can be any class name and Jackson will load that class and try to create an instance.
> You should add a polymorphic type validator to your ObjectMapper that restricts which classes can be loaded at deserialization time.
> https://fasterxml.github.io/jackson-databind/javadoc/2.10/com/fasterxml/jackson/databind/jsontype/BasicPolymorphicTypeValidator.html
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)