snowdensb / spring-boot

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

spring-kafka-test-2.8.0-M2.jar: 2 vulnerabilities (highest severity is: 9.8) - autoclosed #369

Closed mend-for-github-com[bot] closed 6 days ago

mend-for-github-com[bot] commented 6 months ago
Vulnerable Library - spring-kafka-test-2.8.0-M2.jar

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

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.scala-lang/scala-library/2.13.5/d0df6e78b6ccb0102cb0395bfa8cb806e9e81b61/scala-library-2.13.5.jar

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (spring-kafka-test version) Remediation Possible** Reachability
CVE-2022-36944 Critical 9.8 scala-library-2.13.5.jar Transitive N/A*
CVE-2023-44981 Critical 9.1 zookeeper-3.5.9.jar Transitive 3.1.0

*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-36944 ### Vulnerable Library - scala-library-2.13.5.jar

Standard library for the Scala Programming Language

Library home page: https://lamp.epfl.ch/

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

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.scala-lang/scala-library/2.13.5/d0df6e78b6ccb0102cb0395bfa8cb806e9e81b61/scala-library-2.13.5.jar

Dependency Hierarchy: - spring-kafka-test-2.8.0-M2.jar (Root Library) - kafka_2.13-2.8.0.jar - :x: **scala-library-2.13.5.jar** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

Scala 2.13.x before 2.13.9 has a Java deserialization chain in its JAR file. On its own, it cannot be exploited. There is only a risk in conjunction with Java object deserialization within an application. In such situations, it allows attackers to erase contents of arbitrary files, make network connections, or possibly run arbitrary code (specifically, Function0 functions) via a gadget chain.

Publish Date: 2022-09-23

URL: CVE-2022-36944

### 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

Release Date: 2022-09-23

Fix Resolution: org.scala-lang:scala-library:2.13.9

CVE-2023-44981 ### Vulnerable Library - zookeeper-3.5.9.jar

ZooKeeper server

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

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

Path to vulnerable library: /tmp/ws-ua_20210819203824_LAJIKJ/downloadResource_ADCYET/20210819220508/zookeeper-3.5.9.jar

Dependency Hierarchy: - spring-kafka-test-2.8.0-M2.jar (Root Library) - kafka_2.13-2.8.0.jar - :x: **zookeeper-3.5.9.jar** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

Authorization Bypass Through User-Controlled Key vulnerability in Apache ZooKeeper. If SASL Quorum Peer authentication is enabled in ZooKeeper (quorum.auth.enableSasl=true), the authorization is done by verifying that the instance part in SASL authentication ID is listed in zoo.cfg server list. The instance part in SASL auth ID is optional and if it's missing, like 'eve@EXAMPLE.COM', the authorization check will be skipped. As a result an arbitrary endpoint could join the cluster and begin propagating counterfeit changes to the leader, essentially giving it complete read-write access to the data tree. Quorum Peer authentication is not enabled by default. Users are recommended to upgrade to version 3.9.1, 3.8.3, 3.7.2, which fixes the issue. Alternately ensure the ensemble election/quorum communication is protected by a firewall as this will mitigate the issue. See the documentation for more details on correct cluster administration.

Publish Date: 2023-10-11

URL: CVE-2023-44981

### CVSS 3 Score Details (9.1)

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: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://lists.apache.org/thread/wf0yrk84dg1942z1o74kd8nycg6pgm5b

Release Date: 2023-10-11

Fix Resolution (org.apache.zookeeper:zookeeper): 3.7.2

Direct dependency fix Resolution (org.springframework.kafka:spring-kafka-test): 3.1.0

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.

:rescue_worker_helmet:Automatic Remediation will be attempted for this issue.

mend-for-github-com[bot] commented 6 days 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.