CVE-2025-59340

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.

Risk Information

Base Score
10.0
MODERATE
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS Score
Exploitation Probability
0.553

Associated Vulnerability

VulnerabilityOS Platform
Vulnerabilities CVE-2025-59340 are fixed in HubSpot-jinjava 2.8.1Windows
Vulnerabilities CVE-2025-59340 are fixed in HubSpot-jinjava 2.7.5Windows
Vulnerabilities CVE-2025-59340 are fixed in HubSpot-jinjava for Linux 2.8.1Linux
Vulnerabilities CVE-2025-59340 are fixed in HubSpot-jinjava for Linux 2.7.5Linux

Patch Details

No records found

References

https://nvd.nist.gov/vuln/detail/CVE-2023-1234
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-1234