جزئیات آسیبپذیری
CVE-2025-59340
jinjava Sandbox Bypass via JavaType-Based Deserialization
شرح رسمی (انگلیسی)
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.
امتیازهای CVSS
| امتیاز | نسخه | منبع | بردار |
|---|---|---|---|
| 9.8بحرانی | 3.1 | CVEProject cvelistV5 (CNA) (GitHub_M) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
محصولات آسیبپذیر
| فروشنده | محصول | نسخهها | منبع |
|---|---|---|---|
| HubSpot | jinjava | < 2.8.1 | CVEProject cvelistV5 (CNA) |
منابع و راهنماها
۳- https://github.com/HubSpot/jinjava/security/advisories/GHSA-m49c-g9wr-hv6v x_refsource_CONFIRM
- https://github.com/HubSpot/jinjava/commit/66df351e7e8ad71ca04dcacb4b65782af820b8b1 x_refsource_MISC
- https://github.com/HubSpot/jinjava/releases/tag/jinjava-2.8.1 x_refsource_MISC
اطلاعات
- تاریخ انتشار
- ۱۴۰۴/۰۶/۲۶
- آخرین بهروزرسانی
- ۱۴۰۴/۰۶/۲۷
- وضعیت
- منتشرشده
- صادرکننده (CNA)
- GitHub_M
پیشبینی بهرهبرداری (EPSS)
ارزیابی SSVC (CISA)
- قابل خودکارسازی
- بله
- وضعیت بهرهبرداری
- ندارد
- اثر فنی
- کامل
ضعفها (CWE)
- CWE-1336Improper Neutralization of Special Elements Used in a Template Engine