CVE-2025-59340

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:hubspot:jinjava:*:*:*:*:*:*:*:*

History

17 Jun 2026, 09:45

Type Values Removed Values Added
Summary
  • (es) jinjava es un motor de plantillas basado en Java, basado en la sintaxis de plantillas de Django, adaptado para renderizar plantillas Jinja. Anterior a 2.8.1, al usar mapper.getTypeFactory().constructFromCanonical(), es posible instruir al ObjectMapper subyacente para deserializar la entrada controlada por el atacante en clases arbitrarias. Esto permite la creación de instancias de clases semi-arbitrarias sin invocar directamente métodos restringidos o literales de clase. Como resultado, un atacante puede escapar de la sandbox e instanciar clases como java.net.URL, abriendo la capacidad de acceder a archivos locales y URLs (por ejemplo, file:///etc/p4sswd). Con un encadenamiento adicional, esta primitiva puede potencialmente conducir a la ejecución remota de código (RCE). Esta vulnerabilidad está corregida en 2.8.1.

25 Sep 2025, 20:22

Type Values Removed Values Added
First Time Hubspot
Hubspot jinjava
CPE cpe:2.3:a:hubspot:jinjava:*:*:*:*:*:*:*:*
References () https://github.com/HubSpot/jinjava/commit/66df351e7e8ad71ca04dcacb4b65782af820b8b1 - () https://github.com/HubSpot/jinjava/commit/66df351e7e8ad71ca04dcacb4b65782af820b8b1 - Patch
References () https://github.com/HubSpot/jinjava/releases/tag/jinjava-2.8.1 - () https://github.com/HubSpot/jinjava/releases/tag/jinjava-2.8.1 - Release Notes
References () https://github.com/HubSpot/jinjava/security/advisories/GHSA-m49c-g9wr-hv6v - () https://github.com/HubSpot/jinjava/security/advisories/GHSA-m49c-g9wr-hv6v - Vendor Advisory

17 Sep 2025, 20:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-09-17 20:15

Updated : 2026-06-17 09:45


NVD link : CVE-2025-59340

Mitre link : CVE-2025-59340

CVE.ORG link : CVE-2025-59340


JSON object : View

Products Affected

hubspot

  • jinjava
CWE
CWE-1336

Improper Neutralization of Special Elements Used in a Template Engine