جزئیات آسیب‌پذیری

CVE-2025-9906

keras-team Keras

Arbitrary Code execution in Keras Safe Mode

CVSS 4.0
8.6بالا

شرح رسمی (انگلیسی)

The Keras Model.load_model method can be exploited to achieve arbitrary code execution, even with safe_mode=True. One can create a specially crafted .keras model archive that, when loaded via Model.load_model, will trigger arbitrary code to be executed. This is achieved by crafting a special config.json (a file within the .keras archive) that will invoke keras.config.enable_unsafe_deserialization() to disable safe mode. Once safe mode is disable, one can use the Lambda layer feature of keras, which allows arbitrary Python code in the form of pickled code. Both can appear in the same archive. Simply the keras.config.enable_unsafe_deserialization() needs to appear first in the archive and the Lambda with arbitrary code needs to be second.

امتیازهای CVSS

امتیازنسخهمنبعبردار
8.6بالا 4.0 CVEProject cvelistV5 (CNA) (Google) CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/AU:Y/R:A

محصولات آسیب‌پذیر

فروشندهمحصولنسخه‌هامنبع
keras-team Keras 3.0.0 ≤ v < 3.11.0 CVEProject cvelistV5 (CNA)

منابع و راهنماها

۱
هشدار CVEهای بعدی این محصولمحصول را دنبال کنید تا آسیب‌پذیری‌های تازه را در تلگرام بگیرید.

اطلاعات

تاریخ انتشار
۱۴۰۴/۰۶/۲۸
آخرین به‌روزرسانی
۱۴۰۴/۱۲/۰۷
وضعیت
منتشرشده
صادرکننده (CNA)
Google

پیش‌بینی بهره‌برداری (EPSS)

۰٫۲٪
احتمال بهره‌برداری در ۳۰ روز
۱۰٫۲٪
صدک (نسبت به همه‌ی CVEها)

ارزیابی SSVC (CISA)

قابل خودکارسازی
خیر
وضعیت بهره‌برداری
ندارد
اثر فنی
کامل

ضعف‌ها (CWE)

  • CWE-502
    Deserialization of Untrusted Data