p PatchFirst

CVE-2025-8747

CVE-2025-8747 · Keras safe_mode bypass allows arbitrary code execution when loading a malicious model.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

A safe mode bypass vulnerability in the `Model.load_model` method in Keras versions 3.0.0 through 3.10.0 allows an attacker to achieve arbitrary code execution by convincing a user to load a specially crafted `.keras` model archive.

CVSS 8.6 · High · EPSS 0.1% · Fix available

Published
Updated

Stack: system · python

Affected products and versions

  • keras

    Versions
    • ≥ 3.0.0, ≤ 3.10.0: Affected (semver)

    No fix published

  • keras PyPI

    Versions
    • 3.0.0
    • 3.0.1
    • 3.0.2
    • 3.0.3
    • 3.0.4
    • 3.0.5
    • 3.1.0
    • 3.1.1
    • 3.10.0
    • 3.2.0
    • 3.2.1
    • 3.3.0
    • 3.3.1
    • 3.3.2
    • 3.3.3
    • 3.4.0
    • 3.4.1
    • 3.5.0
    • 3.6.0
    • 3.7.0
    • 3.8.0
    • 3.9.0
    • 3.9.1
    • 3.9.2
    Affected ranges
    • ECOSYSTEM: ≥ 3.0.0, < 3.11.0

    Update to 3.11.0

  • keras PyPI

    No fix published

  • keras Ubuntu:18.04:LTS

    Versions
    • 1.0.7-2
    • 2.1.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • keras Ubuntu:20.04:LTS

    Versions
    • 2.2.4-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →