← Back to browse · API

CVE-2025-59340

Severity
CRITICAL
CVSS
9.8
EPSS
0.02315
Risk score
40.01
CISA KEV
No
PoC
No
Published
2025-09-17
Modified
2025-09-18
First seen
2026-08-07
Aliases
EUVD-2025-29780, GHSA-M49C-G9WR-HV6V
Products
HubSpot:jinjava < 2.8.1
Sources
euvd EUVD-2025-29780

Description

jinjava is a Java-based template engine based on django template syntax, adapted to render jinja templates. Priori to 2.8.1, by using mapper.getTypeFactory().constructFromCanonical(), it is possible to instruct the underlying ObjectMapper to deserialize attacker-controlled input into arbitrary classes. This enables the creation of semi-arbitrary class instances without directly invoking restricted methods or class literals. As a result, an attacker can escape the sandbox and instantiate classes such as java.net.URL, opening up the ability to access local files and URLs(e.g., file:///etc/passwd). With further chaining, this primitive can potentially lead to remote code execution (RCE). This vulnerability is fixed in 2.8.1.

References