Vulnerabilities |
7 via 22 paths |
|---|---|
Dependencies |
42 |
Source |
GitHub |
Find, fix and prevent vulnerabilities in your code.
high severity
- 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.5 and others
Detailed paths
-
Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.fasterxml.jackson.core:jackson-core@2.21.3Remediation: 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.5 › com.fasterxml.jackson.core:jackson-core@2.21.3Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.21.5.
-
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.5 › com.fasterxml.jackson.core:jackson-core@2.21.3Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.5.
Overview
com.fasterxml.jackson.core:jackson-core is a Core Jackson abstractions, basic JSON streaming API implementation
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the NonBlockingUtf8JsonParserBase file. An attacker can exhaust system memory by streaming JSON input in small chunks to the asynchronous parser, causing unbounded accumulation of digit characters in memory due to missing validation of number length during chunked parsing. This can lead to denial of service by overwhelming the application's memory resources.
Remediation
Upgrade com.fasterxml.jackson.core:jackson-core to version 2.18.8, 2.21.4 or higher.
References
high severity
new
- Vulnerable module: com.fasterxml.jackson.core:jackson-databind
- Introduced through: com.fasterxml.jackson.core:jackson-databind@2.21.5 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.5Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.21.6.
-
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.5Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.6.
Overview
com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the CoreXMLDeserializers.Std._deserialize path in src/main/java/com/fasterxml/jackson/databind/ext/CoreXMLDeserializers.java. An attacker can consume excessive CPU by supplying a JSON string bound to a javax.xml.datatype.Duration or XMLGregorianCalendar field, causing DatatypeFactory.newDuration(value) or newXMLGregorianCalendar(value) to parse arbitrarily long numeric components. This stalls the request-handling thread and can exhaust server CPU under default deserialization settings, denying service to other users.
Remediation
Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.18.10, 2.21.6, 2.22.2 or higher.
References
medium severity
new
- Vulnerable module: com.fasterxml.jackson.core:jackson-databind
- Introduced through: com.fasterxml.jackson.core:jackson-databind@2.21.5 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.5Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.21.6.
-
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.5Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.6.
Overview
com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.
Affected versions of this package are vulnerable to Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') through NioPathDeserializer in src/main/java/com/fasterxml/jackson/databind/ext/NioPathDeserializer.java. An attacker can force readValue() to resolve an attacker-controlled java.nio.file.Path URI by supplying a non-file scheme such as jar:, http:, s3:, or a custom provider scheme in untrusted JSON. That input reaches new URI(value) and then Path.of(uri), which falls back to ServiceLoader<FileSystemProvider> resolution and can invoke a matching provider’s getPath(uri) during deserialization. The result is unintended provider loading and provider-driven path handling inside the application, which can trigger denial of service or other side effects depending on what FileSystemProvider implementations are present on the classpath.
Remediation
Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.18.10, 2.21.6, 2.22.2 or higher.
References
medium severity
- Vulnerable module: org.codehaus.plexus:plexus-utils
- Introduced through: org.apache.maven.doxia:doxia-core@1.12.0 and org.apache.maven.doxia:doxia-sink-api@1.12.0
Detailed paths
-
Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › org.apache.maven.doxia:doxia-core@1.12.0 › org.codehaus.plexus:plexus-utils@3.3.0Remediation: Upgrade to org.apache.maven.doxia:doxia-core@2.1.0.
-
Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › org.apache.maven.doxia:doxia-core@1.12.0 › org.codehaus.plexus:plexus-container-default@2.1.0 › org.codehaus.plexus:plexus-utils@3.3.0
-
Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › org.apache.maven.doxia:doxia-sink-api@1.12.0 › org.apache.maven.doxia:doxia-logging-api@1.12.0 › org.codehaus.plexus:plexus-container-default@2.1.0 › org.codehaus.plexus:plexus-utils@3.3.0
-
Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › org.apache.maven.doxia:doxia-core@1.12.0 › org.apache.maven.doxia:doxia-logging-api@1.12.0 › org.codehaus.plexus:plexus-container-default@2.1.0 › org.codehaus.plexus:plexus-utils@3.3.0
-
Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › org.apache.maven.doxia:doxia-core@1.12.0 › org.apache.maven.doxia:doxia-sink-api@1.12.0 › org.apache.maven.doxia:doxia-logging-api@1.12.0 › org.codehaus.plexus:plexus-container-default@2.1.0 › org.codehaus.plexus:plexus-utils@3.3.0
Overview
org.codehaus.plexus:plexus-utils is a collection of various utility classes to ease working with strings, files, command lines, XML and more.
Affected versions of this package are vulnerable to Directory Traversal via the extractFile function. An attacker can exploit this to execute unauthorized code on the system in the context of the current working user.
Details
A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.
Directory Traversal vulnerabilities can be generally divided into two types:
- Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.
st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.
If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.
curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa
Note %2e is the URL encoded version of . (dot).
- Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as
Zip-Slip.
One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.
The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:
2018-04-15 22:04:29 ..... 19 19 good.txt
2018-04-15 22:04:42 ..... 20 20 ../../../../../../root/.ssh/authorized_keys
Remediation
Upgrade org.codehaus.plexus:plexus-utils to version 3.6.1, 4.0.3 or higher.
References
medium severity
new
- Vulnerable module: com.fasterxml.jackson.core:jackson-databind
- Introduced through: com.fasterxml.jackson.core:jackson-databind@2.21.5 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.5Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.21.6.
-
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.5Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.6.
Overview
com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.
Affected versions of this package are vulnerable to Deserialization of Untrusted Data in the isSafeSubType() method of DefaultBaseTypeLimitingValidator, whose denylist of unsafe base types omits java.lang.Comparable, so the method returns true for any subtype resolved under a Comparable base. An attacker can trigger instantiation of arbitrary classes that implement Comparable, such as java.io.File to reach path-traversal primitives, by sending JSON with attacker-controlled type identifiers. This requires the application to use a bare @JsonTypeInfo with the default validator and no explicit PolymorphicTypeValidator, and a property or class whose declared base type is Comparable.
Workaround
This vulnerability can be avoided by configuring an explicit restrictive PolymorphicTypeValidator, such as a BasicPolymorphicTypeValidator allowlist passed to activateDefaultTyping(), instead of relying on the default validator.
Note: The discoverer of this vulnerability reports that "I have not identified a class implementing Comparable that yields code execution purely through deserialization".
Details
Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.
Deserialization of untrusted data (CWE-502) is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, thus allowing the attacker to control the state or the flow of the execution.
Remediation
Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.18.10, 2.21.6, 2.22.2 or higher.
References
medium severity
- Module: com.puppycrawl.tools:checkstyle
- Introduced through: com.puppycrawl.tools:checkstyle@13.8.0
Detailed paths
-
Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.puppycrawl.tools:checkstyle@13.8.0
LGPL-2.1 license
medium severity
- Module: net.sf.saxon:Saxon-HE
- Introduced through: com.puppycrawl.tools:checkstyle@13.8.0
Detailed paths
-
Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.puppycrawl.tools:checkstyle@13.8.0 › net.sf.saxon:Saxon-HE@12.9
MPL-2.0 license
low severity
- Vulnerable module: commons-codec:commons-codec
- Introduced through: org.apache.maven.doxia:doxia-core@1.12.0
Detailed paths
-
Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › org.apache.maven.doxia:doxia-core@1.12.0 › org.apache.httpcomponents:httpclient@4.5.13 › commons-codec:commons-codec@1.11
Overview
commons-codec:commons-codec is a package that contains simple encoder and decoders for various formats such as Base64 and Hexadecimal.
Affected versions of this package are vulnerable to Information Exposure. When there is no byte array value that can be encoded into a string the Base32 implementation does not reject it, and instead decodes it into an arbitrary value which can be re-encoded again using the same implementation. This allows for information exposure exploits such as tunneling additional information via seemingly valid base 32 strings.
Remediation
Upgrade commons-codec:commons-codec to version 1.14 or higher.
References
low severity
- Vulnerable module: junit:junit
- Introduced through: org.apache.maven.doxia:doxia-core@1.12.0, com.puppycrawl.tools:checkstyle@13.8.0 and others
Detailed paths
-
Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › org.apache.maven.doxia:doxia-core@1.12.0 › org.codehaus.plexus:plexus-container-default@2.1.0 › junit:junit@4.11Remediation: Upgrade to org.apache.maven.doxia:doxia-core@2.0.0.
-
Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.puppycrawl.tools:checkstyle@13.8.0 › org.apache.maven.doxia:doxia-core@1.12.0 › org.codehaus.plexus:plexus-container-default@2.1.0 › junit:junit@4.11Remediation: Upgrade to com.puppycrawl.tools:checkstyle@13.11.0.
-
Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › org.apache.maven.doxia:doxia-sink-api@1.12.0 › org.apache.maven.doxia:doxia-logging-api@1.12.0 › org.codehaus.plexus:plexus-container-default@2.1.0 › junit:junit@4.11
-
Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › org.apache.maven.doxia:doxia-core@1.12.0 › org.apache.maven.doxia:doxia-logging-api@1.12.0 › org.codehaus.plexus:plexus-container-default@2.1.0 › junit:junit@4.11
-
Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.puppycrawl.tools:checkstyle@13.8.0 › org.apache.maven.doxia:doxia-core@1.12.0 › org.apache.maven.doxia:doxia-logging-api@1.12.0 › org.codehaus.plexus:plexus-container-default@2.1.0 › junit:junit@4.11
-
Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › org.apache.maven.doxia:doxia-core@1.12.0 › org.apache.maven.doxia:doxia-sink-api@1.12.0 › org.apache.maven.doxia:doxia-logging-api@1.12.0 › org.codehaus.plexus:plexus-container-default@2.1.0 › junit:junit@4.11
-
Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.puppycrawl.tools:checkstyle@13.8.0 › org.apache.maven.doxia:doxia-core@1.12.0 › org.apache.maven.doxia:doxia-sink-api@1.12.0 › org.apache.maven.doxia:doxia-logging-api@1.12.0 › org.codehaus.plexus:plexus-container-default@2.1.0 › junit:junit@4.11
Overview
junit:junit is an unit testing framework for Java
Affected versions of this package are vulnerable to Information Exposure. The JUnit4 test rule TemporaryFolder contains a local information disclosure vulnerability. On Unix like systems, the system's temporary directory is shared between all users on that system. Because of this, when files and directories are written into this directory they are, by default, readable by other users on that same system.
Note: This vulnerability does not allow other users to overwrite the contents of these directories or files. This only affects Unix like systems.
Remediation
Upgrade junit:junit to version 4.13.1 or higher.