[BUG] sentinel-dashboard: upgrade Spring Boot 2.5.12 -> 2.5.15 for known CVEs
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 62/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- java, spring-boot
- 领域
- build-system, security
调研方向
版本由 sentinel-dashboard/pom.xml 中的 spring.boot.version 属性设置,当前为 2.5.12。将其升级到 2.5.15,然后使用 mvn -pl sentinel-dashboard -am install -DskipTests 重新构建,并运行 mvn -pl sentinel-dashboard dependency:list -DincludeScope=runtime,确认列出的版本与表格一致。完成标准是列出的版本与安全公告的修复版本一致,并且 dashboard 在 Java 8 上仍能构建和启动。
由索引模型根据 Issue 内容生成。
描述
Issue Description
sentinel-dashboard on the 1.8 branch (1.8.11-SNAPSHOT, also the 1.8.10 release) is built with Spring Boot 2.5.12 (spring.boot.version in sentinel-dashboard/pom.xml). The libraries it brings into the dashboard jar have known vulnerabilities that are fixed in 2.5.15, the last 2.5.x release. 2.5.15 still supports Java 8, like the rest of the dashboard.
Describe what happened
A dependency scan of the dashboard jar reports these advisories, fixed by 2.5.15 and the versions it manages:
| Library (2.5.12 -> 2.5.15) | Advisory | Severity |
|---|---|---|
| spring-webmvc 5.3.18 -> 5.3.27 | CVE-2023-20860 | Critical |
| spring-boot-autoconfigure 2.5.12 -> 2.5.15 | CVE-2023-20883 | High |
| spring-beans 5.3.18 -> 5.3.27 | CVE-2022-22970 | High |
| spring-context 5.3.18 -> 5.3.27 | CVE-2022-22968 | High |
| spring-expression 5.3.18 -> 5.3.27 | CVE-2023-20863 (High), CVE-2023-20861 (Moderate) | |
| tomcat-embed-core 9.0.60 -> 9.0.75 | CVE-2022-42252, CVE-2022-45143, CVE-2023-24998 | High |
| jackson-databind 2.12.6.1 -> 2.12.7.1 | CVE-2022-42003, CVE-2022-42004 | High |
Describe what you expected to happen
The dashboard ships the patched versions of its own Spring Boot line.
How to reproduce it (as minimally and precisely as possible)
mvn -pl sentinel-dashboard -am install -DskipTestsmvn -pl sentinel-dashboard dependency:list -DincludeScope=runtime- Compare the listed versions with the advisories above.
Tell us your environment
1.8 branch at a3f40ba; JDK 17 for the build; the dashboard run on Java 8 and Java 17.
Anything else we need to know?
This is a minimal, same-line upgrade. It does not fix everything: newer advisories for Tomcat 9.0.x, Spring Framework 5.3.x and Spring Boot need versions beyond the 2.5 line (Spring Boot 2.7 or 3.x), which is a larger change. A PR for the 2.5.15 bump follows.
- 主要语言
- Java
- 星标
- 23.1k
- 派生
- 8.1k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
alibaba/Sentinel 的其他 Issue
-
[BUG] sentinel-spring-webflux-adapter 在 Spring WebFlux 6.2.x 下触发限流时抛出 NoSuchMethodError可能已有人在做 @amalsaidov 于 6 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
-
[DOC] Correct method-name typo in WebMVC interceptor example可能已有人在做 @vietdungnguyen2005 于 18 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 95/100
-
README: broken Keruyun (客如云) logo image link in "Who is using" section (404)可能已有人在做 @525600Cloud2 于 86 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 92/100
-
fix: replace printStackTrace with RecordLog in ConfigUtil可能重新可做 @yichao0824 于 118 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 4/5 3-5 天 新手友好度 35/100
相似的 Issue
-
Add contributing guide可能已有人在做 @WadekarPrashant 今天认领。 未关闭good first issue
难度 1/5 1-3 小时 新手友好度 88/100
jenkinsci/gitea-checks-plugin#382 · 1 条评论 ·
-
enhancement infra
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
5.0.x backport bug
难度 1/5 1 小时以内 新手友好度 68/100
spring-cloud/spring-cloud-function#1569 ·
维护者通常 1 天内回复
-
Move the spring-cloud-commons version and BOM import from the bus parent to the stream parent可能已有人在做 @olegz 今天认领。 未关闭task
难度 2/5 1-3 小时 新手友好度 74/100
spring-cloud/spring-cloud-stream#3355 ·
维护者通常 1 天内回复
-
bug untriaged
难度 2/5 1-3 小时 新手友好度 72/100
opensearch-project/opensearch-java#2342 ·
维护者通常 1 天内回复