Vulnerabilities

4 via 7 paths

Dependencies

20

Source

GitHub

Commit

2cc731f2

Find, fix and prevent vulnerabilities in your code.

Severity
  • 2
  • 2
Status
  • 4
  • 0
  • 0

high severity

Denial of Service (DoS)

  • Vulnerable module: com.fasterxml.jackson.core:jackson-core
  • Introduced through: com.arangodb:arangodb-java-driver-async@5.0.4

Detailed paths

  • Introduced through: acme-software/arangodb-scala-driver@acme-software/arangodb-scala-driver#2cc731f29ed1c32a3821d9b1dec0c8abc1972428 com.arangodb:arangodb-java-driver-async@5.0.4 com.arangodb:arangodb-java-driver@5.0.4 com.arangodb:velocypack@1.4.1 com.fasterxml.jackson.core:jackson-core@2.9.5
  • Introduced through: acme-software/arangodb-scala-driver@acme-software/arangodb-scala-driver#2cc731f29ed1c32a3821d9b1dec0c8abc1972428 com.arangodb:arangodb-java-driver-async@5.0.4 com.arangodb:velocypack-module-jdk8@1.0.2 com.arangodb:velocypack@1.4.1 com.fasterxml.jackson.core:jackson-core@2.9.5

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.arangodb:arangodb-java-driver-async@5.0.4

Detailed paths

  • Introduced through: acme-software/arangodb-scala-driver@acme-software/arangodb-scala-driver#2cc731f29ed1c32a3821d9b1dec0c8abc1972428 com.arangodb:arangodb-java-driver-async@5.0.4 com.arangodb:arangodb-java-driver@5.0.4 com.arangodb:velocypack@1.4.1 com.fasterxml.jackson.core:jackson-core@2.9.5
  • Introduced through: acme-software/arangodb-scala-driver@acme-software/arangodb-scala-driver#2cc731f29ed1c32a3821d9b1dec0c8abc1972428 com.arangodb:arangodb-java-driver-async@5.0.4 com.arangodb:velocypack-module-jdk8@1.0.2 com.arangodb:velocypack@1.4.1 com.fasterxml.jackson.core:jackson-core@2.9.5

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

Denial of Service (DoS)

  • Vulnerable module: org.typelevel:jawn-parser_2.12
  • Introduced through: io.circe:circe-parser_2.12@0.11.1

Detailed paths

  • Introduced through: acme-software/arangodb-scala-driver@acme-software/arangodb-scala-driver#2cc731f29ed1c32a3821d9b1dec0c8abc1972428 io.circe:circe-parser_2.12@0.11.1 io.circe:circe-jawn_2.12@0.11.1 org.typelevel:jawn-parser_2.12@0.14.1
    Remediation: Upgrade to io.circe:circe-parser_2.12@0.14.2.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS). Extenders of the org.typelevel.jawn.SimpleFacade and org.typelevel.jawn.MutableFacade who don't override objectContext() are vulnerable to a hash collision attack. Most applications do not implement these traits directly, but inherit from a library.

For users unable to upgrade, override objectContext() to use a collision-safe collection.

Note - Unaffected implementations include: io.argonaut:argonaut-jawn io.circe:circe-parser org.typelevel:jawn-ast (>= 0.8.0) org.typelevel:jawn-json4s (discontinued) org.typelevel:jawn-argonaut (discontinued)

Remediation

Upgrade org.typelevel:jawn-parser_2.12 to version 1.3.2 or higher.

References

medium severity

Information Exposure

  • Vulnerable module: com.fasterxml.jackson.core:jackson-core
  • Introduced through: com.arangodb:arangodb-java-driver-async@5.0.4

Detailed paths

  • Introduced through: acme-software/arangodb-scala-driver@acme-software/arangodb-scala-driver#2cc731f29ed1c32a3821d9b1dec0c8abc1972428 com.arangodb:arangodb-java-driver-async@5.0.4 com.arangodb:arangodb-java-driver@5.0.4 com.arangodb:velocypack@1.4.1 com.fasterxml.jackson.core:jackson-core@2.9.5
  • Introduced through: acme-software/arangodb-scala-driver@acme-software/arangodb-scala-driver#2cc731f29ed1c32a3821d9b1dec0c8abc1972428 com.arangodb:arangodb-java-driver-async@5.0.4 com.arangodb:velocypack-module-jdk8@1.0.2 com.arangodb:velocypack@1.4.1 com.fasterxml.jackson.core:jackson-core@2.9.5

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