GHSA-6fpp-rgj9-8rwc CVE-2019-14379
Deserialization of untrusted data in FasterXML jackson-databind
- Severity
- 9.8 / 10
- Critical · CVSS 3.1
- Exploit chance (EPSS)
- 8.11%
- Chance of exploitation in the next 30 days. Higher than 94.83% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-1321 Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
- CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes
- Fix
2.9.9.2- Upgrade com.fasterxml.jackson.core:jackson-databind to this version or later
Description
SubTypeValidator.java in FasterXML jackson-databind before 2.9.9.2, 2.8.11.4, and 2.7.9.6 mishandles default typing when ehcache is used (because of net.sf.ehcache.transaction.manager.DefaultTransactionManagerLookup), leading to remote code execution.
Affected versions
Maven
| Package | Vulnerable | Fixed in |
|---|---|---|
| com.fasterxml.jackson.core:jackson-databind | >= 2.9.0, < 2.9.9.2 |
2.9.9.2 |
| com.fasterxml.jackson.core:jackson-databind | >= 2.8.0, < 2.8.11.4 |
2.8.11.4 |
| com.fasterxml.jackson.core:jackson-databind | < 2.7.9.6 |
2.7.9.6 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
com.fasterxml.jackson.core:jackson-databind Maven → 2.9.9.2
- maven
<dependency><groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-databind</artifactId><version>2.9.9.2</version></dependency>- gradle
implementation("com.fasterxml.jackson.core:jackson-databind:2.9.9.2")
Severity breakdown
CVSS 3.1 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Weakness
CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.
How to prevent it
- Implementation: By freezing the object prototype first (for example, Object.freeze(Object.prototype)), modification of the prototype becomes impossible.
- Architecture and Design: By blocking modifications of attributes that resolve to object prototype, such as proto or prototype, this weakness can be mitigated.
- Implementation: When handling untrusted objects, validating using a schema can be used.
- Implementation: By using an object without prototypes (via Object.create(null) ), adding object prototype attributes by accessing the prototype via the special attributes becomes impossible, mitigating this weakness.
- Implementation: Map can be used instead of objects in most cases. If Map methods are used instead of object attributes, it is not possible to access the object prototype or modify it.
CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes
The product receives input from an upstream component that specifies multiple attributes, properties, or fields that are to be initialized or updated in an object, but it does not properly control which attributes can be modified.
How to prevent it
- Implementation: If available, use features of the language or framework that allow specification of allowlists of attributes or fields that are allowed to be modified. If possible, prefer allowlists over denylists. For applications written with Ruby on Rails, use the attr_accessible (allowlist) or attr_protected (denylist) macros in each class that may be used in mass assignment.
- Architecture and Design, Implementation: If available, use the signing/sealing features of the programming language to assure that deserialized data has not been tainted. For example, a hash-based message authentication code (HMAC) could be used to ensure that data has not been modified.
- Implementation: For any externally-influenced input, check the input against an allowlist of internal object attributes or fields that are allowed to be modified.
- Implementation, Architecture and Design: Refactor the code so that object attributes or fields do not need to be dynamically identified, and only expose getter/setter functionality for the intended attributes.
References
Advisories
Packages
Other links
- github.com/FasterXML/jackson-databind/issues/2387
- github.com/FasterXML/jackson-databind/commit/ad418eeb974e357f2797aef64aa0e3ffaa…
- lists.apache.org/thread.html/f17f63b0f8a57e4a5759e01d25cffc0548f0b61ff5c6bfd704ad2f2a…
- lists.apache.org/thread.html/ee0a051428d2c719acfa297d0854a189ea5e284ef3ed491fa672f4be…
- lists.apache.org/thread.html/e25e734c315f70d8876a846926cfe3bfa1a4888044f146e844caf72f…
- lists.apache.org/thread.html/d161ff3d59c5a8213400dd6afb1cce1fac4f687c32d1e0c0bfbfaa2d…
- lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442…
- lists.apache.org/thread.html/99944f86abefde389da9b4040ea2327c6aa0b53a2ff9352bd4cfec17…
- lists.apache.org/thread.html/940b4c3fef002461b89a050935337056d4a036a65ef68e0bbd4621ef…
- lists.apache.org/thread.html/87e46591de8925f719664a845572d184027258c5a7af0a471b53c77b…
- lists.apache.org/thread.html/8723b52c2544e6cb804bc8a36622c584acd1bd6c53f2b6034c9fea54…
- lists.apache.org/thread.html/859815b2e9f1575acbb2b260b73861c16ca49bca627fa0c46419051f…
- lists.apache.org/thread.html/75f482fdc84abe6d0c8f438a76437c335a7bbeb5cddd4d70b4bc0cbf…
- lists.apache.org/thread.html/689c6bcc6c7612eee71e453a115a4c8581e7b718537025d4b265783d…
- lists.apache.org/thread.html/6788e4c991f75b89d290ad06b463fcd30bcae99fee610345a35b7bc6…
- access.redhat.com/errata/RHBA-2019:2824
- lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc…
- lists.apache.org/thread.html/r1b103833cb5bc8466e24ff0ecc5e75b45a705334ab6a444e64e840a…
- lists.apache.org/thread.html/rf1bbc0ea4a9f014cf94df9a12a6477d24a27f52741dbc87f2fd52ff…
- lists.debian.org/debian-lts-announce/2019/08/msg00011.html
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OVRZD…
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TXRVX…
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UKUAL…
- security.netapp.com/advisory/ntap-20190814-0001
- support.apple.com/kb/HT213189
- oracle.com/security-alerts/cpuApr2021.html
- oracle.com/security-alerts/cpuapr2020.html
- oracle.com/security-alerts/cpujan2020.html
- oracle.com/security-alerts/cpujul2020.html
- oracle.com/security-alerts/cpuoct2020.html
- oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html
- access.redhat.com/errata/RHSA-2019:2743
- access.redhat.com/errata/RHSA-2019:2858
- access.redhat.com/errata/RHSA-2019:2935
- access.redhat.com/errata/RHSA-2019:2936
- access.redhat.com/errata/RHSA-2019:2937
- access.redhat.com/errata/RHSA-2019:2938
- access.redhat.com/errata/RHSA-2019:2998
- access.redhat.com/errata/RHSA-2019:3044
- access.redhat.com/errata/RHSA-2019:3045
- access.redhat.com/errata/RHSA-2019:3046
- access.redhat.com/errata/RHSA-2019:3050
- access.redhat.com/errata/RHSA-2019:3149
- access.redhat.com/errata/RHSA-2019:3200
- access.redhat.com/errata/RHSA-2019:3292
- access.redhat.com/errata/RHSA-2019:3297
- access.redhat.com/errata/RHSA-2019:3901
- access.redhat.com/errata/RHSA-2020:0727
- github.com/FasterXML/jackson-databind/compare/jackson-databind-2.9.9.1...jackso…
- lists.apache.org/thread.html/0d4b630d9ee724aee50703397d9d1afa2b2befc9395ba7797d0ccea9…
- lists.apache.org/thread.html/0fcef7321095ce0bc597d468d150cff3d647f4cb3aef3bd4d20e1c69…
- lists.apache.org/thread.html/2766188be238a446a250ef76801037d452979152d85bce5e46805815…
- lists.apache.org/thread.html/2d2a76440becb610b9a9cb49b15eac3934b02c2dbcaacde1000353e4…
- lists.apache.org/thread.html/34717424b4d08b74f65c09a083d6dd1cb0763f37a15d6de135998c1d…
- lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f…
- lists.apache.org/thread.html/525bcf949a4b0da87a375cbad2680b8beccde749522f24c49befe7fb…
- lists.apache.org/thread.html/56c8042873595b8c863054c7bfccab4bf2c01c6f5abedae249d914b9…
- lists.apache.org/thread.html/5ecc333113b139429f4f05000d4aa2886974d4df3269c1dd990bb319…
- lists.apache.org/thread.html/5fc0e16b7af2590bf1e97c76c136291c4fdb244ee63c65c485c9a7a1…
- seclists.org/fulldisclosure/2022/Mar/23
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-cxp5-3px4-pw24 jackson-databind quadratic forward-reference completion | High | Also affects com.fasterxml.jackson.core:jackson-databind |
| GHSA-wv8q-qhhj-9h54 jackson-databind retains every unknown raw type ID | High | Also affects com.fasterxml.jackson.core:jackson-databind |
| GHSA-q4xh-88c3-wmh7 jackson-databind: Duration XMLGregorianCalendar Unbounded Number Parse DoS | High | Also affects com.fasterxml.jackson.core:jackson-databind |
| GHSA-gx83-3vf8-gh7j jackson-databind: Comparable missing from DefaultBaseTypeLimitingValidator's unsafe base types (incomplete PolymorphicTypeValidator denylist) | Medium | Also affects com.fasterxml.jackson.core:jackson-databind |
| GHSA-wjgm-6hv5-3cvf jackson-databind: Path Deserialization Missing Scheme Allowlist for FileSystemProvider Resolution | Medium | Also affects com.fasterxml.jackson.core:jackson-databind |
| GHSA-vvgp-rfg2-7rr6 jackson-databind: Incomplete fix for CVE-2026-54514: eager DNS resolution (SSRF) still present in InetAddress deserialization | Medium | Also affects com.fasterxml.jackson.core:jackson-databind |
| GHSA-mhm7-754m-9p8w jackson-databind: `@JsonView` bypass for creator properties with `@JsonTypeInfo(include=As.EXTERNAL_PROPERTY)` | Medium | Also affects com.fasterxml.jackson.core:jackson-databind |
| GHSA-5gvw-p9qm-jgwh jackson-databind: @JsonView bypassed for @JsonUnwrapped container properties on deserialization | Medium | Also affects com.fasterxml.jackson.core:jackson-databind |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor