VDB

CVE-2025-59340

CVE-2025-59340 PUBLISHED CVSS 9.800000190734863 CRITICAL

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.

EPSS 1.27% · 79.8th percentile

Risk Scores

CVSS 3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score
1.27%
79.8th percentile

Affected Products

VendorProductVersions
hubspotjinjava0
HubSpotjinjava< 2.8.1
Mavencom.hubspot.jinjava:jinjava2.8.0, 0, 2.8.0

Timeline

  • Jan 21, 1970 Security Advisory
  • Sep 17, 2025 CVE Published
  • Sep 18, 2025 EPSS Score
  • Sep 18, 2025 PoC Published
  • Sep 19, 2025 PoC Published
  • Sep 19, 2025 PoC Published
  • Sep 19, 2025 PoC Published
  • Sep 20, 2025 PoC Published
  • Sep 22, 2025 PoC Published
  • Sep 22, 2025 PoC Published
  • Sep 25, 2025 EPSS Score
  • Oct 2, 2025 EPSS Score
Open in Interactive Console →
$ Console Community · 100/wk Open console ›