PT-2019-4182 · Apache+7 · Commons-Dbcp+7

Published

2017-11-01

·

Updated

2025-01-28

·

CVE-2019-16942

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions FasterXML jackson-databind versions 2.0.0 through 2.9.10
Description A Polymorphic Typing issue exists in the jackson-databind library. When Default Typing is enabled for an externally exposed JSON endpoint and the service has the commons-dbcp jar in the classpath, an attacker can exploit this issue to execute a malicious payload by accessing an RMI service endpoint. This is possible due to the mishandling of org.apache.commons.dbcp.datasources.SharedPoolDataSource and org.apache.commons.dbcp.datasources.PerUserPoolDataSource. The issue is related to insufficient input data validation, allowing a remote attacker to gain unauthorized access to information or cause a denial of service.
Recommendations For FasterXML jackson-databind versions 2.0.0 through 2.9.10, consider disabling the Default Typing feature for externally exposed JSON endpoints as a temporary workaround until a patch is available. Restrict access to the org.apache.commons.dbcp.datasources.SharedPoolDataSource and org.apache.commons.dbcp.datasources.PerUserPoolDataSource classes to minimize the risk of exploitation. Avoid using the commons-dbcp jar in the classpath if possible, to reduce the attack surface. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

RCE

Information Disclosure

Deserialization of Untrusted Data

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2020:1644
ALT-PU-2017-2557
ALT-PU-2021-1792
BDU:2019-04776
BDU:2019-04778
CESA-2020_1644
CVE-2019-16942
DLA-1943-1
DSA-4542-1
GHSA-MX7P-6679-8G3Q
MGASA-2021-0153
OPENSUSE-SU-2024:10868-1
RHSA-2020:0159
RHSA-2020:0160
RHSA-2020:0161
RHSA-2020:1644
RHSA-2020_1644
RLSA-2020:1644
ROSA-SA-2025-2629
USN-4813-1

Affected Products

Alt Linux
Almalinux
Centos
Red Hat
Rocky Linux
Ubuntu
Commons-Dbcp
Jackson-Databind