CVE-2019-17531

9.8 CRITICAL

📋 TL;DR

This vulnerability allows remote code execution via Java deserialization in Jackson databind when Default Typing is enabled and the apache-log4j-extra library is present. Attackers can exploit JNDI injection to execute arbitrary code on affected systems. Organizations using Jackson databind 2.0.0 through 2.9.10 with vulnerable configurations are at risk.

💻 Affected Systems

Products:
  • FasterXML jackson-databind
Versions: 2.0.0 through 2.9.10
Operating Systems: All operating systems running Java
Default Config Vulnerable: ✅ No
Notes: Requires Default Typing enabled (globally or per property) AND apache-log4j-extra 1.2.x in classpath AND ability to reach attacker-controlled JNDI service

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full system compromise allowing attackers to execute arbitrary code, steal data, install malware, or pivot to other systems.

🟠

Likely Case

Remote code execution leading to data exfiltration, service disruption, or lateral movement within the network.

🟢

If Mitigated

Limited impact with proper network segmentation, minimal privileges, and security controls preventing successful exploitation.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploitation requires specific configuration conditions but has been weaponized in real attacks

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.9.10.1 or later

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

Restart Required: Yes

Instructions:

1. Update jackson-databind to version 2.9.10.1 or later. 2. Remove apache-log4j-extra 1.2.x from classpath if not needed. 3. Restart affected applications.

🔧 Temporary Workarounds

Disable Default Typing

all

Disable Default Typing configuration in Jackson databind to prevent polymorphic deserialization

Configure ObjectMapper with disableDefaultTyping() or avoid @JsonTypeInfo annotations

Remove vulnerable dependency

all

Remove apache-log4j-extra 1.2.x from classpath if not required

Remove log4j-extras-1.2.x.jar from application classpath

🧯 If You Can't Patch

  • Implement strict network controls to block outbound LDAP/RMI connections from affected systems
  • Apply the Java property 'com.sun.jndi.ldap.object.trustURLCodebase=false' to disable remote codebase loading

🔍 How to Verify

Check if Vulnerable:

Check application dependencies for jackson-databind versions 2.0.0-2.9.10 and log4j-extras 1.2.x presence

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.1+ and log4j-extras is removed or updated

📡 Detection & Monitoring

Log Indicators:

  • JNDI lookup attempts
  • Unexpected class loading
  • Deserialization errors

Network Indicators:

  • Outbound LDAP/RMI connections to suspicious IPs
  • Unusual Java serialization traffic

SIEM Query:

source="application.log" AND ("JNDI" OR "lookup" OR "InitialContext")

🔗 References

📤 Share & Export