openapi-tools/swagger-maven-plugin
Find, fix and prevent vulnerabilities in your code.
critical severity
- Vulnerable module: org.apache.maven.shared:maven-shared-utils
- Introduced through: org.apache.maven:maven-core@3.6.0
Detailed paths
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › org.apache.maven:maven-core@3.6.0 › org.apache.maven.shared:maven-shared-utils@3.2.1Remediation: Upgrade to org.apache.maven:maven-core@3.8.2.
Overview
org.apache.maven.shared:maven-shared-utils is a functional replacement for plexus-utils in Maven.
Affected versions of this package are vulnerable to Command Injection. The Commandline
class can emit double-quoted strings without proper escaping, allowing shell injection attacks. The BourneShell
class should unconditionally single-quote emitted strings (including the name of the command itself being quoted), with {{'"'"'}}
used for embedded single quotes, for maximum safety across shells implementing a superset of POSIX quoting rules.
This is a similar issue to SNYK-JAVA-ORGCODEHAUSPLEXUS-31522
Remediation
Upgrade org.apache.maven.shared:maven-shared-utils
to version 3.3.3 or higher.
References
high severity
- Vulnerable module: com.fasterxml.jackson.core:jackson-core
- Introduced through: com.fasterxml.jackson.core:jackson-core@2.12.2, com.fasterxml.jackson.core:jackson-databind@2.12.2 and others
Detailed paths
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › com.fasterxml.jackson.core:jackson-core@2.12.2Remediation: Upgrade to com.fasterxml.jackson.core:jackson-core@2.15.0.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › com.fasterxml.jackson.core:jackson-databind@2.12.2 › com.fasterxml.jackson.core:jackson-core@2.12.2Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.15.0.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › com.fasterxml.jackson.core:jackson-databind@2.12.2 › com.fasterxml.jackson.core:jackson-core@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.11.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider@2.12.1 › com.fasterxml.jackson.jaxrs:jackson-jaxrs-base@2.12.1 › com.fasterxml.jackson.core:jackson-core@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.11.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider@2.12.1 › com.fasterxml.jackson.module:jackson-module-jaxb-annotations@2.12.1 › com.fasterxml.jackson.core:jackson-core@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.11.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider@2.12.1 › com.fasterxml.jackson.jaxrs:jackson-jaxrs-base@2.12.1 › com.fasterxml.jackson.core:jackson-databind@2.12.2 › com.fasterxml.jackson.core:jackson-core@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.11.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider@2.12.1 › com.fasterxml.jackson.module:jackson-module-jaxb-annotations@2.12.1 › com.fasterxml.jackson.core:jackson-databind@2.12.2 › com.fasterxml.jackson.core:jackson-core@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.11.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › io.swagger.core.v3:swagger-integration@2.1.7 › io.swagger.core.v3:swagger-core@2.1.7 › com.fasterxml.jackson.core:jackson-databind@2.12.2 › com.fasterxml.jackson.core:jackson-core@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.11.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › io.swagger.core.v3:swagger-integration@2.1.7 › io.swagger.core.v3:swagger-core@2.1.7 › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.12.1 › com.fasterxml.jackson.core:jackson-databind@2.12.2 › com.fasterxml.jackson.core:jackson-core@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.11.
…and 6 more
Overview
com.fasterxml.jackson.core:jackson-core is a Core Jackson abstractions, basic JSON streaming API implementation
Affected versions of this package are vulnerable to Denial of Service (DoS) due to missing input size validation when performing numeric type conversions. A remote attacker can exploit this vulnerability by causing the application to deserialize data containing certain numeric types with large values, causing the application to exhaust all available resources.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
ws
package
Remediation
Upgrade com.fasterxml.jackson.core:jackson-core
to version 2.15.0-rc1 or higher.
References
high severity
- Vulnerable module: com.fasterxml.jackson.core:jackson-databind
- Introduced through: com.fasterxml.jackson.core:jackson-databind@2.12.2 and io.swagger.core.v3:swagger-jaxrs2@2.1.7
Detailed paths
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.12.6.1.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.0.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider@2.12.1 › com.fasterxml.jackson.jaxrs:jackson-jaxrs-base@2.12.1 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.2.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider@2.12.1 › com.fasterxml.jackson.module:jackson-module-jaxb-annotations@2.12.1 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.2.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › io.swagger.core.v3:swagger-integration@2.1.7 › io.swagger.core.v3:swagger-core@2.1.7 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.0.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › io.swagger.core.v3:swagger-integration@2.1.7 › io.swagger.core.v3:swagger-core@2.1.7 › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.12.1 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.2.
…and 3 more
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: org.yaml:snakeyaml
- Introduced through: io.swagger.core.v3:swagger-jaxrs2@2.1.7
Detailed paths
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › io.swagger.core.v3:swagger-integration@2.1.7 › io.swagger.core.v3:swagger-core@2.1.7 › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.12.1 › org.yaml:snakeyaml@1.27Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.4.
Overview
org.yaml:snakeyaml is a YAML 1.1 parser and emitter for Java.
Affected versions of this package are vulnerable to Denial of Service (DoS) due to missing nested depth limitation for collections.
NOTE: This vulnerability has also been identified as: CVE-2022-38749
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
ws
package
Remediation
Upgrade org.yaml:snakeyaml
to version 1.31 or higher.
References
high severity
- Vulnerable module: org.yaml:snakeyaml
- Introduced through: io.swagger.core.v3:swagger-jaxrs2@2.1.7
Detailed paths
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › io.swagger.core.v3:swagger-integration@2.1.7 › io.swagger.core.v3:swagger-core@2.1.7 › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.12.1 › org.yaml:snakeyaml@1.27Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.4.
Overview
org.yaml:snakeyaml is a YAML 1.1 parser and emitter for Java.
Affected versions of this package are vulnerable to Denial of Service (DoS) due to missing nested depth limitation for collections.
NOTE: This vulnerability has also been identified as: CVE-2022-25857
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
ws
package
Remediation
Upgrade org.yaml:snakeyaml
to version 1.31 or higher.
References
high severity
- Vulnerable module: org.apache.maven:maven-core
- Introduced through: org.apache.maven:maven-core@3.6.0
Detailed paths
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › org.apache.maven:maven-core@3.6.0Remediation: Upgrade to org.apache.maven:maven-core@3.8.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: commons-io:commons-io
- Introduced through: io.swagger.core.v3:swagger-jaxrs2@2.1.7 and org.apache.maven:maven-core@3.6.0
Detailed paths
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › commons-io:commons-io@2.6Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.1.7.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › org.apache.maven:maven-core@3.6.0 › org.apache.maven.shared:maven-shared-utils@3.2.1 › commons-io:commons-io@2.6
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › io.swagger.core.v3:swagger-integration@2.1.7 › io.swagger.core.v3:swagger-core@2.1.7 › commons-io:commons-io@2.6Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.1.7.
Overview
commons-io:commons-io is a The Apache Commons IO library contains utility classes, stream implementations, file filters, file comparators, endian transformation classes, and much more.
Affected versions of this package are vulnerable to Uncontrolled Resource Consumption through the XmlStreamReader
class. An attacker can cause the application to consume excessive CPU resources by sending specially crafted XML content.
Remediation
Upgrade commons-io:commons-io
to version 2.14.0 or higher.
References
medium severity
- Vulnerable module: org.yaml:snakeyaml
- Introduced through: io.swagger.core.v3:swagger-jaxrs2@2.1.7
Detailed paths
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › io.swagger.core.v3:swagger-integration@2.1.7 › io.swagger.core.v3:swagger-core@2.1.7 › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.12.1 › org.yaml:snakeyaml@1.27Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.11.
Overview
org.yaml:snakeyaml is a YAML 1.1 parser and emitter for Java.
Affected versions of this package are vulnerable to Arbitrary Code Execution in the Constructor
class, which does not restrict which types can be deserialized. This vulnerability is exploitable by an attacker who provides a malicious YAML file for deserialization, which circumvents the SafeConstructor
class.
The maintainers of the library contend that the application's trust would already have had to be compromised or established and therefore dispute the risk associated with this issue on the basis that there is a high bar for exploitation.
Remediation
Upgrade org.yaml:snakeyaml
to version 2.0 or higher.
References
medium severity
- Vulnerable module: com.fasterxml.jackson.core:jackson-databind
- Introduced through: com.fasterxml.jackson.core:jackson-databind@2.12.2 and io.swagger.core.v3:swagger-jaxrs2@2.1.7
Detailed paths
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.12.6.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.0.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider@2.12.1 › com.fasterxml.jackson.jaxrs:jackson-jaxrs-base@2.12.1 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.0.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider@2.12.1 › com.fasterxml.jackson.module:jackson-module-jaxb-annotations@2.12.1 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.0.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › io.swagger.core.v3:swagger-integration@2.1.7 › io.swagger.core.v3:swagger-core@2.1.7 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.0.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › io.swagger.core.v3:swagger-integration@2.1.7 › io.swagger.core.v3:swagger-core@2.1.7 › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.12.1 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.0.
…and 3 more
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.fasterxml.jackson.core:jackson-databind@2.12.2 and io.swagger.core.v3:swagger-jaxrs2@2.1.7
Detailed paths
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.12.7.1.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.4.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider@2.12.1 › com.fasterxml.jackson.jaxrs:jackson-jaxrs-base@2.12.1 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.4.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider@2.12.1 › com.fasterxml.jackson.module:jackson-module-jaxb-annotations@2.12.1 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.4.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › io.swagger.core.v3:swagger-integration@2.1.7 › io.swagger.core.v3:swagger-core@2.1.7 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.4.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › io.swagger.core.v3:swagger-integration@2.1.7 › io.swagger.core.v3:swagger-core@2.1.7 › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.12.1 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.4.
…and 3 more
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.fasterxml.jackson.core:jackson-databind@2.12.2 and io.swagger.core.v3:swagger-jaxrs2@2.1.7
Detailed paths
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to com.fasterxml.jackson.core:jackson-databind@2.12.7.1.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.4.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider@2.12.1 › com.fasterxml.jackson.jaxrs:jackson-jaxrs-base@2.12.1 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.7.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider@2.12.1 › com.fasterxml.jackson.module:jackson-module-jaxb-annotations@2.12.1 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.7.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › io.swagger.core.v3:swagger-integration@2.1.7 › io.swagger.core.v3:swagger-core@2.1.7 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.4.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › io.swagger.core.v3:swagger-integration@2.1.7 › io.swagger.core.v3:swagger-core@2.1.7 › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.12.1 › com.fasterxml.jackson.core:jackson-databind@2.12.2Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.7.
…and 3 more
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: commons-io:commons-io
- Introduced through: io.swagger.core.v3:swagger-jaxrs2@2.1.7 and org.apache.maven:maven-core@3.6.0
Detailed paths
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › commons-io:commons-io@2.6Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.1.7.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › org.apache.maven:maven-core@3.6.0 › org.apache.maven.shared:maven-shared-utils@3.2.1 › commons-io:commons-io@2.6Remediation: Upgrade to org.apache.maven:maven-core@3.9.7.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › io.swagger.core.v3:swagger-integration@2.1.7 › io.swagger.core.v3:swagger-core@2.1.7 › commons-io:commons-io@2.6Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.1.7.
Overview
commons-io:commons-io is a The Apache Commons IO library contains utility classes, stream implementations, file filters, file comparators, endian transformation classes, and much more.
Affected versions of this package are vulnerable to Directory Traversal via calling the method FileNameUtils.normalize using an improper string like //../foo
or \\..\foo
, which may allow access to files in the parent directory.
Details
A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.
Directory Traversal vulnerabilities can be generally divided into two types:
- Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.
st
is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public
route.
If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.
curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa
Note %2e
is the URL encoded version of .
(dot).
- Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as
Zip-Slip
.
One way to achieve this is by using a malicious zip
archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.
The following is an example of a zip
archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/
overwriting the authorized_keys
file:
2018-04-15 22:04:29 ..... 19 19 good.txt
2018-04-15 22:04:42 ..... 20 20 ../../../../../../root/.ssh/authorized_keys
Remediation
Upgrade commons-io:commons-io
to version 2.7 or higher.
References
medium severity
- Vulnerable module: org.yaml:snakeyaml
- Introduced through: io.swagger.core.v3:swagger-jaxrs2@2.1.7
Detailed paths
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › io.swagger.core.v3:swagger-integration@2.1.7 › io.swagger.core.v3:swagger-core@2.1.7 › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.12.1 › org.yaml:snakeyaml@1.27Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.4.
Overview
org.yaml:snakeyaml is a YAML 1.1 parser and emitter for Java.
Affected versions of this package are vulnerable to Stack-based Buffer Overflow when parsing crafted untrusted YAML files, which can lead to a denial-of-service.
Remediation
Upgrade org.yaml:snakeyaml
to version 1.31 or higher.
References
medium severity
new
- Module: org.eclipse.sisu:org.eclipse.sisu.inject
- Introduced through: org.apache.maven:maven-core@3.6.0 and org.apache.maven:maven-plugin-api@3.6.0
Detailed paths
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › org.apache.maven:maven-core@3.6.0 › org.eclipse.sisu:org.eclipse.sisu.inject@0.3.3
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › org.apache.maven:maven-plugin-api@3.6.0 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.3.3 › org.eclipse.sisu:org.eclipse.sisu.inject@0.3.3
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › org.apache.maven:maven-core@3.6.0 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.3.3 › org.eclipse.sisu:org.eclipse.sisu.inject@0.3.3
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › org.apache.maven:maven-core@3.6.0 › org.apache.maven:maven-plugin-api@3.6.0 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.3.3 › org.eclipse.sisu:org.eclipse.sisu.inject@0.3.3
…and 1 more
EPL-1.0 license
medium severity
new
- Module: org.eclipse.sisu:org.eclipse.sisu.plexus
- Introduced through: org.apache.maven:maven-plugin-api@3.6.0 and org.apache.maven:maven-core@3.6.0
Detailed paths
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › org.apache.maven:maven-plugin-api@3.6.0 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.3.3
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › org.apache.maven:maven-core@3.6.0 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.3.3
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › org.apache.maven:maven-core@3.6.0 › org.apache.maven:maven-plugin-api@3.6.0 › org.eclipse.sisu:org.eclipse.sisu.plexus@0.3.3
EPL-1.0 license
low severity
- Vulnerable module: org.yaml:snakeyaml
- Introduced through: io.swagger.core.v3:swagger-jaxrs2@2.1.7
Detailed paths
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › io.swagger.core.v3:swagger-integration@2.1.7 › io.swagger.core.v3:swagger-core@2.1.7 › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.12.1 › org.yaml:snakeyaml@1.27Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.7.
Overview
org.yaml:snakeyaml is a YAML 1.1 parser and emitter for Java.
Affected versions of this package are vulnerable to Stack-based Buffer Overflow when parsing crafted untrusted YAML files, which can lead to a denial-of-service.
Remediation
Upgrade org.yaml:snakeyaml
to version 1.32 or higher.
References
low severity
- Vulnerable module: org.yaml:snakeyaml
- Introduced through: io.swagger.core.v3:swagger-jaxrs2@2.1.7
Detailed paths
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › io.swagger.core.v3:swagger-integration@2.1.7 › io.swagger.core.v3:swagger-core@2.1.7 › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.12.1 › org.yaml:snakeyaml@1.27Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.4.
Overview
org.yaml:snakeyaml is a YAML 1.1 parser and emitter for Java.
Affected versions of this package are vulnerable to Stack-based Buffer Overflow in org.yaml.snakeyaml.constructor.BaseConstructor.constructObject
when parsing crafted untrusted YAML files, which can lead to a denial-of-service.
Remediation
Upgrade org.yaml:snakeyaml
to version 1.31 or higher.
References
low severity
- Vulnerable module: org.yaml:snakeyaml
- Introduced through: io.swagger.core.v3:swagger-jaxrs2@2.1.7
Detailed paths
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › io.swagger.core.v3:swagger-jaxrs2@2.1.7 › io.swagger.core.v3:swagger-integration@2.1.7 › io.swagger.core.v3:swagger-core@2.1.7 › com.fasterxml.jackson.dataformat:jackson-dataformat-yaml@2.12.1 › org.yaml:snakeyaml@1.27Remediation: Upgrade to io.swagger.core.v3:swagger-jaxrs2@2.2.7.
Overview
org.yaml:snakeyaml is a YAML 1.1 parser and emitter for Java.
Affected versions of this package are vulnerable to Stack-based Buffer Overflow when supplied with untrusted input, due to improper limitation for incoming data.
Remediation
Upgrade org.yaml:snakeyaml
to version 1.32 or higher.
References
low severity
- Vulnerable module: com.google.guava:guava
- Introduced through: com.google.guava:guava@30.0-jre and org.apache.maven:maven-core@3.6.0
Detailed paths
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › com.google.guava:guava@30.0-jreRemediation: Upgrade to com.google.guava:guava@32.0.0-jre.
-
Introduced through: openapi-tools/swagger-maven-plugin@openapi-tools/swagger-maven-plugin#524970448a09180b46e9085dc00418b177cf0833 › org.apache.maven:maven-core@3.6.0 › com.google.inject:guice@4.2.1 › com.google.guava:guava@30.0-jre
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.