temporalio / temporalio/samples-java

spring-kafka-2.8.11.jar: 1 vulnerabilities (highest severity is: 7.8)

未关闭
#494 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Mend: dependency security vulnerability
主要语言
Java
星标
258
派生
189
平均合并
6 天 4 小时
30 天内合并 PR
4

描述

Vulnerable Library - spring-kafka-2.8.11.jar

Spring Kafka Support

Path to dependency file: /springboot/build.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.springframework.kafka/spring-kafka/2.8.11/7068d24ea230111777ce60232fa39d4e570d4709/spring-kafka-2.8.11.jar

Found in HEAD commit: [d9d6bd3ab59971d099644378433aab2e4f88ed1a](https://github.com/temporalio/samples-java/commit/d9d6bd3ab59971d099644378433aab2e4f88ed1a)

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (spring-kafka version) Remediation Possible**
CVE-2023-34040 High 7.8 spring-kafka-2.8.11.jar Direct 2.9.11

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

Details

CVE-2023-34040
Vulnerable Library - spring-kafka-2.8.11.jar

Spring Kafka Support

Path to dependency file: /springboot/build.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.springframework.kafka/spring-kafka/2.8.11/7068d24ea230111777ce60232fa39d4e570d4709/spring-kafka-2.8.11.jar

Dependency Hierarchy:

  • spring-kafka-2.8.11.jar (Vulnerable Library)

Found in HEAD commit: [d9d6bd3ab59971d099644378433aab2e4f88ed1a](https://github.com/temporalio/samples-java/commit/d9d6bd3ab59971d099644378433aab2e4f88ed1a)

Found in base branch: main

Vulnerability Details

In Spring for Apache Kafka 3.0.9 and earlier and versions 2.9.10 and earlier, a possible deserialization attack vector existed, but only if unusual configuration was applied. An attacker would have to construct a malicious serialized object in one of the deserialization exception record headers.

Specifically, an application is vulnerable when all of the following are true:

  • The user does not configure an ErrorHandlingDeserializer for the key and/or value of the record
  • The user explicitly sets container properties checkDeserExWhenKeyNull and/or checkDeserExWhenValueNull container properties to true.
  • The user allows untrusted sources to publish to a Kafka topic

By default, these properties are false, and the container only attempts to deserialize the headers if an ErrorHandlingDeserializer is configured. The ErrorHandlingDeserializer prevents the vulnerability by removing any such malicious headers before processing the record.

Publish Date: 2023-08-24

URL: [CVE-2023-34040](https://www.mend.io/vulnerability-database/CVE-2023-34040)

CVSS 3 Score Details (7.8)

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: High
    • Availability Impact: High

For more information on CVSS3 Scores, click [here](https://www.first.org/cvss/calculator/3.0).

Suggested Fix

Type: Upgrade version

Origin: [https://spring.io/security/cve-2023-34040](https://spring.io/security/cve-2023-34040)

Release Date: 2023-08-24

Fix Resolution: 2.9.11

⛑️ Automatic Remediation will be attempted for this issue.


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

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

打开 /springboot/build.gradle,检查当前解析为 2.8.11 的直接 spring-kafka 依赖。将其升级到指定的修复版本 2.9.11,然后运行项目的依赖检查或安全检查,以确认不再报告 CVE-2023-34040。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, spring
领域
build-system, security
Issue 类型
缺陷
难度
1/5
预计耗时
1 小时以内
活跃度
停滞
描述清晰度
描述清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。