Vulnerabilities |
10 via 27 paths |
|---|---|
Dependencies |
42 |
Source |
GitHub |
Find, fix and prevent vulnerabilities in your code.
critical severity
new
- Vulnerable module: com.fasterxml.jackson.core:jackson-databind
- Introduced through: com.fasterxml.jackson.core:jackson-databind@2.21.3 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.3Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.21.4.
-
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.3Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.4.
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 DatabindContext._resolveAndValidateGeneric() method, which validates only the raw container class of a type identifier against the configured PolymorphicTypeValidator and not its nested generic type arguments. An attacker who controls the type identifier can instantiate a denied class, and reach unauthenticated remote code execution through an available gadget, by embedding that class as a generic parameter of an allowlisted container such as java.util.ArrayList<com.evil.Gadget>, which passes validation while the nested type is loaded, instantiated, and populated with attacker-controlled values. Exploitation requires polymorphic type validation to be enabled with a configured validator, the application to deserialize untrusted JSON, and a suitable gadget class on the classpath.
Details
Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating 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.8, 2.21.4 or higher.
References
critical severity
new
- Vulnerable module: com.fasterxml.jackson.core:jackson-databind
- Introduced through: com.fasterxml.jackson.core:jackson-databind@2.21.3 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.3Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.21.4.
-
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.3Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.4.
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 Incomplete List of Disallowed Inputs in the BasicPolymorphicTypeValidator.Builder.allowIfSubTypeIsArray() method, which allowlists an array based only on clazz.isArray() and does not validate the array's component type. An attacker who controls the deserialized JSON can instantiate types outside the configured allowlist by wrapping them in an array, because array elements without per-element type identifiers are constructed directly with no further validator check.
Remediation
Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.18.8, 2.21.4 or higher.
References
medium severity
new
- Vulnerable module: com.fasterxml.jackson.core:jackson-databind
- Introduced through: com.fasterxml.jackson.core:jackson-databind@2.21.3 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.3Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.21.4.
-
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.3Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.4.
Overview
com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.
Affected versions of this package are vulnerable to Improperly Controlled Modification of Dynamically-Determined Object Attributes in the POJOPropertiesCollector._renameProperties() and BeanDeserializerFactory.addBeanProps() methods, which rename rather than drop a property whose getter carries @JsonProperty and whose setter carries @JsonIgnore, leaving the private backing field writable. An attacker can write a field that was meant to be unsettable, enabling property tampering and mass assignment, by supplying the renamed JSON key during deserialization, because the factory observes hasField()==true and builds a writable FieldProperty for the backing field. Exploitation requires MapperFeature.INFER_PROPERTY_MUTATORS to be enabled, which is the default, and a target type that pairs a renamed getter with an ignored setter, and the impact is limited to writing existing fields with no path to remote code execution.
Remediation
Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.21.4 or higher.
References
medium severity
new
- Vulnerable module: com.fasterxml.jackson.core:jackson-databind
- Introduced through: com.fasterxml.jackson.core:jackson-databind@2.21.3 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.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.3Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.5.
Overview
com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.
Affected versions of this package are vulnerable to Improperly Controlled Modification of Dynamically-Determined Object Attributes in the BeanDeserializerBase.createContextual() method, which applies the per-property exclusions through _handleByNameInclusion() and then rebuilds the property map from the unfiltered original, overwriting the filtered map and restoring every property the exclusion had removed. An attacker can set fields that were marked ignored, enabling mass assignment, by supplying those property names in untrusted JSON during deserialization. Exploitation requires case-insensitive property matching to be enabled via @JsonFormat with ACCEPT_CASE_INSENSITIVE_PROPERTIES alongside per-property @JsonIgnoreProperties.
Remediation
Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.18.9, 2.21.5, 2.22.1 or higher.
References
medium severity
new
- Vulnerable module: com.fasterxml.jackson.core:jackson-databind
- Introduced through: com.fasterxml.jackson.core:jackson-databind@2.21.3 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.3Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.21.4.
-
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.3Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.4.
Overview
com.fasterxml.jackson.core:jackson-databind is a library which contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor.
Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) in the JDKFromStringDeserializer class, which constructs InetSocketAddress and resolves the hostname through DNS at deserialization time. An attacker can force the server to issue outbound DNS lookups for chosen hostnames by submitting JSON that is deserialized into a type holding an InetSocketAddress field, with no authentication required. The observable effect is limited to DNS resolution of attacker-chosen names, useful for out-of-band interaction or internal resolver probing rather than a full outbound request, and it applies only where the application deserializes untrusted JSON into types containing such fields.
Remediation
Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.18.8, 2.21.4 or higher.
References
medium severity
- 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.3 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.3Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.21.4.
-
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.3Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.4.
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 Incorrect Authorization in the BeanDeserializer._deserializeUsingPropertyBased method, whose property-buffering branch omits the prop.visibleInView(activeView) check that the creator-property branch performs. An attacker can populate view-restricted setterless collection or map properties, such as admin-only fields, from untrusted JSON by supplying values for them during deserialization, bypassing @JsonView protection. This affects only setterless collection or map properties annotated with a restricted @JsonView and reached through the property-based creator path.
Remediation
Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.21.4 or higher.
References
medium severity
new
- Vulnerable module: com.fasterxml.jackson.core:jackson-databind
- Introduced through: com.fasterxml.jackson.core:jackson-databind@2.21.3 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.3Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.21.4.
-
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.3Remediation: Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.21.4.
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 Incorrect Authorization in the UnwrappedPropertyHandler.processUnwrappedCreatorProperties() method, which replays buffered JSON into creator parameters without consulting prop.visibleInView(activeView). An attacker can set view-restricted constructor parameters annotated with both @JsonView and @JsonUnwrapped, such as admin-only fields, from untrusted JSON by supplying them during deserialization while a more restrictive view is active, defeating the @JsonView write-side authorization boundary.
Remediation
Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.21.4 or higher.
References
medium severity
- Module: com.puppycrawl.tools:checkstyle
- Introduced through: com.puppycrawl.tools:checkstyle@13.7.0
Detailed paths
-
Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.puppycrawl.tools:checkstyle@13.7.0
LGPL-2.1 license
medium severity
- Module: net.sf.saxon:Saxon-HE
- Introduced through: com.puppycrawl.tools:checkstyle@13.7.0
Detailed paths
-
Introduced through: checkstyle/sonar-checkstyle@checkstyle/sonar-checkstyle › com.puppycrawl.tools:checkstyle@13.7.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.7.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.7.0 › org.apache.maven.doxia:doxia-core@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-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.7.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.7.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.