Description Preview
Overview
The vulnerability affects the jackson-databind library, a popular Java data-binding package that is part of the Jackson JSON processor. The issue stems from an incomplete fix for a previous deserialization vulnerability (CVE-2017-7525). The core problem relates to unsafe deserialization when the defaultTyping feature is enabled, allowing attackers to execute arbitrary code on the affected system.
The vulnerability is particularly dangerous because it can be exploited when Spring libraries are available in the classpath, which is common in many Java applications. When these conditions are met, an attacker can craft malicious JSON input that bypasses the existing blacklist protections and triggers remote code execution when the application attempts to deserialize the data using the ObjectMapper's readValue method.
Remediation
To remediate this vulnerability, take the following actions:
-
Update jackson-databind to a patched version:
- For 2.8.x series: Update to 2.8.11 or later
- For 2.9.x series: Update to 2.9.4 or later
-
If immediate updating is not possible, implement one of these mitigations:
- Disable the defaultTyping feature in ObjectMapper if it's not strictly required
- Implement a custom deserializer that validates input before processing
- Apply strict input validation before passing JSON to the ObjectMapper
- Consider using ObjectMapper's enableDefaultTyping method with more restrictive settings
-
Review your application for any instances where user-controlled input is passed to ObjectMapper.readValue() and ensure proper validation is in place.
-
If you're using dependency management tools like Maven or Gradle, update your dependencies to ensure you're using secure versions.
References
- GitHub issue tracking the vulnerability: https://github.com/FasterXML/jackson-databind/issues/1855
- Technical analysis and exploit demonstration: https://github.com/irsl/jackson-rce-via-spel/
- NetApp security advisory: https://security.netapp.com/advisory/ntap-20180201-0003/
- Red Hat security advisories:
- https://access.redhat.com/errata/RHSA-2018:0116
- https://access.redhat.com/errata/RHSA-2018:0342
- Debian security advisory: https://www.debian.org/security/2018/dsa-4114
- Oracle security advisory: https://www.oracle.com/security-alerts/cpuoct2020.html
- HPE security bulletin: https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbhf03902en_us
Industry ExposureMost to leastThis section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.
- ManufacturingManufacturing
- Public AdministrationPublic Administration
- Professional, Scientific, & Technical ServicesProfessional, Scientific, & Technical Services
- Retail TradeRetail Trade
- Finance and InsuranceFinance and Insurance
- Health Care & Social AssistanceHealth Care & Social Assistance
- Arts, Entertainment & RecreationArts, Entertainment & Recreation
- Management of Companies & EnterprisesManagement of Companies & Enterprises
- Other Services (except Public Administration)Other Services (except Public Administration)
- Transportation & WarehousingTransportation & Warehousing
- Educational ServicesEducational Services
- Accommodation & Food ServicesAccommodation & Food Services
- Administrative, Support, Waste Management & Remediation ServicesAdministrative, Support, Waste Management & Remediation Services
- Agriculture, Forestry Fishing & HuntingAgriculture, Forestry Fishing & Hunting
- ConstructionConstruction
- InformationInformation
- MiningMining
- Real Estate Rental & LeasingReal Estate Rental & Leasing
- UtilitiesUtilities
- Wholesale TradeWholesale Trade