CVE-2020-11619

8.1 HIGH

📋 TL;DR

This is a deserialization vulnerability in FasterXML jackson-databind that allows remote code execution when untrusted data is deserialized with polymorphic type handling enabled. It affects applications using jackson-databind 2.x before 2.9.10.4 that deserialize data from untrusted sources with default typing or @JsonTypeInfo annotations.

💻 Affected Systems

Products:
  • FasterXML jackson-databind
  • Applications using jackson-databind for JSON deserialization
  • Spring Framework applications using jackson-databind
Versions: 2.x before 2.9.10.4
Operating Systems: All
Default Config Vulnerable: ✅ No
Notes: Only vulnerable when polymorphic type handling is enabled (default typing or @JsonTypeInfo) and untrusted data is deserialized.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Remote code execution with the privileges of the application, potentially leading to complete system compromise.

🟠

Likely Case

Remote code execution allowing attackers to execute arbitrary commands on the server.

🟢

If Mitigated

No impact if applications don't deserialize untrusted data or have proper type filtering in place.

🌐 Internet-Facing: HIGH - Internet-facing applications deserializing user input are directly exploitable.
🏢 Internal Only: MEDIUM - Internal applications could be exploited through lateral movement or compromised internal users.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: MEDIUM

Exploitation requires specific conditions but public PoCs exist. Attackers need to craft malicious JSON payloads targeting the MethodLocatingFactoryBean gadget.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.9.10.4 or later

Vendor Advisory: https://github.com/FasterXML/jackson-databind/issues/2680

Restart Required: Yes

Instructions:

1. Update jackson-databind dependency to version 2.9.10.4 or later. 2. Update pom.xml or build.gradle to use patched version. 3. Rebuild and redeploy application. 4. Restart affected services.

🔧 Temporary Workarounds

Disable default typing

all

Disable polymorphic type handling (default typing) in ObjectMapper configuration

ObjectMapper mapper = new ObjectMapper();
mapper.activateDefaultTyping(null); // Disable default typing

Enable global default typing blacklist

all

Configure ObjectMapper to use the global default typing blacklist

ObjectMapper mapper = new ObjectMapper();
mapper.activateDefaultTyping(mapper.getPolymorphicTypeValidator(), ObjectMapper.DefaultTyping.NON_FINAL);

🧯 If You Can't Patch

  • Implement strict input validation and sanitization for all JSON input
  • Use a Web Application Firewall (WAF) with deserialization attack detection rules

🔍 How to Verify

Check if Vulnerable:

Check pom.xml, build.gradle, or dependency manifest for jackson-databind version. If version is 2.x and < 2.9.10.4, you are vulnerable if using polymorphic type handling.

Check Version:

mvn dependency:tree | grep jackson-databind OR gradle dependencies | grep jackson-databind

Verify Fix Applied:

Verify jackson-databind version is 2.9.10.4 or later in dependencies and rebuild/redeploy application.

📡 Detection & Monitoring

Log Indicators:

  • Unusual Java class loading errors
  • Exceptions related to MethodLocatingFactoryBean or deserialization
  • Unexpected process spawning

Network Indicators:

  • Malformed JSON payloads containing Java class references
  • Requests with unusual content types or structures

SIEM Query:

source="application.logs" AND ("MethodLocatingFactoryBean" OR "deserialization" OR "jackson") AND severity=ERROR

🔗 References

📤 Share & Export