CVE-2020-11113

8.8 HIGH

📋 TL;DR

This is a deserialization vulnerability in FasterXML jackson-databind that allows remote code execution when processing untrusted JSON content. It affects applications using jackson-databind 2.x before 2.9.10.4 with default polymorphic typing enabled. The vulnerability exploits interaction between serialization gadgets and the openjpa library.

💻 Affected Systems

Products:
  • FasterXML jackson-databind
  • Applications using jackson-databind for JSON processing
  • Apache OpenJPA integration
Versions: 2.x before 2.9.10.4
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Requires polymorphic typing to be enabled (defaultObjectMapper.enableDefaultTyping() or similar). Applications using openjpa are particularly vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Remote attacker achieves full system compromise and arbitrary code execution on the vulnerable server.

🟠

Likely Case

Remote code execution leading to data theft, system takeover, or lateral movement within the network.

🟢

If Mitigated

Denial of service or application crash if exploit fails, but RCE remains primary risk.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploits require sending specially crafted JSON to vulnerable endpoints. Multiple proof-of-concepts exist in security research.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.9.10.4 or later

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

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 polymorphic typing

all

Disable default typing features in ObjectMapper configuration

ObjectMapper mapper = new ObjectMapper();
// Do NOT call mapper.enableDefaultTyping()

Block openjpa classes

all

Add openjpa to the list of blocked deserialization classes

mapper.addMixIn(Object.class, MyMixInForIgnoreType.class);

🧯 If You Can't Patch

  • Implement strict input validation and sanitization for all JSON inputs
  • Deploy WAF rules to block malicious JSON payloads containing openjpa references

🔍 How to Verify

Check if Vulnerable:

Check pom.xml, build.gradle, or dependency manifest for jackson-databind version <2.9.10.4

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 higher in dependency files

📡 Detection & Monitoring

Log Indicators:

  • Java exceptions mentioning org.apache.openjpa
  • Deserialization errors in application logs
  • Unexpected class loading attempts

Network Indicators:

  • HTTP requests with JSON payloads containing openjpa class references
  • Unusual outbound connections from application server

SIEM Query:

source="application.log" AND ("openjpa" OR "deserialization" OR "ClassNotFoundException")

🔗 References

📤 Share & Export