CVE-2025-59340

jinjava Sandbox Bypass via JavaType-Based Deserialization

Published Sep 17, 2025 CVSS 3.1 · 9.8 Critical EPSS 2.2% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-29780 jinjava has Sandbox Bypass via JavaType-Based Deserialization
Github GHSA Github GHSA GHSA-m49c-g9wr-hv6v jinjava has Sandbox Bypass via JavaType-Based Deserialization
History
Type Values Removed Values Added
CPEs cpe:2.3:a:hubspot:jinjava:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Hubspot
Hubspot jinjava
Vendors & Products Hubspot
Hubspot jinjava
Type Values Removed Values Added
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.
Title jinjava Sandbox Bypass via JavaType-Based Deserialization
Weaknesses CWE-1336
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 18, 2025, 3:45 PM
Reserved
Sep 12, 2025, 12:36 PM
Status
Analyzed
Published
Sep 17, 2025, 8:15 PM
Modified
Jun 17, 2026, 9:45 AM