Skip to content

Commit efc3c0d

Browse files
committed
Backport #2326 fix in 2.8 (for theoretical 2.8.11.4)
1 parent c8c80a2 commit efc3c0d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

release-notes/VERSION

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ Project: jackson-databind
33
=== Releases ===
44
------------------------------------------------------------------------
55

6+
2.8.11.4 (not released)
7+
8+
#2326: Block one more gadget type (CVE-2019-12086)
9+
610
2.8.11.3 (23-Nov-2018)
711

812
#2097: Block more classes from polymorphic deserialization (CVE-2018-14718

src/main/java/com/fasterxml/jackson/databind/jsontype/impl/SubTypeValidator.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ public class SubTypeValidator
8282
s.add("org.apache.openjpa.ee.JNDIManagedRuntime");
8383
s.add("org.apache.axis2.transport.jms.JMSOutTransportInfo");
8484

85+
// [databind#2326] (2.9.9): one more 3rd party gadget
86+
s.add("com.mysql.cj.jdbc.admin.MiniAdmin");
87+
8588
DEFAULT_NO_DESER_CLASS_NAMES = Collections.unmodifiableSet(s);
8689
}
8790

@@ -96,7 +99,8 @@ protected SubTypeValidator() { }
9699

97100
public static SubTypeValidator instance() { return instance; }
98101

99-
public void validateSubType(DeserializationContext ctxt, JavaType type) throws JsonMappingException
102+
public void validateSubType(DeserializationContext ctxt, JavaType type)
103+
throws JsonMappingException
100104
{
101105
// There are certain nasty classes that could cause problems, mostly
102106
// via default typing -- catch them here.

0 commit comments

Comments
 (0)