CVE-2020-35490: Serialization gadgets exploit in jackson-databind

Summary

09/12/2021
Yes i
High
8.1

CVE-2020-35490: Serialization gadgets exploit in jackson-databind. Affects com.fasterxml.jackson.core:jackson-databind versions >= 2.0.0, < 2.9.10.8. Fixed in 2.9.10.8. How to fix ↓

Also tracked for

The same CVE-2020-35490 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The jackson-databind package is a popular Java library for serializing and deserializing JSON data. It provides functionality for converting Java objects to JSON and vice versa. This vulnerability affects versions 2.x before 2.9.10.8 of the package. The vulnerability arises from mishandling the interaction between serialization gadgets and typing, specifically related to the org.apache.commons.dbcp2.datasources.PerUserPoolDataSource class.

Vulnerability Detail

The vulnerability in jackson-databind allows for potential remote code execution attacks. By exploiting the mishandling of serialization gadgets and typing, an attacker can craft a malicious JSON payload that, when deserialized by an application using the vulnerable version of jackson-databind, can lead to arbitrary code execution. This can result in unauthorized access, data breaches, and other malicious activities.

How To Fix

Minimum fixed version

2.9.10.8

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a workaround, if upgrading to the latest version is not immediately feasible, developers can consider implementing input validation and sanitization measures to mitigate the risk of deserializing untrusted JSON payloads. This can involve implementing custom deserialization logic or using alternative JSON parsing libraries that are not affected by this vulnerability.

Conclusion

The vulnerability in jackson-databind can lead to remote code execution attacks and should be addressed promptly. Upgrading to the latest secure version or implementing appropriate input validation measures are recommended. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for com.fasterxml.jackson.core:jackson-databind →

Share this vulnerability

FAQ

Jackson-databind is a Java library for serializing and deserializing JSON data. It provides functionality for converting Java objects to JSON and vice versa.

This vulnerability can lead to remote code execution attacks, allowing an attacker to execute arbitrary code on a target system. This can result in unauthorized access, data breaches, and other malicious activities.

To fix this vulnerability, it is recommended to upgrade the jackson-databind package to version 2.9.10.8 or later. This version includes the necessary fixes to address the serialization gadget exploit.

If upgrading to the latest version is not immediately feasible, developers can consider implementing input validation and sanitization measures to mitigate the risk of deserializing untrusted JSON payloads.

Yes, the CVSS score for this vulnerability is 8.1, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for com.fasterxml.jackson.core:jackson-databind.

How To Fix

Minimum fixed version

2.9.10.8

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback