CVE-2023-38286
Java vulnerability analysis and mitigation

Overview

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 vulnerability was discovered on July 14, 2023, and primarily affects applications using Spring Boot Admin with specific configurations (NVD).

Technical details

The vulnerability is characterized by a sandbox bypass that enables attackers to circumvent Thymeleaf's blacklists rather than using reflection-based escapes. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with the vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H. The issue specifically manifests when Spring Boot Admin is configured with MailNotifier enabled and has write access to environment variables via the UI (NVD, GitHub POC).

Impact

When successfully exploited, this vulnerability can lead to Remote Code Execution (RCE) in spring-boot-admin if MailNotifier is enabled and there is write access to environment variables via the UI. Additionally, the vulnerability can be exploited for arbitrary file reading if an attacker can modify the template attribute of MailNotifier to point to local files or files under the classpath of the spring-boot-admin application (GitHub POC).

Mitigation and workarounds

Several workarounds have been recommended to mitigate this vulnerability: 1) Disable any MailNotifier functionality, 2) Disable write access (POST request) on the /env actuator endpoint, 3) Limit the template attribute of MailNotifier to specific options and avoid using http:// or file:/// protocols. For a permanent fix, users should upgrade to versions newer than Spring Boot Admin 3.1.1 and Thymeleaf 3.1.1.RELEASE (GitHub POC).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management