Skip to content
OpenAdvisories
Critical · 9.8 CVE-2025-49655 EUVD-2025-34892GHSA-cvhh-q5g5-qprpPYSEC-2026-368

Keras framework vulnerable to deserialization of untrusted data

Published Oct 17, 2025 · Updated Oct 17, 2025 · Assigned by HiddenLayer

Description

Deserialization of untrusted data can occur in versions of the Keras framework running versions 3.11.0 up to but not including 3.11.3, enabling a maliciously uploaded Keras file containing a TorchModuleWrapper class to run arbitrary code on an end user’s system when loaded despite safe mode being enabled. The vulnerability can be triggered through both local and remote files.

Affected products

VendorProductAffectedFixed
Keras Keras 3.11.0 – < 3.11.3 3.11.3

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 11 keras No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS keras No fix yet —
Ubuntu 18.04 LTS keras No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI keras >= 3.11.0, < 3.11.3 3.11.3 GHSA-cvhh-q5g5-qprp

Advisories 1

References