Find, fix and prevent vulnerabilities in your code.
critical severity
- Vulnerable module: org.codehaus.plexus:plexus-archiver
- Introduced through: org.apache.maven.plugins:maven-dependency-plugin@3.2.0
Detailed paths
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.codehaus.plexus:plexus-archiver@4.2.2Remediation: Upgrade to org.apache.maven.plugins:maven-dependency-plugin@3.6.1.
Overview
Affected versions of this package are vulnerable to Directory Traversal which might lead to an arbitrary file creation and possibly remote code execution.
When extracting an archive with an entry that already exists in the destination directory as a symbolic link whose target does not exist - the resolveFile()
function will return the symlink's source instead of its target, which will pass the verification that ensures the file will not be extracted outside of the destination directory. Later Files.newOutputStream()
, that follows symlinks by default, will actually write the entry's content to the symlink's target.
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-archiver
to version 4.8.0 or higher.
References
high severity
- Vulnerable module: org.apache.commons:commons-compress
- Introduced through: org.apache.commons:commons-compress@1.21 and org.apache.maven.plugins:maven-dependency-plugin@3.2.0
Detailed paths
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.commons:commons-compress@1.21Remediation: Upgrade to org.apache.commons:commons-compress@1.26.0.
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.codehaus.plexus:plexus-archiver@4.2.2 › org.apache.commons:commons-compress@1.21
Overview
org.apache.commons:commons-compress is an API for working with compression and archive formats.
Affected versions of this package are vulnerable to Infinite loop due to the improper handling of certain inputs during the parsing of dump files. An attacker can cause the application to enter an infinite loop by supplying crafted inputs.
Remediation
Upgrade org.apache.commons:commons-compress
to version 1.26.0 or higher.
References
high severity
- Vulnerable module: org.apache.velocity:velocity
- Introduced through: org.apache.maven.plugins:maven-dependency-plugin@3.2.0
Detailed paths
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.doxia:doxia-site-renderer@1.9.2 › org.apache.velocity:velocity@1.7
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.doxia:doxia-site-renderer@1.9.2 › org.apache.velocity:velocity-tools@2.0 › org.apache.velocity:velocity@1.7
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.doxia:doxia-site-renderer@1.9.2 › org.codehaus.plexus:plexus-velocity@1.2 › org.apache.velocity:velocity@1.7
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.reporting:maven-reporting-impl@3.0.0 › org.apache.maven.doxia:doxia-site-renderer@1.9.2 › org.apache.velocity:velocity@1.7
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.reporting:maven-reporting-impl@3.0.0 › org.apache.maven.doxia:doxia-site-renderer@1.9.2 › org.apache.velocity:velocity-tools@2.0 › org.apache.velocity:velocity@1.7
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.reporting:maven-reporting-impl@3.0.0 › org.apache.maven.doxia:doxia-site-renderer@1.9.2 › org.codehaus.plexus:plexus-velocity@1.2 › org.apache.velocity:velocity@1.7
Overview
org.apache.velocity:velocity is a None
Affected versions of this package are vulnerable to Arbitrary Code Execution. An attacker that is able to modify Velocity templates may execute arbitrary Java code or run arbitrary system commands with the same privileges as the account running the Servlet container. This applies to applications that allow untrusted users to upload/modify velocity templates running Apache Velocity Engine.
Note
Users of org.apache.velocity:velocity
should update to org.apache.velocity:velocity-engine-core
version 2.3 to mitigate this vulnerability.
Remediation
There is no fixed version for org.apache.velocity:velocity
.
References
high severity
- Vulnerable module: com.fasterxml.jackson.core:jackson-databind
- Introduced through: com.deliveredtechnologies:tf-cmd-api@0.13
Detailed paths
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › com.deliveredtechnologies:tf-cmd-api@0.13 › com.fasterxml.jackson.core:jackson-databind@2.13.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
- Vulnerable module: dom4j:dom4j
- Introduced through: org.apache.maven.plugins:maven-dependency-plugin@3.2.0
Detailed paths
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.doxia:doxia-site-renderer@1.9.2 › org.apache.velocity:velocity-tools@2.0 › dom4j:dom4j@1.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.reporting:maven-reporting-impl@3.0.0 › org.apache.maven.doxia:doxia-site-renderer@1.9.2 › org.apache.velocity:velocity-tools@2.0 › dom4j:dom4j@1.1
Overview
dom4j:dom4j is a flexible XML framework for Java. Note: this artifact has been deprecated for org.dom4j:dom4j
.
Affected versions of this package are vulnerable to XML External Entity (XXE) Injection due to improper validation of the QName
inputs.
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
There is no fixed version for dom4j:dom4j
.
References
high severity
- Vulnerable module: dom4j:dom4j
- Introduced through: org.apache.maven.plugins:maven-dependency-plugin@3.2.0
Detailed paths
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.doxia:doxia-site-renderer@1.9.2 › org.apache.velocity:velocity-tools@2.0 › dom4j:dom4j@1.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.reporting:maven-reporting-impl@3.0.0 › org.apache.maven.doxia:doxia-site-renderer@1.9.2 › org.apache.velocity:velocity-tools@2.0 › dom4j:dom4j@1.1
Overview
dom4j:dom4j is a flexible XML framework for Java. Note: this artifact has been deprecated for org.dom4j:dom4j
.
Affected versions of this package are vulnerable to XML External Entity (XXE) Injection. By using the default SaxReader()
provided by Dom4J, external DTDs and External Entities are allowed, resulting in a possible XXE.
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
There is no fixed version for dom4j:dom4j
.
References
high severity
- Vulnerable module: org.apache.maven:maven-core
- Introduced through: org.apache.maven.plugins:maven-dependency-plugin@3.2.0 and org.apache.maven.plugins:maven-deploy-plugin@3.0.0-M1
Detailed paths
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven:maven-core@3.1.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-deploy-plugin@3.0.0-M1 › org.apache.maven:maven-core@3.1.1Remediation: Upgrade to org.apache.maven.plugins:maven-deploy-plugin@3.1.2.
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.reporting:maven-reporting-impl@3.0.0 › org.apache.maven:maven-core@3.1.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.shared:maven-common-artifact-filters@3.2.0 › org.apache.maven:maven-core@3.1.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.shared:maven-artifact-transfer@0.13.1 › org.apache.maven:maven-core@3.1.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-deploy-plugin@3.0.0-M1 › org.apache.maven.shared:maven-artifact-transfer@0.13.1 › org.apache.maven:maven-core@3.1.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.shared:maven-artifact-transfer@0.13.1 › org.apache.maven.shared:maven-common-artifact-filters@3.2.0 › org.apache.maven:maven-core@3.1.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-deploy-plugin@3.0.0-M1 › org.apache.maven.shared:maven-artifact-transfer@0.13.1 › org.apache.maven.shared:maven-common-artifact-filters@3.2.0 › org.apache.maven:maven-core@3.1.1
Overview
Affected versions of this package are vulnerable to Resources Downloaded over Insecure Protocol. Apache Maven will follow repositories that are defined in a dependency’s Project Object Model (pom) which may be surprising to some users, resulting in potential risk if a malicious actor takes over that repository or is able to insert themselves into a position to pretend to be that repository. Maven is changing the default behavior to no longer follow http (non-SSL) repository references by default. More details available in the referenced urls.
If you are currently using a repository manager to govern the repositories used by your builds, you are unaffected by the risks present in the legacy behavior, and are unaffected by this vulnerability and change to default behavior. For more information about repository management, visit this page.
Remediation
Upgrade org.apache.maven:maven-core
to version 3.8.1 or higher.
References
medium severity
- Vulnerable module: com.fasterxml.jackson.core:jackson-databind
- Introduced through: com.deliveredtechnologies:tf-cmd-api@0.13
Detailed paths
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › com.deliveredtechnologies:tf-cmd-api@0.13 › com.fasterxml.jackson.core:jackson-databind@2.13.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) when using JDK serialization to serialize and deserialize JsonNode
values.
It is possible for the attacker to send a 4-byte length payload, with a value of Integer.MAX_VALUE
, that will eventually cause large buffer allocation and out of heap memory.
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.13.1, 2.12.6 or higher.
References
medium severity
- Vulnerable module: com.fasterxml.jackson.core:jackson-databind
- Introduced through: com.deliveredtechnologies:tf-cmd-api@0.13
Detailed paths
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › com.deliveredtechnologies:tf-cmd-api@0.13 › com.fasterxml.jackson.core:jackson-databind@2.13.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
- Vulnerable module: com.fasterxml.jackson.core:jackson-databind
- Introduced through: com.deliveredtechnologies:tf-cmd-api@0.13
Detailed paths
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › com.deliveredtechnologies:tf-cmd-api@0.13 › com.fasterxml.jackson.core:jackson-databind@2.13.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
- Vulnerable module: org.apache.commons:commons-compress
- Introduced through: org.apache.commons:commons-compress@1.21 and org.apache.maven.plugins:maven-dependency-plugin@3.2.0
Detailed paths
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.commons:commons-compress@1.21Remediation: Upgrade to org.apache.commons:commons-compress@1.26.0.
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.codehaus.plexus:plexus-archiver@4.2.2 › org.apache.commons:commons-compress@1.21
Overview
org.apache.commons:commons-compress is an API for working with compression and archive formats.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to an OutOfMemoryError
during the handling of a broken Pack200
file.
Remediation
Upgrade org.apache.commons:commons-compress
to version 1.26.0 or higher.
References
low severity
- Vulnerable module: commons-codec:commons-codec
- Introduced through: org.apache.maven.doxia:doxia-core@1.10 and org.apache.maven.plugins:maven-dependency-plugin@3.2.0
Detailed paths
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.doxia:doxia-core@1.10 › org.apache.httpcomponents:httpclient@4.5.13 › commons-codec:commons-codec@1.11
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.doxia:doxia-core@1.10 › org.apache.httpcomponents:httpclient@4.5.13 › commons-codec:commons-codec@1.11
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.doxia:doxia-site-renderer@1.9.2 › org.apache.maven.doxia:doxia-core@1.10 › org.apache.httpcomponents:httpclient@4.5.13 › commons-codec:commons-codec@1.11
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.reporting:maven-reporting-impl@3.0.0 › org.apache.maven.doxia:doxia-core@1.10 › org.apache.httpcomponents:httpclient@4.5.13 › commons-codec:commons-codec@1.11
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.reporting:maven-reporting-impl@3.0.0 › org.apache.maven.doxia:doxia-site-renderer@1.9.2 › org.apache.maven.doxia:doxia-core@1.10 › 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.13 or higher.
References
low severity
- Vulnerable module: com.google.guava:guava
- Introduced through: org.apache.maven.plugins:maven-dependency-plugin@3.2.0 and org.apache.maven.plugins:maven-deploy-plugin@3.0.0-M1
Detailed paths
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven:maven-core@3.1.1 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.0.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-deploy-plugin@3.0.0-M1 › org.apache.maven:maven-core@3.1.1 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.0.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.shared:maven-common-artifact-filters@3.2.0 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.0.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.reporting:maven-reporting-impl@3.0.0 › org.apache.maven:maven-core@3.1.1 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.0.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.shared:maven-common-artifact-filters@3.2.0 › org.apache.maven:maven-core@3.1.1 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.0.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.shared:maven-artifact-transfer@0.13.1 › org.apache.maven:maven-core@3.1.1 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.0.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-deploy-plugin@3.0.0-M1 › org.apache.maven.shared:maven-artifact-transfer@0.13.1 › org.apache.maven:maven-core@3.1.1 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.0.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.shared:maven-artifact-transfer@0.13.1 › org.apache.maven.shared:maven-common-artifact-filters@3.2.0 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.0.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-deploy-plugin@3.0.0-M1 › org.apache.maven.shared:maven-artifact-transfer@0.13.1 › org.apache.maven.shared:maven-common-artifact-filters@3.2.0 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.0.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.shared:maven-artifact-transfer@0.13.1 › org.apache.maven.shared:maven-common-artifact-filters@3.2.0 › org.apache.maven:maven-core@3.1.1 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.0.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-deploy-plugin@3.0.0-M1 › org.apache.maven.shared:maven-artifact-transfer@0.13.1 › org.apache.maven.shared:maven-common-artifact-filters@3.2.0 › org.apache.maven:maven-core@3.1.1 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.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
- Vulnerable module: com.google.guava:guava
- Introduced through: org.apache.maven.plugins:maven-dependency-plugin@3.2.0 and org.apache.maven.plugins:maven-deploy-plugin@3.0.0-M1
Detailed paths
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven:maven-core@3.1.1 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.0.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-deploy-plugin@3.0.0-M1 › org.apache.maven:maven-core@3.1.1 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.0.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.shared:maven-common-artifact-filters@3.2.0 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.0.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.reporting:maven-reporting-impl@3.0.0 › org.apache.maven:maven-core@3.1.1 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.0.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.shared:maven-common-artifact-filters@3.2.0 › org.apache.maven:maven-core@3.1.1 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.0.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.shared:maven-artifact-transfer@0.13.1 › org.apache.maven:maven-core@3.1.1 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.0.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-deploy-plugin@3.0.0-M1 › org.apache.maven.shared:maven-artifact-transfer@0.13.1 › org.apache.maven:maven-core@3.1.1 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.0.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.shared:maven-artifact-transfer@0.13.1 › org.apache.maven.shared:maven-common-artifact-filters@3.2.0 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.0.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-deploy-plugin@3.0.0-M1 › org.apache.maven.shared:maven-artifact-transfer@0.13.1 › org.apache.maven.shared:maven-common-artifact-filters@3.2.0 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.0.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-dependency-plugin@3.2.0 › org.apache.maven.shared:maven-artifact-transfer@0.13.1 › org.apache.maven.shared:maven-common-artifact-filters@3.2.0 › org.apache.maven:maven-core@3.1.1 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.0.1
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.plugins:maven-deploy-plugin@3.0.0-M1 › org.apache.maven.shared:maven-artifact-transfer@0.13.1 › org.apache.maven.shared:maven-common-artifact-filters@3.2.0 › org.apache.maven:maven-core@3.1.1 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.0.0.M5 › com.google.guava:guava@10.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
- Vulnerable module: junit:junit
- Introduced through: junit:junit@4.11, org.apache.maven.doxia:doxia-core@1.10 and others
Detailed paths
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › junit:junit@4.11Remediation: Upgrade to junit:junit@4.13.1.
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.doxia:doxia-core@1.10 › org.codehaus.plexus:plexus-container-default@2.1.0 › junit:junit@4.11
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.doxia:doxia-sink-api@1.9.1 › org.apache.maven.doxia:doxia-logging-api@1.10 › org.codehaus.plexus:plexus-container-default@2.1.0 › junit:junit@4.11
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.doxia:doxia-core@1.10 › org.apache.maven.doxia:doxia-logging-api@1.10 › org.codehaus.plexus:plexus-container-default@2.1.0 › junit:junit@4.11
-
Introduced through: deliveredtechnologies/terraform-maven@deliveredtechnologies/terraform-maven#a95f18a0bb483d68da59208d39c3a1766d8157fc › org.apache.maven.doxia:doxia-core@1.10 › org.apache.maven.doxia:doxia-sink-api@1.9.1 › org.apache.maven.doxia:doxia-logging-api@1.10 › 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.