CVE-2023-38286: Command Injection
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.
Other sources
Thymeleaf through 3.1.1.RELEASE, as used in spring-boot-admin (aka Spring Boot Admin) through 3.1.1 and other products, allows 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/de.codecentric:spring-boot-admin-serverto a version that resolves this vulnerability.Fixed in 2.7.16 - Upgrade
Upgrade
maven/de.codecentric:spring-boot-admin-serverto a version that resolves this vulnerability.Fixed in 3.1.2 - Upgrade
Upgrade
Spring Boot Adminto a version that resolves this vulnerability.Fixed in 3.1.2 - Upgrade
Upgrade
Spring Boot Adminto a version that resolves this vulnerability.Fixed in 2.7.16 - Upgrade
Upgrade
Thymeleafto a version that resolves this vulnerability.Fixed in 3.1.2.RELEASE
Event History
Frequently Asked Questions
What is the vulnerability ID of this issue?
The vulnerability ID is CVE-2023-38286.
What is the severity rating of CVE-2023-38286?
CVE-2023-38286 has a severity rating of 7.5, which is considered high.
How can this vulnerability be exploited?
This vulnerability can be exploited through crafted HTML, potentially leading to server-side template injection (SSTI) and code execution.
Which products are affected by CVE-2023-38286?
Products such as spring-boot-admin (Spring Boot Admin) versions up to 3.1.1, Codecentric Spring Boot Admin up to 3.1.0, and Thymeleaf up to 3.1.1 are affected by CVE-2023-38286.
How can I fix CVE-2023-38286?
To fix CVE-2023-38286, update the spring-boot-admin package to version 3.1.2, or check for updates from the respective product vendors.