[安全漏洞] Spring Framework 5.3.39 命中 CVE-2024-38816
- Dominant language
- Java
- Stars
- 1.9k
- Forks
- 372
- PR merge metrics
- No merged PRs in 30d
Description
### 使用的JDK版本、Jpom版本、操作系统及系统版本
- Jpom:GitHub master 当前根 `pom.xml` 版本为 `2.11.12`
- JDK:根 `pom.xml` 中 `java.version` 为 `1.8`
- Spring Framework:`5.3.39`
- 操作系统:不限定,依赖版本安全扫描命中
### 问题描述(包括截图)
目前 Jpom 依赖的 Spring Framework 版本命中安全扫描规则:
- 软件:`spring 5.3.39`
- 命中规则:`spring version <= 5.3.39`
- 漏洞名称:Spring Framework 特定条件下目录遍历漏洞(CVE-2024-38816)
- CVE 编号:CVE-2024-38816
- CVSS:7.1
公开仓库 `master` 分支根 `pom.xml` 中仍声明:
```xml
5.3.39
```
参考链接:
- Jpom 依赖位置:https://github.com/dromara/Jpom/blob/master/pom.xml#L42
- Spring 官方公告:https://spring.io/security/cve-2024-38816
根据 Spring 官方公告,CVE-2024-38816 的 5.3.x 受影响范围包含 `5.3.0` 到 `5.3.39`,修复版本为 `5.3.40`。建议评估并升级 Spring Framework 到 `5.3.40` 或更高兼容版本;如果项目实际未使用该漏洞触发条件,也建议在依赖安全说明中标注原因,避免安全扫描持续告警。
### 报错信息
无运行时报错,为依赖安全扫描告警。
Contributor guide
No contributing guide indexed for this repository
Research direction
Review the root pom.xml at the declared spring-framework.version and compare it with Spring’s CVE-2024-38816 advisory. Check the dependency scan and compatibility with the project’s Java 8 setup; done means the affected version is no longer declared and the security warning is resolved or its applicability is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- backend, security
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 74/100