Vulnerabilities

6 via 16 paths

Dependencies

26

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

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

critical severity
new

Deserialization of Untrusted Data

  • Vulnerable module: com.fasterxml.jackson.core:jackson-databind
  • Introduced through: com.fasterxml.jackson.core:jackson-databind@2.21.7 and com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.3

Detailed paths

  • Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.fasterxml.jackson.core:jackson-databind@2.21.7
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.21.8.
  • Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.3 › com.fasterxml.jackson.core:jackson-databind@2.21.7
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.8.

Overview

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

Affected versions of this package are vulnerable to Deserialization of Untrusted Data in the _resolveAndValidateGeneric() and _validateTypeParameter() methods of the DatabindContext class. An attacker can instantiate arbitrary classes by supplying a class-name type ID whose generic arguments or array element type name a class that is not validated, because only the outer type is checked against the PolymorphicTypeValidator. Exploitation requires deserializing untrusted JSON with class-name type IDs, through annotation-based polymorphism or default typing, where the outer base type is approved, and a usable gadget class is on the classpath.

Workaround

This vulnerability can be avoided by using narrow subtype rules, preventing attackers from writing serialized cache or session values, or removing unnecessary dependencies that provide gadget classes.

Note: This is a bypass of the fix for the vulnerability described in CVE-2026-54512.

Details

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

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

Remediation

Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.18.12, 2.21.8, 2.22.4 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

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

Detailed paths

  • Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.fasterxml.jackson.core:jackson-core@2.21.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-core@2.21.4.
  • Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.fasterxml.jackson.core:jackson-databind@2.21.7 › com.fasterxml.jackson.core:jackson-core@2.21.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.21.7.
  • Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.3 › com.fasterxml.jackson.core:jackson-databind@2.21.7 › com.fasterxml.jackson.core:jackson-core@2.21.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.7.

Overview

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

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the NonBlockingUtf8JsonParserBase file. An attacker can exhaust system memory by streaming JSON input in small chunks to the asynchronous parser, causing unbounded accumulation of digit characters in memory due to missing validation of number length during chunked parsing. This can lead to denial of service by overwhelming the application's memory resources.

Remediation

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

References

high severity

Allocation of Resources Without Limits or Throttling

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

Detailed paths

  • Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.fasterxml.jackson.core:jackson-core@2.21.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-core@2.21.7.
  • Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.fasterxml.jackson.core:jackson-databind@2.21.7 › com.fasterxml.jackson.core:jackson-core@2.21.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.21.7.
  • Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.3 › com.fasterxml.jackson.core:jackson-databind@2.21.7 › com.fasterxml.jackson.core:jackson-core@2.21.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.7.

Overview

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

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

Remediation

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

References

high severity
new

Denial of Service (DoS)

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

Detailed paths

  • Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.fasterxml.jackson.core:jackson-core@2.21.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-core@2.21.6.
  • Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.fasterxml.jackson.core:jackson-databind@2.21.7 › com.fasterxml.jackson.core:jackson-core@2.21.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.21.7.
  • Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.3 › com.fasterxml.jackson.core:jackson-databind@2.21.7 › com.fasterxml.jackson.core:jackson-core@2.21.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.7.

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 delayed enforcement of maximum property name length in the ReaderBasedJsonParser process. An attacker can exhaust system memory and cause a crash by submitting a JSON object with an excessively long property name via character-based input sources such as String, Reader, or char[]. This is only exploitable if untrusted JSON is parsed from character-based sources rather than raw UTF-8 bytes.

Details

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

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

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

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

Two common types of DoS vulnerabilities:

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

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

Remediation

Upgrade com.fasterxml.jackson.core:jackson-core to version 2.18.10, 2.21.6, 2.22.2 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: com.google.guava:guava
  • Introduced through: com.google.guava:guava@33.6.0-jre and com.puppycrawl.tools:checkstyle@14.3.0

Detailed paths

  • Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.google.guava:guava@33.6.0-jre
    Remediation: Upgrade to com.google.guava:guava@33.7.2-jre.
  • Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.puppycrawl.tools:checkstyle@14.3.0 › com.google.guava:guava@33.6.0-jre
    Remediation: Upgrade to com.puppycrawl.tools:checkstyle@14.4.0.

Overview

com.google.guava:guava is a set of core libraries that includes new collection types (such as multimap and multiset,immutable collections, a graph library, functional types, an in-memory cache and more.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the readObject deserialization paths in CompactHashMap, CompactHashSet, and MapMakerInternalMap. An attacker can crash a Java process with an OutOfMemoryError by supplying a crafted serialized stream that declares an oversized element count or initial capacity. During deserialization, CompactHashMap and CompactHashSet use the attacker-controlled size to initialize their backing storage, and MapMakerInternalMap propagates the attacker-controlled size into segment table allocation, letting a tiny payload force a much larger heap allocation.

Remediation

Upgrade com.google.guava:guava to version 33.7.2, 33.7.2-jre or higher.

References

medium severity

Regular Expression Denial of Service (ReDoS)

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

Detailed paths

  • Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.fasterxml.jackson.core:jackson-core@2.21.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-core@2.21.7.
  • Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.fasterxml.jackson.core:jackson-databind@2.21.7 › com.fasterxml.jackson.core:jackson-core@2.21.3
    Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.21.7.
  • Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.3 › com.fasterxml.jackson.core:jackson-databind@2.21.7 › com.fasterxml.jackson.core:jackson-core@2.21.3
    Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.7.

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 Regular Expression Denial of Service (ReDoS) in the PATTERN_FLOAT regex of NumberInput, reached through looksLikeValidNumber(), where adjacent quantifiers over the same character class ([0-9]*, then an optional [.], then [0-9]+) carry no possessive quantifiers or atomic grouping, so the engine explores every split point between digit groups on non-matching input. An attacker can pin a request-handling thread and exhaust the worker pool with concurrent requests by supplying a long numeric-looking string that fails to match, since match cost is quadratic in input length, with 160,000 characters costing 74.4 seconds in a single call. This requires the application to reach looksLikeValidNumber() with attacker-controlled strings, which is the default path when jackson-databind coerces a String field to a number, and the input is bounded only by StreamReadConstraints.maxStringLength at 20,000,000 rather than by maxNumberLength at 1,000.

Workaround

This vulnerability can be avoided by lowering StreamReadConstraints.maxStringLength toward the string length the application actually needs, which caps the input this quadratic path can be handed, since it is that limit and not maxNumberLength that governs here.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

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

References

medium severity

LGPL-2.1 license

  • Module: com.puppycrawl.tools:checkstyle
  • Introduced through: com.puppycrawl.tools:checkstyle@14.3.0

Detailed paths

  • Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.puppycrawl.tools:checkstyle@14.3.0

LGPL-2.1 license

medium severity

MPL-2.0 license

  • Module: net.sf.saxon:Saxon-HE
  • Introduced through: com.puppycrawl.tools:checkstyle@14.3.0

Detailed paths

  • Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.puppycrawl.tools:checkstyle@14.3.0 › net.sf.saxon:Saxon-HE@12.9

MPL-2.0 license