Advisory

PYSEC-2026-369

Also known as: CVE-2024-3660, GHSA-x4wf-678h-2pmq

Summary

Keras code injection vulnerability

Details

A arbitrary code injection vulnerability in TensorFlow's Keras framework (<2.13) allows attackers to execute arbitrary code with the same permissions as the application using a model that allow arbitrary code irrespective of the application.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2026-06-29 11:50 UTC
Modified
2026-07-01 20:22 UTC

Affected packages and fixes

keras

PyPI · All systems

Affected

  • introduced 0, fixed 2.13.1rc0 (ecosystem)

Fixed versions

2.13.1rc0

Fix

  • Fixed version 2.13.1rc0
    pip install --upgrade keras==2.13.1rc0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences