Vulnerabilities

3 via 9 paths

Dependencies

23

Source

GitHub

Commit

2c0cd873

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 3
  • 1
Severity
  • 2
  • 2
Status
  • 4
  • 0
  • 0

high severity

Denial of Service (DoS)

  • Vulnerable module: com.fasterxml.jackson.core:jackson-core
  • Introduced through: com.fasterxml.jackson.core:jackson-core@2.12.6.redhat-00001, com.fasterxml.jackson.core:jackson-databind@2.17.1 and others

Detailed paths

  • Introduced through: project-ncl/build-finder@project-ncl/build-finder#2c0cd8734c99ecc18a19e95aeee172189d686d50 com.fasterxml.jackson.core:jackson-core@2.12.6.redhat-00001
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-core@2.15.0.
  • Introduced through: project-ncl/build-finder@project-ncl/build-finder#2c0cd8734c99ecc18a19e95aeee172189d686d50 com.fasterxml.jackson.core:jackson-databind@2.17.1 com.fasterxml.jackson.core:jackson-core@2.12.6.redhat-00001
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.17.1.
  • Introduced through: project-ncl/build-finder@project-ncl/build-finder#2c0cd8734c99ecc18a19e95aeee172189d686d50 org.jboss.pnc:dto@3.1.5 org.jboss.pnc:pnc-api@3.2.4 com.fasterxml.jackson.core:jackson-databind@2.17.1 com.fasterxml.jackson.core:jackson-core@2.12.6.redhat-00001

Overview

com.fasterxml.jackson.core:jackson-core is a Core Jackson abstractions, basic JSON streaming API implementation

Affected versions of this package are vulnerable to Denial of Service (DoS) due to missing input size validation when performing numeric type conversions. A remote attacker can exploit this vulnerability by causing the application to deserialize data containing certain numeric types with large values, causing the application to exhaust all available resources.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade com.fasterxml.jackson.core:jackson-core to version 2.15.0-rc1 or higher.

References

high severity

Stack-based Buffer Overflow

  • Vulnerable module: com.fasterxml.jackson.core:jackson-core
  • Introduced through: com.fasterxml.jackson.core:jackson-core@2.12.6.redhat-00001, com.fasterxml.jackson.core:jackson-databind@2.17.1 and others

Detailed paths

  • Introduced through: project-ncl/build-finder@project-ncl/build-finder#2c0cd8734c99ecc18a19e95aeee172189d686d50 com.fasterxml.jackson.core:jackson-core@2.12.6.redhat-00001
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-core@2.15.0.
  • Introduced through: project-ncl/build-finder@project-ncl/build-finder#2c0cd8734c99ecc18a19e95aeee172189d686d50 com.fasterxml.jackson.core:jackson-databind@2.17.1 com.fasterxml.jackson.core:jackson-core@2.12.6.redhat-00001
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.17.1.
  • Introduced through: project-ncl/build-finder@project-ncl/build-finder#2c0cd8734c99ecc18a19e95aeee172189d686d50 org.jboss.pnc:dto@3.1.5 org.jboss.pnc:pnc-api@3.2.4 com.fasterxml.jackson.core:jackson-databind@2.17.1 com.fasterxml.jackson.core:jackson-core@2.12.6.redhat-00001

Overview

com.fasterxml.jackson.core:jackson-core is a Core Jackson abstractions, basic JSON streaming API implementation

Affected versions of this package are vulnerable to Stack-based Buffer Overflow due to the parse process, which accepts an unlimited input file with deeply nested data. An attacker can cause a stack overflow and crash the application by providing input files with excessively deep nesting.

Remediation

Upgrade com.fasterxml.jackson.core:jackson-core to version 2.15.0-rc1 or higher.

References

medium severity

Information Exposure

  • Vulnerable module: com.fasterxml.jackson.core:jackson-core
  • Introduced through: com.fasterxml.jackson.core:jackson-core@2.12.6.redhat-00001, com.fasterxml.jackson.core:jackson-databind@2.17.1 and others

Detailed paths

  • Introduced through: project-ncl/build-finder@project-ncl/build-finder#2c0cd8734c99ecc18a19e95aeee172189d686d50 com.fasterxml.jackson.core:jackson-core@2.12.6.redhat-00001
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-core@2.13.0.
  • Introduced through: project-ncl/build-finder@project-ncl/build-finder#2c0cd8734c99ecc18a19e95aeee172189d686d50 com.fasterxml.jackson.core:jackson-databind@2.17.1 com.fasterxml.jackson.core:jackson-core@2.12.6.redhat-00001
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.17.1.
  • Introduced through: project-ncl/build-finder@project-ncl/build-finder#2c0cd8734c99ecc18a19e95aeee172189d686d50 org.jboss.pnc:dto@3.1.5 org.jboss.pnc:pnc-api@3.2.4 com.fasterxml.jackson.core:jackson-databind@2.17.1 com.fasterxml.jackson.core:jackson-core@2.12.6.redhat-00001

Overview

com.fasterxml.jackson.core:jackson-core is a Core Jackson abstractions, basic JSON streaming API implementation

Affected versions of this package are vulnerable to Information Exposure due to the JsonLocation._appendSourceDesc method. An attacker can access up to 500 bytes of unintended memory content by exploiting exception messages that incorrectly read from the beginning of a byte array instead of the logical payload start.

Workaround

This vulnerability can be mitigated by disabling exception message exposure to clients to avoid returning parsing exception messages in HTTP responses and/or disabling source inclusion in exceptions to prevent Jackson from embedding any source content in exception messages, avoiding leakage.

PoC


byte[] buffer = new byte[1000];
System.arraycopy("SECRET".getBytes(), 0, buffer, 0, 6);
System.arraycopy("{ \"bad\": }".getBytes(), 0, buffer, 700, 10);

JsonFactory factory = new JsonFactory();
JsonParser parser = factory.createParser(buffer, 700, 20);
parser.nextToken(); // throws exception

// Exception message will include "SECRET"

Remediation

Upgrade com.fasterxml.jackson.core:jackson-core to version 2.13.0-rc1 or higher.

References

medium severity

EPL-1.0 license

  • Module: junit:junit
  • Introduced through: junit:junit@4.13.2

Detailed paths

  • Introduced through: project-ncl/build-finder@project-ncl/build-finder#2c0cd8734c99ecc18a19e95aeee172189d686d50 junit:junit@4.13.2

EPL-1.0 license