CVE-2025-59340CWE-1336

jinjava Sandbox Bypass via JavaType-Based Deserialization

Critical · published September 17, 2025

CVSS v3.1
9.8
EPSS
2%
Percentile
81.6
In the wild
Unconfirmed
What it is

🚨 A crafty attack can slip through the cracks of jinjava and unleash chaos with a simple call to a mapper — it’s like giving an eager child the keys to the candy store! 🔥 Think of this vulnerability like a delivery driver who opens the gate to a secure facility just by showing a fake ID. In this case, the driver can access restricted areas and even take valuable files home without being stopped! An attacker can exploit this flaw to access sensitive local files, such as '/etc/passwd', and potentially escalate their privileges to execute malicious code remotely. This could lead to catastrophic data breaches and compromised systems, giving the attacker full rein over your environment!

Put simply

Think of this vulnerability like a delivery driver who opens the gate to a secure facility just by showing a fake ID. In this case, the driver can access restricted areas and even take valuable files home without being stopped! This vulnerability allows attackers to misuse the ObjectMapper's deserialization process, enabling them to instantiate arbitrary classes by manipulating input sent to mapper.getTypeFactory().constructFromCanonical(). This can lead to unauthorized access and even remote code execution if chained properly.

What to do

An attacker can exploit this flaw to access sensitive local files, such as '/etc/passwd', and potentially escalate their privileges to execute malicious code remotely. This could lead to catastrophic data breaches and compromised systems, giving the attacker full rein over your environment! To safeguard your systems, upgrade to jinjava version 2.8.1 immediately. Review your application’s deserialization patterns to ensure that they are not exposing sensitive functionality. Additionally, consider implementing input validation and sanitization where applicable. 🛡️ You can tackle this! By updating and fortifying your defenses, you’ll secure your applications in no time! 💪🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.02109 · 81.6th percentile
Weakness
CWE-1336 · Improper Neutralization of Special Elements Used in a Template Engine
Published
2025-09-17T20:01Z
EPSS history
Timeline
  • 17 SEP 20:01Z
    jinjava Sandbox Bypass via JavaType-Based Deserialization
    cvelistv5