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 (updated May 29, 2026)

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/commit/713172ab56b864e59e2aa79b1a51b0e728bba858
  • github.com/keras-team/keras/pull/21429
  • github.com/keras-team/keras/security/advisories/GHSA-c9rc-mg46-23w3
  • github.com/pypa/advisory-database/tree/main/vulns/keras/PYSEC-2025-75.yaml
  • 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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

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 Sun, 08 Nov 2026 00:16:44 +0000.