Jknack handlebars.java
handlebars.java FileTemplateLoader Path Traversal
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CNA · CWE-22
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
jknack handlebars.java
- < 4.5.2
Fixed in 4.5.2
Mitigation
Upgrade handlebars.java to 4.5.2 or later.
References
- Vendor advisory github.com/jknack/handlebars.java/security/adv…
- Patch github.com/jknack/handlebars.java/commit/d177c…
- Release notes github.com/jknack/handlebars.java/releases/tag…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.