Skip to content

Commit

Permalink
Backport #2326 fix in 2.8 (for theoretical 2.8.11.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed May 14, 2019
1 parent c8c80a2 commit efc3c0d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ Project: jackson-databind
=== Releases ===
------------------------------------------------------------------------

2.8.11.4 (not released)

#2326: Block one more gadget type (CVE-2019-12086)

2.8.11.3 (23-Nov-2018)

#2097: Block more classes from polymorphic deserialization (CVE-2018-14718
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ public class SubTypeValidator
s.add("org.apache.openjpa.ee.JNDIManagedRuntime");
s.add("org.apache.axis2.transport.jms.JMSOutTransportInfo");

// [databind#2326] (2.9.9): one more 3rd party gadget
s.add("com.mysql.cj.jdbc.admin.MiniAdmin");

DEFAULT_NO_DESER_CLASS_NAMES = Collections.unmodifiableSet(s);
}

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

public static SubTypeValidator instance() { return instance; }

public void validateSubType(DeserializationContext ctxt, JavaType type) throws JsonMappingException
public void validateSubType(DeserializationContext ctxt, JavaType type)
throws JsonMappingException
{
// There are certain nasty classes that could cause problems, mostly
// via default typing -- catch them here.
Expand Down

0 comments on commit efc3c0d

Please sign in to comment.