Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-r4gv-qr8j-p3pg

Опубликовано: 17 июн. 2026
Источник: github
Github: Прошло ревью
CVSS3: 7.5

Описание

handlebars.java FileTemplateLoader Path Traversal

Impact

Any application that passes user-controlled input to Handlebars.compile() using a FileTemplateLoader (or ClassPathTemplateLoader) is vulnerable to arbitrary file read. This is a realistic attack surface for web applications that use template names from URL path parameters, request parameters, or other user-controlled sources.

Patches

com.github.jknack:handlebars:4.5.2

Workarounds

Validate template name is derived from user input.

if (!file.getPath().startsWith(new File(prefix).getCanonicalPath())) { throw new IOException("Path traversal attempt detected: " + location); }

Пакеты

Наименование

com.github.jknack:handlebars

maven
Затронутые версииВерсия исправления

< 4.5.2

4.5.2

EPSS

Процентиль: 43%
0.0053
Низкий

7.5 High

CVSS3

Дефекты

CWE-22

Связанные уязвимости

CVSS3: 7.5
nvd
2 месяца назад

Handlebars.java provides logic-less and semantic Mustache templates with Java. Prior to 4.5.2, applications that pass user-controlled input to Handlebars.compile() using FileTemplateLoader or ClassPathTemplateLoader are vulnerable to path traversal, allowing arbitrary file read through template names derived from URL path parameters, request parameters, or other user-controlled sources. This issue is fixed in version 4.5.2.

EPSS

Процентиль: 43%
0.0053
Низкий

7.5 High

CVSS3

Дефекты

CWE-22