snowdensb / spring-boot

Spring Boot
https://spring.io/projects/spring-boot
Apache License 2.0
0 stars 0 forks source link

spring-data-elasticsearch-4.3.0-M2.jar: 9 vulnerabilities (highest severity is: 9.8) - autoclosed #393

Closed mend-for-github-com[bot] closed 1 week ago

mend-for-github-com[bot] commented 6 months ago
Vulnerable Library - spring-data-elasticsearch-4.3.0-M2.jar

Path to dependency file: /spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-elasticsearch/build.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-queryparser/8.8.2/67c6580f8a5187fdb7f9eb2404bdecc4635b3328/lucene-queryparser-8.8.2.jar

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (spring-data-elasticsearch version) Remediation Possible** Reachability
CVE-2022-22965 Critical 9.8 spring-beans-5.3.9.jar Transitive N/A*
CVE-2021-37137 High 7.5 netty-codec-4.1.67.Final.jar Transitive N/A*
CVE-2021-37136 High 7.5 netty-codec-4.1.67.Final.jar Transitive N/A*
CVE-2023-34462 Medium 6.5 netty-handler-4.1.67.Final.jar Transitive N/A*
CVE-2021-43797 Medium 6.5 netty-codec-http-4.1.67.Final.jar Transitive N/A*
CVE-2022-24823 Medium 5.5 netty-common-4.1.67.Final.jar Transitive N/A*
WS-2021-0646 Medium 5.3 detected in multiple dependencies Transitive N/A*
CVE-2024-29025 Medium 5.3 netty-codec-http-4.1.67.Final.jar Transitive N/A*
CVE-2022-22970 Medium 5.3 spring-beans-5.3.9.jar Transitive N/A*

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2022-22965 ### Vulnerable Library - spring-beans-5.3.9.jar

Spring Beans

Library home page: https://spring.io/projects/spring-framework

Path to dependency file: /spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-actuator-custom-security/build.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-beans/5.3.9/48600db2cb1abc0f7ef2b073f0c1abd78a83bcfc/spring-beans-5.3.9.jar

Dependency Hierarchy: - spring-data-elasticsearch-4.3.0-M2.jar (Root Library) - spring-tx-5.3.9.jar - :x: **spring-beans-5.3.9.jar** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

A Spring MVC or Spring WebFlux application running on JDK 9+ may be vulnerable to remote code execution (RCE) via data binding. The specific exploit requires the application to run on Tomcat as a WAR deployment. If the application is deployed as a Spring Boot executable jar, i.e. the default, it is not vulnerable to the exploit. However, the nature of the vulnerability is more general, and there may be other ways to exploit it. Mend Note: Converted from WS-2022-0107, on 2022-11-07.

Publish Date: 2022-04-01

URL: CVE-2022-22965

### CVSS 3 Score Details (9.8)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: High

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://spring.io/blog/2022/03/31/spring-framework-rce-early-announcement

Release Date: 2022-04-01

Fix Resolution: org.springframework:spring-beans:5.2.20.RELEASE,5.3.18

CVE-2021-37137 ### Vulnerable Library - netty-codec-4.1.67.Final.jar

Library home page: https://netty.io/

Path to dependency file: /spring-boot-project/spring-boot-test-autoconfigure/build.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec/4.1.67.Final/292e818822a4fca4e9f3ad711cdd46362f69590a/netty-codec-4.1.67.Final.jar

Dependency Hierarchy: - spring-data-elasticsearch-4.3.0-M2.jar (Root Library) - transport-netty4-client-7.13.4.jar - :x: **netty-codec-4.1.67.Final.jar** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

The Snappy frame decoder function doesn't restrict the chunk length which may lead to excessive memory usage. Beside this it also may buffer reserved skippable chunks until the whole chunk was received which may lead to excessive memory usage as well. This vulnerability can be triggered by supplying malicious input that decompresses to a very big size (via a network stream or a file) or by sending a huge skippable chunk.

Publish Date: 2021-10-19

URL: CVE-2021-37137

### CVSS 3 Score Details (7.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-9vjp-v76f-g363

Release Date: 2021-10-19

Fix Resolution: io.netty:netty-codec:4.1.68.Final;io.netty:netty-all:4.1.68.Final

CVE-2021-37136 ### Vulnerable Library - netty-codec-4.1.67.Final.jar

Library home page: https://netty.io/

Path to dependency file: /spring-boot-project/spring-boot-test-autoconfigure/build.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec/4.1.67.Final/292e818822a4fca4e9f3ad711cdd46362f69590a/netty-codec-4.1.67.Final.jar

Dependency Hierarchy: - spring-data-elasticsearch-4.3.0-M2.jar (Root Library) - transport-netty4-client-7.13.4.jar - :x: **netty-codec-4.1.67.Final.jar** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

The Bzip2 decompression decoder function doesn't allow setting size restrictions on the decompressed output data (which affects the allocation size used during decompression). All users of Bzip2Decoder are affected. The malicious input can trigger an OOME and so a DoS attack

Publish Date: 2021-10-19

URL: CVE-2021-37136

### CVSS 3 Score Details (7.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/netty/netty/security/advisories/GHSA-grg4-wf29-r9vv

Release Date: 2021-10-19

Fix Resolution: io.netty:netty-codec:4.1.68.Final;io.netty:netty-all::4.1.68.Final

CVE-2023-34462 ### Vulnerable Library - netty-handler-4.1.67.Final.jar

Library home page: https://netty.io/

Path to dependency file: /spring-boot-project/spring-boot-test-autoconfigure/build.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/io.netty/netty-handler/4.1.67.Final/62640a6524e1c08d6e8ac06556892b5e1362392f/netty-handler-4.1.67.Final.jar

Dependency Hierarchy: - spring-data-elasticsearch-4.3.0-M2.jar (Root Library) - transport-netty4-client-7.13.4.jar - :x: **netty-handler-4.1.67.Final.jar** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients. The `SniHandler` can allocate up to 16MB of heap for each channel during the TLS handshake. When the handler or the channel does not have an idle timeout, it can be used to make a TCP server using the `SniHandler` to allocate 16MB of heap. The `SniHandler` class is a handler that waits for the TLS handshake to configure a `SslHandler` according to the indicated server name by the `ClientHello` record. For this matter it allocates a `ByteBuf` using the value defined in the `ClientHello` record. Normally the value of the packet should be smaller than the handshake packet but there are not checks done here and the way the code is written, it is possible to craft a packet that makes the `SslClientHelloHandler`. This vulnerability has been fixed in version 4.1.94.Final.

Publish Date: 2023-06-22

URL: CVE-2023-34462

### CVSS 3 Score Details (6.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: Low - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-6mjq-h674-j845

Release Date: 2023-06-22

Fix Resolution: io.netty:netty-handler:4.1.94.Final;io.netty:netty-all:4.1.94.Final

CVE-2021-43797 ### Vulnerable Library - netty-codec-http-4.1.67.Final.jar

Library home page: https://netty.io/

Path to dependency file: /spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-r2dbc-liquibase/build.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-http/4.1.67.Final/e282137917c67332fa9a414df89f89a93487aede/netty-codec-http-4.1.67.Final.jar

Dependency Hierarchy: - spring-data-elasticsearch-4.3.0-M2.jar (Root Library) - transport-netty4-client-7.13.4.jar - :x: **netty-codec-http-4.1.67.Final.jar** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients. Netty prior to version 4.1.71.Final skips control chars when they are present at the beginning / end of the header name. It should instead fail fast as these are not allowed by the spec and could lead to HTTP request smuggling. Failing to do the validation might cause netty to "sanitize" header names before it forward these to another remote system when used as proxy. This remote system can't see the invalid usage anymore, and therefore does not do the validation itself. Users should upgrade to version 4.1.71.Final. Mend Note: After conducting further research, Mend has determined that all versions of netty up to version 4.1.71.Final are vulnerable to CVE-2021-43797.

Publish Date: 2021-12-09

URL: CVE-2021-43797

### CVSS 3 Score Details (6.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: High - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: CVE-2021-43797

Release Date: 2021-12-09

Fix Resolution: io.netty:netty-codec-http:4.1.71.Final,io.netty:netty-all:4.1.71.Final

CVE-2022-24823 ### Vulnerable Library - netty-common-4.1.67.Final.jar

Library home page: https://netty.io/

Path to dependency file: /spring-boot-project/spring-boot-test-autoconfigure/build.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/io.netty/netty-common/4.1.67.Final/a86a19033588a07e159ff95818845b1ec86b2281/netty-common-4.1.67.Final.jar

Dependency Hierarchy: - spring-data-elasticsearch-4.3.0-M2.jar (Root Library) - transport-netty4-client-7.13.4.jar - :x: **netty-common-4.1.67.Final.jar** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

Netty is an open-source, asynchronous event-driven network application framework. The package `io.netty:netty-codec-http` prior to version 4.1.77.Final contains an insufficient fix for CVE-2021-21290. When Netty's multipart decoders are used local information disclosure can occur via the local system temporary directory if temporary storing uploads on the disk is enabled. This only impacts applications running on Java version 6 and lower. Additionally, this vulnerability impacts code running on Unix-like systems, and very old versions of Mac OSX and Windows as they all share the system temporary directory between all users. Version 4.1.77.Final contains a patch for this vulnerability. As a workaround, specify one's own `java.io.tmpdir` when starting the JVM or use DefaultHttpDataFactory.setBaseDir(...) to set the directory to something that is only readable by the current user.

Publish Date: 2022-05-06

URL: CVE-2022-24823

### CVSS 3 Score Details (5.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: Low - Privileges Required: Low - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: None - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24823

Release Date: 2022-05-06

Fix Resolution: io.netty:netty-all;io.netty:netty-common - 4.1.77.Final

WS-2021-0646 ### Vulnerable Libraries - lucene-suggest-8.8.2.jar, lucene-analyzers-common-8.8.2.jar, lucene-core-8.8.2.jar, lucene-queryparser-8.8.2.jar

### lucene-suggest-8.8.2.jar

Lucene Suggest Module

Library home page: http://www.apache.org/

Path to dependency file: /spring-boot-project/spring-boot-tools/spring-boot-test-support/build.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-suggest/8.8.2/36fd5301e7143f0fcb0ba933f96148dc1e132b66/lucene-suggest-8.8.2.jar

Dependency Hierarchy: - spring-data-elasticsearch-4.3.0-M2.jar (Root Library) - elasticsearch-rest-high-level-client-7.13.4.jar - elasticsearch-7.13.4.jar - :x: **lucene-suggest-8.8.2.jar** (Vulnerable Library) ### lucene-analyzers-common-8.8.2.jar

Additional Analyzers

Library home page: http://www.apache.org/

Path to dependency file: /spring-boot-project/spring-boot-tools/spring-boot-test-support/build.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-analyzers-common/8.8.2/fa4b3c1d847f4bb91a3afaa990889dd164883d86/lucene-analyzers-common-8.8.2.jar

Dependency Hierarchy: - spring-data-elasticsearch-4.3.0-M2.jar (Root Library) - elasticsearch-rest-high-level-client-7.13.4.jar - elasticsearch-7.13.4.jar - :x: **lucene-analyzers-common-8.8.2.jar** (Vulnerable Library) ### lucene-core-8.8.2.jar

Apache Lucene Java Core

Library home page: http://www.apache.org/

Path to dependency file: /spring-boot-project/spring-boot-tools/spring-boot-test-support/build.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-core/8.8.2/e039fa90ee900c475bbc0943989ed5dccc556d3e/lucene-core-8.8.2.jar

Dependency Hierarchy: - spring-data-elasticsearch-4.3.0-M2.jar (Root Library) - elasticsearch-rest-high-level-client-7.13.4.jar - elasticsearch-7.13.4.jar - :x: **lucene-core-8.8.2.jar** (Vulnerable Library) ### lucene-queryparser-8.8.2.jar

Lucene QueryParsers module

Library home page: http://www.apache.org/

Path to dependency file: /spring-boot-project/spring-boot-tools/spring-boot-test-support/build.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-queryparser/8.8.2/67c6580f8a5187fdb7f9eb2404bdecc4635b3328/lucene-queryparser-8.8.2.jar

Dependency Hierarchy: - spring-data-elasticsearch-4.3.0-M2.jar (Root Library) - elasticsearch-rest-high-level-client-7.13.4.jar - elasticsearch-7.13.4.jar - :x: **lucene-queryparser-8.8.2.jar** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

Apache Lucene through 7.x and 8.x before 8.10 is vulnerable to a denial of service. By sending a specific regular expression query, a remote attacker could exploit this vulnerability to consume all available CPU resources.

Publish Date: 2021-05-11

URL: WS-2021-0646

### CVSS 3 Score Details (5.3)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: Low

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://exchange.xforce.ibmcloud.com/vulnerabilities/216835

Release Date: 2021-05-11

Fix Resolution: org.apache.lucene:lucene-analyzers-common:8.10.0, org.apache.lucene:lucene-core:8.10.0,9.0.0, org.apache.lucene:lucene-queryparser:8.10.0,9.0.0, org.apache.lucene:lucene-suggest:8.10.0,9.0.0

CVE-2024-29025 ### Vulnerable Library - netty-codec-http-4.1.67.Final.jar

Library home page: https://netty.io/

Path to dependency file: /spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-r2dbc-liquibase/build.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-http/4.1.67.Final/e282137917c67332fa9a414df89f89a93487aede/netty-codec-http-4.1.67.Final.jar

Dependency Hierarchy: - spring-data-elasticsearch-4.3.0-M2.jar (Root Library) - transport-netty4-client-7.13.4.jar - :x: **netty-codec-http-4.1.67.Final.jar** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients. The `HttpPostRequestDecoder` can be tricked to accumulate data. While the decoder can store items on the disk if configured so, there are no limits to the number of fields the form can have, an attacher can send a chunked post consisting of many small fields that will be accumulated in the `bodyListHttpData` list. The decoder cumulates bytes in the `undecodedChunk` buffer until it can decode a field, this field can cumulate data without limits. This vulnerability is fixed in 4.1.108.Final.

Publish Date: 2024-03-25

URL: CVE-2024-29025

### CVSS 3 Score Details (5.3)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: Low

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://www.cve.org/CVERecord?id=CVE-2024-29025

Release Date: 2024-03-25

Fix Resolution: io.netty:netty-codec-http:4.1.108.Final

CVE-2022-22970 ### Vulnerable Library - spring-beans-5.3.9.jar

Spring Beans

Library home page: https://spring.io/projects/spring-framework

Path to dependency file: /spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-actuator-custom-security/build.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-beans/5.3.9/48600db2cb1abc0f7ef2b073f0c1abd78a83bcfc/spring-beans-5.3.9.jar

Dependency Hierarchy: - spring-data-elasticsearch-4.3.0-M2.jar (Root Library) - spring-tx-5.3.9.jar - :x: **spring-beans-5.3.9.jar** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

In spring framework versions prior to 5.3.20+ , 5.2.22+ and old unsupported versions, applications that handle file uploads are vulnerable to DoS attack if they rely on data binding to set a MultipartFile or javax.servlet.Part to a field in a model object.

Publish Date: 2022-05-12

URL: CVE-2022-22970

### CVSS 3 Score Details (5.3)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: Low - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://tanzu.vmware.com/security/cve-2022-22970

Release Date: 2022-05-12

Fix Resolution: org.springframework:spring-beans:5.2.22,5.3.20;org.springframework:spring-core:5.2.22,5.3.20

mend-for-github-com[bot] commented 1 week ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.