Bug 1758187 (CVE-2019-16942) - CVE-2019-16942 jackson-databind: Serialization gadgets in classes of the commons-dbcp package
Summary: CVE-2019-16942 jackson-databind: Serialization gadgets in classes of the comm...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2019-16942
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1760295 1762572 1758188 1760296 1762564 1762566 1762567 1762568 1762569 1762570 1762571 1781719
Blocks: 1758190
TreeView+ depends on / blocked
 
Reported: 2019-10-03 13:52 UTC by Pedro Sampaio
Modified: 2020-03-23 13:20 UTC (History)
108 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was discovered in FasterXML jackson-databind, where it would permit polymorphic deserialization of malicious objects using the commons-dbcp gadget when used in conjunction with polymorphic type handling methods such as `enableDefaultTyping()` or when @JsonTypeInfo is using `Id.CLASS` or `Id.MINIMAL_CLASS` or in any other way which ObjectMapper.readValue might instantiate objects from unsafe sources. An attacker could use this flaw to execute arbitrary code.
Clone Of:
Environment:
Last Closed: 2019-11-18 18:51:17 UTC


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:3901 None None None 2019-11-18 14:41:11 UTC
Red Hat Product Errata RHSA-2020:0159 None None None 2020-01-21 02:56:37 UTC
Red Hat Product Errata RHSA-2020:0160 None None None 2020-01-21 03:46:45 UTC
Red Hat Product Errata RHSA-2020:0161 None None None 2020-01-21 03:21:58 UTC
Red Hat Product Errata RHSA-2020:0164 None None None 2020-01-21 02:24:03 UTC
Red Hat Product Errata RHSA-2020:0445 None None None 2020-02-06 08:36:06 UTC
Red Hat Product Errata RHSA-2020:0895 None None None 2020-03-18 14:52:19 UTC
Red Hat Product Errata RHSA-2020:0899 None None None 2020-03-18 17:37:21 UTC
Red Hat Product Errata RHSA-2020:0939 None None None 2020-03-23 13:20:54 UTC

Description Pedro Sampaio 2019-10-03 13:52:26 UTC
A Polymorphic Typing issue was discovered in FasterXML jackson-databind 2.0.0 through 2.9.10. When Default Typing is enabled (either globally or for a specific property) for an externally exposed JSON endpoint and the service has the commons-dbcp (1.4) jar in the classpath, and an attacker can find an RMI service endpoint to access, it is possible to make the service execute a malicious payload. This issue exists because of org.apache.commons.dbcp.datasources.SharedPoolDataSource and org.apache.commons.dbcp.datasources.PerUserPoolDataSource mishandling.

Upstream issue:

https://github.com/FasterXML/jackson-databind/issues/2478

Upstream patch:

https://github.com/FasterXML/jackson-databind/commit/bc67eb11a7cf57561f861ff16f879f1fceb5779f
https://github.com/FasterXML/jackson-databind/commit/328a0f833daf6baa443ac3b37c818a0204714b0b
https://github.com/FasterXML/jackson-databind/commit/54aa38d87dcffa5ccc23e64922e9536c82c1b9c8

References:

https://medium.com/@cowtowncoder/on-jackson-cves-dont-panic-here-is-what-you-need-to-know-54cd0d6e8062

Comment 1 Pedro Sampaio 2019-10-03 13:52:48 UTC
Created jackson-databind tracking bugs for this issue:

Affects: fedora-all [bug 1758188]

Comment 7 Anten Skrabec 2019-10-29 21:38:44 UTC
Statement:

Satellite 6 does not enable polymorphic unmarshmalling, which is a required configuration for the vulnerability to be used. We may update the jackson-databind dependency in a future release.

Red Hat OpenStack Platform ships OpenDaylight, which contains the vulnerable jackson-databind. However, OpenDaylight does not expose jackson-databind in a way that would make it vulnerable, lowering the impact of the vulnerability for OpenDaylight. As such, Red Hat will not be providing a fix for OpenDaylight at this time.

Comment 8 errata-xmlrpc 2019-11-18 14:41:07 UTC
This issue has been addressed in the following products:

  Red Hat Openshift Application Runtimes Vert.x 3.8.3

Via RHSA-2019:3901 https://access.redhat.com/errata/RHSA-2019:3901

Comment 9 Product Security DevOps Team 2019-11-18 18:51:17 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2019-16942

Comment 10 Paramvir jindal 2019-11-19 12:18:26 UTC
Marking RHSSO as affected fix because the fix version seems to be greater than jackson-databind 2.9.10 and RHSSO 7.3.4 (latest as of today) ships
jackson-databind-2.9.9.3-redhat-00001.jar.

Comment 15 Kunjan Rathod 2019-12-06 00:17:31 UTC
This vulnerability is out of security support scope for the following products:
 * Red Hat JBoss BPMS 6
 * Red Hat JBoss Data Virtualization & Services 6


Please refer to https://access.redhat.com/support/policy/updates/jboss_notes for more details.

Comment 18 errata-xmlrpc 2020-01-21 02:23:59 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Enterprise Application Platform

Via RHSA-2020:0164 https://access.redhat.com/errata/RHSA-2020:0164

Comment 19 errata-xmlrpc 2020-01-21 02:56:34 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Enterprise Application Platform 7.2 for RHEL 6

Via RHSA-2020:0159 https://access.redhat.com/errata/RHSA-2020:0159

Comment 20 errata-xmlrpc 2020-01-21 03:21:55 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Enterprise Application Platform 7.2 for RHEL 8

Via RHSA-2020:0161 https://access.redhat.com/errata/RHSA-2020:0161

Comment 21 errata-xmlrpc 2020-01-21 03:46:42 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Enterprise Application Platform 7.2 for RHEL 7

Via RHSA-2020:0160 https://access.redhat.com/errata/RHSA-2020:0160

Comment 22 errata-xmlrpc 2020-02-06 08:35:56 UTC
This issue has been addressed in the following products:

  Red Hat Single Sign-On

Via RHSA-2020:0445 https://access.redhat.com/errata/RHSA-2020:0445

Comment 23 Jonathan Christison 2020-02-28 15:01:50 UTC
Mitigation:

The following conditions are needed for an exploit, we recommend avoiding all if possible
* Deserialization from sources you do not control
* `enableDefaultTyping()`
* `@JsonTypeInfo using `id.CLASS` or `id.MINIMAL_CLASS`

Comment 24 errata-xmlrpc 2020-03-18 14:52:13 UTC
This issue has been addressed in the following products:

  Red Hat Process Automation

Via RHSA-2020:0895 https://access.redhat.com/errata/RHSA-2020:0895

Comment 25 errata-xmlrpc 2020-03-18 17:37:15 UTC
This issue has been addressed in the following products:

  Red Hat Decision Manager

Via RHSA-2020:0899 https://access.redhat.com/errata/RHSA-2020:0899

Comment 26 errata-xmlrpc 2020-03-23 13:20:49 UTC
This issue has been addressed in the following products:

  Red Hat JBoss AMQ

Via RHSA-2020:0939 https://access.redhat.com/errata/RHSA-2020:0939


Note You need to log in before you can comment on or make changes to this bug.