Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Spring MVC app using handlebars-springmvc with file: prefix
-
DeliveryCraft request with percent-encoded %2e%2e/ traversal as view name
-
ExploitEncoded string bypasses view-resolver and loader containment checks
-
ExecutionURL handler percent-decodes path, escapes template base
-
ImpactRead arbitrary files outside template directory
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path traversal prevention
|
| Exploitation Conditions | Exploitation requires a Spring MVC application using handlebars-springmvc 4.5.3 or 4.5.4 that (1) is configured with a file: template location prefix (rather than the classpath default) AND (2) derives the Handlebars view name from untrusted request input. Both conditions must hold: without the file: prefix or without request-controlled view names, the percent-encoded %2e%2e/ traversal cannot reach or escape the template base directory. These non-default configuration requirements are the primary limiting factors; no authentication or user interaction is otherwise needed, and impact is limited to reading files (confidentiality) outside the template base directory. |
| Impact | This is a genuine, cleanly-defined vulnerability but its real-world priority is moderate and highly configuration-dependent. The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N = 7.5) describes remote, unauthenticated, low-complexity arbitrary file read with confidentiality-only impact - consistent with the CWE-24 path-traversal classification and the description's arbitrary-file-read outcome. No EPSS score, no CISA KEV listing, and no public POC were provided, so there is no public exploit identified at time of analysis and no evidence of active exploitation; the risk signals therefore rest entirely on the CVSS vector and vendor advisory rather than on observed exploitation. The AC:L/PR:N framing slightly overstates ease-of-attack because exploitation is gated by a specific non-default deployment (a Spring MVC app using handlebars-springmvc with a file: template prefix AND a request-derived view name); the raw vector does not capture that precondition, which is the main reason to treat this as medium rather than critical priority. This is a real, patchable bug worth remediating for affected deployments, not an inflated high-CVSS-but-no-real-risk issue, but it is narrower than the 7.5 suggests. Note the affected-component nuance: the root library is Handlebars.java (<4.5.5), but the actual bypass lives in handlebars-springmvc 4.5.3/4.5.4, an incomplete fix for CVE-2026-63490. |
| Exploit ScenarioDerived | A Spring MVC application uses handlebars-springmvc (4.5.3 or 4.5.4) configured with a file: template prefix and resolves view names from user-supplied request data. A remote unauthenticated attacker submits a percent-encoded traversal sequence such as %2e%2e/%2e%2e/etc/passwd as the view name; the view-resolver containment check sees only the raw encoded string and passes it, while the URL handler percent-decodes the path when opening the file, escaping the template base directory and returning arbitrary file contents. No public exploit code was provided, but the mechanism is straightforward given the described encode/decode mismatch. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 30, 2026
Directory traversal in Handlebars.java before 4.5.5 lets unauthenticated remote attackers read arbitrary files outside the configured template base directory in Spring MVC applications that use the handlebars-springmvc integration. The flaw specifically affects handlebars-springmvc 4.5.3 and 4.5.4, where the path-containment check added for CVE-2026-63490 validates template locations as raw percent-encoded strings while the template file is ultimately opened through a URL handler that percent-decodes the path, so a request-derived view name containing %2e%2e/ slips past both the view-resolver and loader-side checks. Exploitation is not confirmed in the wild and no public exploit code has been identified at time of analysis, but it requires two non-default conditions to hold simultaneously: a file: template location prefix and a Handlebars view name derived from untrusted request input, which keeps real-world priority moderate despite the 7.5 CVSS score. Impact is limited to confidentiality (arbitrary file read); integrity and availability are unaffected.
RemediationAI
Vendor-released patch: upgrade to Handlebars.java 4.5.5 (https://github.com/jknack/handlebars.java/releases/tag/v4.5.5), which fixes the raw-versus-decoded containment mismatch; the corresponding upstream change is commit f6ae3979917d05bef07f00befb4013ef00503660 and the advisory is at https://github.com/jknack/handlebars.java/security/advisories/GHSA-pvrx-3g7m-fpgv. Upgrade every module in lockstep (handlebars, handlebars-springmvc, and the cache/helper/jackson modules), since the commit bumps all poms to 4.5.5. If immediate upgrade is not possible, apply compensating controls that break the two required preconditions: switch the template location prefix away from file: to the default classpath: prefix so template resolution no longer touches the filesystem through a decoding URL handler (side effect: filesystem-based template hot-reload or externally mounted template directories stop working); or stop deriving Handlebars view names from untrusted request input, mapping request parameters to a fixed server-side allowlist of view names instead (side effect: any dynamic-template feature must be redesigned, and any unmapped view name returns an error). As a defense-in-depth measure, normalize and fully percent-decode candidate paths before validating containment, and run the application under an OS-level account whose read access is restricted to the template directory so a residual traversal cannot reach sensitive files such as configuration or credential stores; note this is containment, not a fix, and does not remove the underlying bug.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability is a classic path traversal of the form '../filedir' (CWE-24) arising from a canonicalization mismatch between two layers of Handlebars.java's template resolution stack. Handlebars.java is a Java port of the Handlebars templating language, and handlebars-springmvc adapts it to Spring MVC as a ViewResolver; when a controller returns a view name, the resolver builds a template location and hands it to a TemplateLoader. In versions 4.5.3 and 4.5.4, the containment fix introduced for CVE-2026-63490 compared the requested location against the configured base directory using the raw, still percent-encoded string, whereas the underlying URL handler that actually opens the template resource percent-decodes the path before resolving it. Encoding alone (%2e%2e/ instead of ../) therefore satisfied the string-level containment check while the decoded path escaped the base directory, defeating both the view-resolver guard and the loader-side guard in one step. The affected configuration is one where the template location uses a file: prefix rather than the default classpath prefix, since classpath resolution does not expose the same decoded filesystem semantics; the CPE record cpe:2.3:a:jknack:handlebars.java:*:*:*:*:*:*:*:* reflects that all releases prior to 4.5.5 carry the vulnerable code path. The CVSS:3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N confirms the attack is network-reachable, low complexity, and unauthenticated, with a high confidentiality impact only.
Know when Java gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Remote unauthenticated encode/decode-mismatch traversal is low-complexity once the required file: prefix and request-derived view name are configured; impact is arbitrary file read only, so C:H, I:N, A:N.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
2DescriptionCVE.org
Handlebars.java before 4.5.5 allows directory traversal. In handlebars-springmvc 4.5.3 and 4.5.4, the path-containment fix for CVE-2026-63490 validates template locations as raw percent-encoded strings, whereas the template file is opened through a URL handler that percent-decodes the path. In a Spring MVC application with a file: template prefix and a request-derived view name, a percent-encoded traversal such as %2e%2e/ bypasses both the view-resolver check and the loader-side containment and reads files outside the configured template base directory.
Articles & Coverage 1
Technical POC Analysis
CWE-22 per the advisory's own weakness mapping (Improper Limitation of a Pathname to a Restricted Directory).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A directory traversal flaw in the Handlebars.java templating engine, shipped through the handlebars-springmvc integration in versions 4.5.3 and 4.5.4, could let an external party read files outside an application's designated template directory. Only Spring MVC applications that both point templates at a file:-based location and build view names from untrusted request input are exposed, so real-world reach is narrow, but a successful attack would silently leak configuration files, credentials, or source code. Leadership should care because the affected library is embedded directly in application code and no fixed release is available from the project today, meaning exposure must be reduced through configuration and code changes rather than a routine upgrade.
No vendor-released patch identified at time of analysis. Interim mitigations: eliminate the file: template location prefix and load templates from the classpath or a bundled resource root; never derive Handlebars view names directly from request input, instead mapping requests to a fixed allow-list of template names; percent-decode and canonicalize the resolved template path and reject anything that escapes the configured base directory; block or flag requests containing %2e%2e, %2f, or %5c in view-name parameters at the WAF or servlet filter layer; run the application under a least-privilege account with filesystem read access restricted to required directories; and alert on anomalous template parameter values in web logs.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
EUVD-2026-89555
GHSA-2m6h-5wp5-qp66
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB