Advisory

GHSA-x4wf-678h-2pmq

Also known as: CVE-2024-3660, PYSEC-2026-369

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: The source's own band: CRITICAL

Dates

Published
2024-04-16 21:31 UTC
Modified
2026-06-29 12:26 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences