Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-120316— http4k before 6.62.0.0-ee Path Traversal via ThymeleafTemplates Template Resolution

Quick assessment

Affected
http4k http4k
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

在版本 6.62.0.0-ee 之前的 http4k 中,ThymeleafTemplates 的缓存与热重载功能存在路径遍历漏洞。该漏洞允许未认证的攻击者通过在 的值中提供 片段,读取 目录之外的文件。攻击者可影响由请求驱动的模板选择过程,导致 Thymeleaf 的 在未执行包含检查的情况下解析已转义的路径,从而泄露服务器进程可读取的任何文件。

CVSS 5.9 · Medium
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-120316

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
http4k before 6.62.0.0-ee Path Traversal via ThymeleafTemplates Template Resolution
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
http4k http4k 0 ~ 6.62.0.0-ee -

II. Public POCs for CVE-2026-120316

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-120316

请登录查看更多情报信息。

Other References for CVE-2026-120316 (2)

IV. Related Vulnerabilities