Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-12481: A vulnerability in keras-team/keras version 3.14.0 allows for arbitrary code execution due to improper handlin

58
This week
CRITICAL 9.8REMOTEDOWNGRADE

CVE-2026-12481 is a critical-severity flaw (CVSS 9.8) affecting keras. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

A vulnerability in keras-team/keras version 3.14.0 allows for arbitrary code execution due to improper handling of deserialization in the `Lambda` layer. Specifically, the `_raise_for_lambda_deserialization()` function fails to enforce the safe-mode guard when `safe_mode` is set to `None`, which is the default value when `from_config()` is called outside of a `SafeModeScope` context. This logic error conflates `None` (unset/default-deny) with `Fa

Why this priority

  • Critical severity
  • Public exploit reference
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score9.8 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance0.7% (top 46%)
CISA exploited listNo
WeaknessCWE-502
Published2026-07-03
Last modified2026-10-25
Publisher (CNA): huntr.dev · Vendor: keras

Share: LinkedIn · X · Reddit

Last updated 2026-10-25 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

keras keras DOWNGRADE
Affected: 3.14.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 3.14.0
1. Check installed version
apt-cache policy keras || rpm -q keras || keras --version
2. No fixed release: DOWNGRADE to a release before 3.14.0 (Debian / Ubuntu)
apt-cache madison keras sudo apt install keras=<VERSION_BEFORE_3.14.0> sudo apt-mark hold keras
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list keras sudo dnf downgrade keras-<VERSION_BEFORE_3.14.0> sudo dnf versionlock add keras
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.

Exact fixes by distribution

A distro patch exists: prefer upgrading over downgrading.
Python (pip) · keras · FIXED · 3.12.3 · vulnerable: < 3.12.3 · source
pip install --upgrade "keras>=3.12.3" pip show keras
Fedora ELN · nginx-mod-headers-more · FIXED · 0.41-1.eln159 · FEDORA-2026-31f55f396a · source
sudo dnf upgrade --advisory=FEDORA-2026-31f55f396a
Fedora 46 · erlang-hex_core · FIXED · 0.21.1-1.fc46 · FEDORA-2026-f3389199ff · source
sudo dnf upgrade --advisory=FEDORA-2026-f3389199ff
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-12481?

keras: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.

Is CVE-2026-12481 being exploited?

CVE-2026-12481 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-12481 affect?

CVE-2026-12481 affects keras. Severity is critical (CVSS 9.8). A vulnerability in keras-team/keras version 3.14.0 allows for arbitrary code execution due to improper handling of deserialization in the `Lambda` layer. Specifically, the `_raise_for_lambda_deserialization()` function fails to enforce the

How urgent is CVE-2026-12481?

Priority 58/100. Critical severity; Public exploit reference; Remotely exploitable, no login, no user action

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.