http4k file disclosure in Thymeleaf template resolution
http4k
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| http4k http4k |
|
|
Original description
http4k before 6.62.0.0-ee contains a path traversal vulnerability in ThymeleafTemplates Caching and HotReload that allows unauthenticated attackers to read files outside baseTemplateDir by supplying ../ segments in ViewModel.template() values. Attackers can influence request-driven template selection so Thymeleaf's FileTemplateResolver resolves escaped paths without containment checks, disclosing any file readable by the server process.
From the CVE record · VulnCheck