CVE-2023-38286
Spring-boot-admin sandbox bypass via crafted HTML
Description
Thymeleaf through 3.1.1.RELEASE as used in spring-boot-admin (aka Spring Boot Admin) through 3.1.1 allows for a sandbox bypass via crafted HTML. This may be relevant for SSTI (Server Side Template Injection) and code execution in spring-boot-admin if MailNotifier is enabled and there is write access to environment variables via the UI.
Spring Boot Admin 3.1.2 and 2.7.16 contain mitigations for the issue. This bypass is achived via a library called Thymeleaf which has added counter measures for this sort of bypass in version 3.1.2.RELEASE which has explicity forbidden static access to org.springframework.util in expressions. Thymeleaf itself should not be considered vulnerable.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| de.codecentric » spring-boot-admin-server | < 2.7.16>= 3.0.0, < 3.1.2 | 2.7.16, 3.1.2 |
Blast radius
71% of the dependent artifacts (53) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 611 |
| 2 hops | 753 |
| 3 hops | 22 |
| 4 hops | 12 |
| 5 hops | 2 |
Most used dependents
- de.codecentric » spring-boot-admin-starter-server65 usages
- de.codecentric » spring-boot-admin-server-ui24 usages
- io.github.eaopen » eap-module-infra-rest4 usages
- de.codecentric » spring-boot-admin-server-cloud3 usages
- de.codecentric » spring-boot-admin-server-ui-turbine3 usages
- io.github.eaopen » eap-module-infra-biz3 usages
- io.gitee.xiaoyudeguang » framework-common-boot2 usages
- org.apereo.cas » cas-server-webapp-init-bootadmin-server1 usages
- be.cumuli » sba-app1 usages
- be.cumuli » sba-oauth-app1 usages
- io.github.rocketmix » rocketmix-routing-server1 usages
- io.github.rocketmix » rocketmix-management-server1 usages
- io.github.zhanghongbin » zebra-spring-boot-starter-monitoring1 usages
- cn.koala » koala-admin-server1 usages
- io.gitee.xiaoyudeguang » framework-common-dicode1 usages
Computed from the dependency graph of build 20261125.2201 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2023-38286 | nvd.nist.gov |
| Package | codecentric/spring-boot-admin | github.com |
| Web | codecentric/spring-boot-admin issue #2613 | github.com |
| Web | thymeleaf/thymeleaf issue #966 | github.com |
| Web | codecentric/spring-boot-admin pull request #2615 | github.com |
| Web | codecentric/spring-boot-admin commit f1f6ac6 | github.com |
| Web | codecentric/spring-boot-admin commit f1f6ac6 | github.com |
| Web | codecentric/spring-boot-admin pom.xml | github.com |
| Web | p1n93r/SpringBootAdmin-thymeleaf-SSTI | github.com |
