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
| Vector | AV: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 👾
Related Identifiers
Affected Products
Alt Linux
Almalinux
Centos
Red Hat
Rocky Linux
Ubuntu
Commons-Dbcp
Jackson-Databind