Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. keras
  4. ›
  5. CVE-2025-8747

CVE-2025-8747: Keras vulnerable to CVE-2025-1550 bypass via reuse of internal functionality

August 12, 2025

It is possible to bypass the mitigation introduced in response to CVE-2025-1550, when an untrusted Keras v3 model is loaded, even when “safe_mode” is enabled, by crafting malicious arguments to built-in Keras modules.

The vulnerability is exploitable on the default configuration and does not depend on user input (just requires an untrusted model to be loaded).

References

  • github.com/advisories/GHSA-c9rc-mg46-23w3
  • github.com/keras-team/keras
  • github.com/keras-team/keras/commit/713172ab56b864e59e2aa79b1a51b0e728bba858
  • github.com/keras-team/keras/pull/21429
  • github.com/keras-team/keras/security/advisories/GHSA-c9rc-mg46-23w3
  • jfrog.com/blog/keras-safe_mode-bypass-vulnerability
  • nvd.nist.gov/vuln/detail/CVE-2025-8747

Code Behaviors & Features

Detect and mitigate CVE-2025-8747 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.0.0 before 3.11.0

Fixed versions

  • 3.11.0

Solution

Upgrade to version 3.11.0 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-502: Deserialization of Untrusted Data

Source file

pypi/keras/CVE-2025-8747.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:19:18 +0000.