{"id":"CVE-2026-12481","aliases":["DEBIAN-CVE-2026-12481","GHSA-5gwj-m78q-7pq3","PYSEC-2026-3631","UBUNTU-CVE-2026-12481"],"summary":"Deserialization of Untrusted Data in keras-team/keras","published_at":"2026-07-03T20:36:05.003Z","modified_at":"2026-08-27T23:05:49.890938Z","products":[],"rating":{"severity":"critical","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.007189999800175428,"percentile":0.5465400218963623,"date":"2026-11-19T00:00:00Z"},"priority":11.8,"details":"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 `False` (explicitly disabled), bypassing the guard and allowing attacker-controlled `marshal` bytecode to be deserialized. Affected call sites include `keras.layers.deserialize(config)`, `keras.models.clone_model(model)`, and any direct invocation of `Lambda.from_config(config)` without an enclosing `SafeModeScope(True)`. This vulnerability can be exploited to achieve arbitrary OS-level code execution in the context of the server or user process.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"keras-team/keras-team/keras","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"latest"}]}],"provider":"cvelistv5","source":"CVE-2026-12481","relation":"self"},{"ecosystem":"Debian:11","package":"keras","purl":"pkg:deb/debian/keras?arch=source&distro=bullseye","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.1+dfsg-3","2.3.1+dfsg2-1"],"provider":"osv","source":"DEBIAN-CVE-2026-12481","relation":"self"},{"ecosystem":"NVD","package":"keras:keras","versions":["3.14.0"],"provider":"nvd","source":"CVE-2026-12481","relation":"self"},{"ecosystem":"PyPI","package":"keras","purl":"pkg:pypi/keras","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.13.0"},{"fixed":"3.15.0"}]}],"versions":["3.13.0","3.13.1","3.13.2","3.14.0","3.14.1"],"fixed":["3.15.0"],"provider":"osv","source":"GHSA-5gwj-m78q-7pq3","relation":"self"},{"ecosystem":"PyPI","package":"keras","purl":"pkg:pypi/keras","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.12.3"}]}],"versions":["0.2.0","0.3.0","0.3.1","0.3.2","0.3.3","1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.1.0","1.1.1","1.1.2","1.2.0","1.2.1","1.2.2","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","2.1.5","2.1.6","2.10.0","2.10.0rc0","2.10.0rc1","2.11.0","2.11.0rc0","2.11.0rc1","2.11.0rc2","2.11.0rc3","2.12.0","2.12.0rc0","2.12.0rc1","2.13.1","2.13.1rc0","2.13.1rc1","2.14.0","2.14.0rc0","2.15.0","2.15.0rc0","2.15.0rc1","2.2.0","2.2.1","2.2.2","2.2.3","2.2.4","2.2.5","2.3.0","2.3.1","2.4.0","2.4.1","2.4.2","2.4.3","2.5.0rc0","2.6.0","2.6.0rc0","2.6.0rc1","2.6.0rc2","2.6.0rc3","2.7.0","2.7.0rc0","2.7.0rc2","2.8.0","2.8.0rc0","2.8.0rc1","2.9.0","2.9.0rc0","2.9.0rc1","2.9.0rc2","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.1.0","3.1.1","3.10.0","3.11.0","3.11.1","3.11.2","3.11.3","3.12.0","3.12.1","3.12.2","3.2.0","3.2.1","3.3.0","3.3.1","3.3.2","3.3.3","3.4.0","3.4.1","3.5.0","3.6.0","3.7.0","3.8.0","3.9.0","3.9.1","3.9.2"],"fixed":["3.12.3"],"provider":"osv","source":"GHSA-5gwj-m78q-7pq3","relation":"self"},{"ecosystem":"PyPI","package":"keras","purl":"pkg:pypi/keras","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.12.3"},{"introduced":"3.13.0"},{"fixed":"3.15.0"}]}],"versions":["0.2.0","0.3.0","0.3.1","0.3.2","0.3.3","1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.1.0","1.1.1","1.1.2","1.2.0","1.2.1","1.2.2","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","2.1.5","2.1.6","2.10.0","2.10.0rc0","2.10.0rc1","2.11.0","2.11.0rc0","2.11.0rc1","2.11.0rc2","2.11.0rc3","2.12.0","2.12.0rc0","2.12.0rc1","2.13.1","2.13.1rc0","2.13.1rc1","2.14.0","2.14.0rc0","2.15.0","2.15.0rc0","2.15.0rc1","2.2.0","2.2.1","2.2.2","2.2.3","2.2.4","2.2.5","2.3.0","2.3.1","2.4.0","2.4.1","2.4.2","2.4.3","2.5.0rc0","2.6.0","2.6.0rc0","2.6.0rc1","2.6.0rc2","2.6.0rc3","2.7.0","2.7.0rc0","2.7.0rc2","2.8.0","2.8.0rc0","2.8.0rc1","2.9.0","2.9.0rc0","2.9.0rc1","2.9.0rc2","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.1.0","3.1.1","3.10.0","3.11.0","3.11.1","3.11.2","3.11.3","3.12.0","3.12.1","3.12.2","3.13.0","3.13.1","3.13.2","3.14.0","3.14.1","3.2.0","3.2.1","3.3.0","3.3.1","3.3.2","3.3.3","3.4.0","3.4.1","3.5.0","3.6.0","3.7.0","3.8.0","3.9.0","3.9.1","3.9.2"],"fixed":["3.12.3","3.15.0"],"provider":"osv","source":"PYSEC-2026-3631","relation":"self"},{"ecosystem":"TuxCare:PyPI","package":"keras","purl":"pkg:pypi/keras","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.15.0.post0"},{"fixed":"2.15.0.post3+tuxcare"}]}],"versions":["2.15.0","2.15.0.post1+tuxcare","2.15.0.post2+tuxcare"],"fixed":["2.15.0.post3+tuxcare"],"provider":"osv","source":"CLSA-2026-1790928189","relation":"upstream"},{"ecosystem":"Ubuntu:18.04:LTS","package":"keras","purl":"pkg:deb/ubuntu/keras?arch=source&distro=bionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.7-2","2.1.1-1"],"provider":"osv","source":"UBUNTU-CVE-2026-12481","relation":"self"},{"ecosystem":"Ubuntu:20.04:LTS","package":"keras","purl":"pkg:deb/ubuntu/keras?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.4-1"],"provider":"osv","source":"UBUNTU-CVE-2026-12481","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-modelmesh-runtime-adapter-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-12481"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-router-rhel9","rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9"],"package_count":7,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-12481"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","status":"fixed","packages":["rhoai/odh-kserve-storage-initializer-rhel9"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:60520"],"provider":"redhat-vex","source":"CVE-2026-12481"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","status":"not_affected","packages":["rhoai/odh-ai-gateway-payload-processing-rhel9","rhoai/odh-automl-rhel9","rhoai/odh-autorag-rhel9","rhoai/odh-built-in-detector-rhel9","rhoai/odh-cli-rhel9","rhoai/odh-dashboard-rhel9","rhoai/odh-data-science-pipelines-argo-argoexec-rhel9","rhoai/odh-data-science-pipelines-argo-workflowcontroller-rhel9","rhoai/odh-data-science-pipelines-operator-controller-rhel9","rhoai/odh-eval-hub-rhel9","rhoai/odh-feast-operator-rhel9","rhoai/odh-feature-server-rhel9","rhoai/odh-fms-guardrails-orchestrator-rhel9","rhoai/odh-guardrails-detector-huggingface-runtime-rhel9","rhoai/odh-kf-notebook-controller-rhel9","rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-autogluon-server-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-llmisvc-controller-rhel9","rhoai/odh-kserve-router-rhel9","rhoai/odh-kube-auth-proxy-rhel9","rhoai/odh-kuberay-operator-controller-rhel9","rhoai/odh-llama-stack-core-rhel9","rhoai/odh-llama-stack-k8s-operator-rhel9","rhoai/odh-llm-d-batch-gateway-apiserver-rhel9"],"package_count":105,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-12481"}],"records":[{"provider":"osv","source_id":"CLSA-2026-1790928189","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1790928189","published_at":"2026-10-02T08:03:09Z","modified_at":"2026-11-17T13:31:04.616527Z","summary":"TuxCare security update for keras (4 CVEs)","details":"TuxCare rebuilt keras to address 4 CVEs. Fixed in 2.15.0.post3+tuxcare.","severity":[],"affected":[{"ecosystem":"TuxCare:PyPI","package":"keras","purl":"pkg:pypi/keras","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.15.0.post0"},{"fixed":"2.15.0.post3+tuxcare"}]}],"versions":["2.15.0","2.15.0.post1+tuxcare","2.15.0.post2+tuxcare"],"fixed":["2.15.0.post3+tuxcare"],"provider":"osv","source":"CLSA-2026-1790928189","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"cvelistv5","source_id":"CVE-2026-12481","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-12481","license":"CC-BY-4.0","published_at":"2026-07-03T20:36:05.003Z","modified_at":"2026-07-06T15:15:46.244Z","summary":"Deserialization of Untrusted Data in keras-team/keras","details":"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 `False` (explicitly disabled), bypassing the guard and allowing attacker-controlled `marshal` bytecode to be deserialized. Affected call sites include `keras.layers.deserialize(config)`, `keras.models.clone_model(model)`, and any direct invocation of `Lambda.from_config(config)` without an enclosing `SafeModeScope(True)`. This vulnerability can be exploited to achieve arbitrary OS-level code execution in the context of the server or user process.","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"CVE-2026-12481"}],"affected":[{"ecosystem":"CVE","package":"keras-team/keras-team/keras","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"latest"}]}],"provider":"cvelistv5","source":"CVE-2026-12481","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://huntr.com/bounties/59ceaed1-c8a3-4135-8f94-169ade02823d"}]},{"provider":"nvd","source_id":"CVE-2026-12481","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12481","severity":[],"affected":[{"ecosystem":"NVD","package":"keras:keras","versions":["3.14.0"],"provider":"nvd","source":"CVE-2026-12481","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2026-12481","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-12481","published_at":"2026-07-03T21:16:54.737Z","modified_at":"2026-08-27T23:05:49.890938Z","details":"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 `False` (explicitly disabled), bypassing the guard and allowing attacker-controlled `marshal` bytecode to be deserialized. Affected call sites include `keras.layers.deserialize(config)`, `keras.models.clone_model(model)`, and any direct invocation of `Lambda.from_config(config)` without an enclosing `SafeModeScope(True)`. This vulnerability can be exploited to achieve arbitrary OS-level code execution in the context of the server or user process.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"DEBIAN-CVE-2026-12481"}],"affected":[{"ecosystem":"Debian:11","package":"keras","purl":"pkg:deb/debian/keras?arch=source&distro=bullseye","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.1+dfsg-3","2.3.1+dfsg2-1"],"provider":"osv","source":"DEBIAN-CVE-2026-12481","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-12481"}]},{"provider":"osv","source_id":"GHSA-5gwj-m78q-7pq3","relation":"self","url":"https://osv.dev/vulnerability/GHSA-5gwj-m78q-7pq3","license":"CC-BY-4.0","published_at":"2026-07-03T21:31:36Z","modified_at":"2026-08-10T11:40:41.687024Z","summary":"Keras: Lambda deserialization can bypass safe mode and execute code","details":"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 `False` (explicitly disabled), bypassing the guard and allowing attacker-controlled `marshal` bytecode to be deserialized. Affected call sites include `keras.layers.deserialize(config)`, `keras.models.clone_model(model)`, and any direct invocation of `Lambda.from_config(config)` without an enclosing `SafeModeScope(True)`. This vulnerability can be exploited to achieve arbitrary OS-level code execution in the context of the server or user process.","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"GHSA-5gwj-m78q-7pq3"}],"affected":[{"ecosystem":"PyPI","package":"keras","purl":"pkg:pypi/keras","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.13.0"},{"fixed":"3.15.0"}]}],"versions":["3.13.0","3.13.1","3.13.2","3.14.0","3.14.1"],"fixed":["3.15.0"],"provider":"osv","source":"GHSA-5gwj-m78q-7pq3","relation":"self"},{"ecosystem":"PyPI","package":"keras","purl":"pkg:pypi/keras","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.12.3"}]}],"versions":["0.2.0","0.3.0","0.3.1","0.3.2","0.3.3","1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.1.0","1.1.1","1.1.2","1.2.0","1.2.1","1.2.2","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","2.1.5","2.1.6","2.10.0","2.10.0rc0","2.10.0rc1","2.11.0","2.11.0rc0","2.11.0rc1","2.11.0rc2","2.11.0rc3","2.12.0","2.12.0rc0","2.12.0rc1","2.13.1","2.13.1rc0","2.13.1rc1","2.14.0","2.14.0rc0","2.15.0","2.15.0rc0","2.15.0rc1","2.2.0","2.2.1","2.2.2","2.2.3","2.2.4","2.2.5","2.3.0","2.3.1","2.4.0","2.4.1","2.4.2","2.4.3","2.5.0rc0","2.6.0","2.6.0rc0","2.6.0rc1","2.6.0rc2","2.6.0rc3","2.7.0","2.7.0rc0","2.7.0rc2","2.8.0","2.8.0rc0","2.8.0rc1","2.9.0","2.9.0rc0","2.9.0rc1","2.9.0rc2","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.1.0","3.1.1","3.10.0","3.11.0","3.11.1","3.11.2","3.11.3","3.12.0","3.12.1","3.12.2","3.2.0","3.2.1","3.3.0","3.3.1","3.3.2","3.3.3","3.4.0","3.4.1","3.5.0","3.6.0","3.7.0","3.8.0","3.9.0","3.9.1","3.9.2"],"fixed":["3.12.3"],"provider":"osv","source":"GHSA-5gwj-m78q-7pq3","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12481"},{"type":"WEB","url":"https://github.com/keras-team/keras/pull/23048"},{"type":"WEB","url":"https://github.com/keras-team/keras/pull/23165"},{"type":"WEB","url":"https://github.com/keras-team/keras/commit/55888d3becbdbb45dc16a55b489900f911e2dde5"},{"type":"WEB","url":"https://github.com/keras-team/keras/commit/d338a45204bdc787c8b3c4a9b82c1911cd52dedf"},{"type":"PACKAGE","url":"https://github.com/keras-team/keras"},{"type":"WEB","url":"https://github.com/keras-team/keras/releases/tag/v3.12.3"},{"type":"WEB","url":"https://github.com/keras-team/keras/releases/tag/v3.15.0"},{"type":"WEB","url":"https://huntr.com/bounties/59ceaed1-c8a3-4135-8f94-169ade02823d"}]},{"provider":"osv","source_id":"PYSEC-2026-3631","relation":"self","url":"https://osv.dev/vulnerability/PYSEC-2026-3631","license":"CC-BY-4.0","published_at":"2026-08-10T10:43:49.135174Z","modified_at":"2026-08-10T11:30:11.789165Z","summary":"Keras: Lambda deserialization can bypass safe mode and execute code","details":"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 `False` (explicitly disabled), bypassing the guard and allowing attacker-controlled `marshal` bytecode to be deserialized. Affected call sites include `keras.layers.deserialize(config)`, `keras.models.clone_model(model)`, and any direct invocation of `Lambda.from_config(config)` without an enclosing `SafeModeScope(True)`. This vulnerability can be exploited to achieve arbitrary OS-level code execution in the context of the server or user process.","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"PYSEC-2026-3631"}],"affected":[{"ecosystem":"PyPI","package":"keras","purl":"pkg:pypi/keras","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.12.3"},{"introduced":"3.13.0"},{"fixed":"3.15.0"}]}],"versions":["0.2.0","0.3.0","0.3.1","0.3.2","0.3.3","1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.1.0","1.1.1","1.1.2","1.2.0","1.2.1","1.2.2","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","2.1.5","2.1.6","2.10.0","2.10.0rc0","2.10.0rc1","2.11.0","2.11.0rc0","2.11.0rc1","2.11.0rc2","2.11.0rc3","2.12.0","2.12.0rc0","2.12.0rc1","2.13.1","2.13.1rc0","2.13.1rc1","2.14.0","2.14.0rc0","2.15.0","2.15.0rc0","2.15.0rc1","2.2.0","2.2.1","2.2.2","2.2.3","2.2.4","2.2.5","2.3.0","2.3.1","2.4.0","2.4.1","2.4.2","2.4.3","2.5.0rc0","2.6.0","2.6.0rc0","2.6.0rc1","2.6.0rc2","2.6.0rc3","2.7.0","2.7.0rc0","2.7.0rc2","2.8.0","2.8.0rc0","2.8.0rc1","2.9.0","2.9.0rc0","2.9.0rc1","2.9.0rc2","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.1.0","3.1.1","3.10.0","3.11.0","3.11.1","3.11.2","3.11.3","3.12.0","3.12.1","3.12.2","3.13.0","3.13.1","3.13.2","3.14.0","3.14.1","3.2.0","3.2.1","3.3.0","3.3.1","3.3.2","3.3.3","3.4.0","3.4.1","3.5.0","3.6.0","3.7.0","3.8.0","3.9.0","3.9.1","3.9.2"],"fixed":["3.12.3","3.15.0"],"provider":"osv","source":"PYSEC-2026-3631","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12481"},{"type":"WEB","url":"https://github.com/keras-team/keras/pull/23048"},{"type":"WEB","url":"https://github.com/keras-team/keras/pull/23165"},{"type":"WEB","url":"https://github.com/keras-team/keras/commit/55888d3becbdbb45dc16a55b489900f911e2dde5"},{"type":"WEB","url":"https://github.com/keras-team/keras/commit/d338a45204bdc787c8b3c4a9b82c1911cd52dedf"},{"type":"PACKAGE","url":"https://github.com/keras-team/keras"},{"type":"WEB","url":"https://github.com/keras-team/keras/releases/tag/v3.12.3"},{"type":"WEB","url":"https://github.com/keras-team/keras/releases/tag/v3.15.0"},{"type":"WEB","url":"https://huntr.com/bounties/59ceaed1-c8a3-4135-8f94-169ade02823d"},{"type":"PACKAGE","url":"https://pypi.org/project/keras"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-5gwj-m78q-7pq3"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2026-12481","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-12481","license":"CC-BY-SA-4.0","published_at":"2026-07-03T21:16:00Z","modified_at":"2026-07-09T21:30:36.762644Z","details":"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 `False` (explicitly disabled), bypassing the guard and allowing attacker-controlled `marshal` bytecode to be deserialized. Affected call sites include `keras.layers.deserialize(config)`, `keras.models.clone_model(model)`, and any direct invocation of `Lambda.from_config(config)` without an enclosing `SafeModeScope(True)`. This vulnerability can be exploited to achieve arbitrary OS-level code execution in the context of the server or user process.","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"UBUNTU-CVE-2026-12481"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"UBUNTU-CVE-2026-12481"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2026-12481"}],"affected":[{"ecosystem":"Ubuntu:18.04:LTS","package":"keras","purl":"pkg:deb/ubuntu/keras?arch=source&distro=bionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.7-2","2.1.1-1"],"provider":"osv","source":"UBUNTU-CVE-2026-12481","relation":"self"},{"ecosystem":"Ubuntu:20.04:LTS","package":"keras","purl":"pkg:deb/ubuntu/keras?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.4-1"],"provider":"osv","source":"UBUNTU-CVE-2026-12481","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-12481"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-12481"},{"type":"REPORT","url":"https://huntr.com/bounties/59ceaed1-c8a3-4135-8f94-169ade02823d"}]},{"provider":"redhat-vex","source_id":"CVE-2026-12481","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-12481","license":"CC-BY-4.0","published_at":"2026-07-03T20:36:05.003Z","modified_at":"2026-07-08T15:16:57Z","summary":"keras: Keras: Arbitrary code execution via deserialization vulnerability","details":"A flaw was found in the Keras deep learning library. This vulnerability allows a remote attacker to execute arbitrary code on the system by exploiting improper handling of deserialization in the `Lambda` layer. Specifically, a security safeguard designed to prevent unsafe deserialization is bypassed when the `safe_mode` setting is not explicitly enabled, allowing malicious code to be processed. This can lead to complete compromise of the affected server or user process.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"CVE-2026-12481"},{"type":"Red Hat","score":"Important","source":"CVE-2026-12481"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-modelmesh-runtime-adapter-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-12481"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-router-rhel9","rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9"],"package_count":7,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-12481"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","status":"fixed","packages":["rhoai/odh-kserve-storage-initializer-rhel9"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:60520"],"provider":"redhat-vex","source":"CVE-2026-12481"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","status":"not_affected","packages":["rhoai/odh-ai-gateway-payload-processing-rhel9","rhoai/odh-automl-rhel9","rhoai/odh-autorag-rhel9","rhoai/odh-built-in-detector-rhel9","rhoai/odh-cli-rhel9","rhoai/odh-dashboard-rhel9","rhoai/odh-data-science-pipelines-argo-argoexec-rhel9","rhoai/odh-data-science-pipelines-argo-workflowcontroller-rhel9","rhoai/odh-data-science-pipelines-operator-controller-rhel9","rhoai/odh-eval-hub-rhel9","rhoai/odh-feast-operator-rhel9","rhoai/odh-feature-server-rhel9","rhoai/odh-fms-guardrails-orchestrator-rhel9","rhoai/odh-guardrails-detector-huggingface-runtime-rhel9","rhoai/odh-kf-notebook-controller-rhel9","rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-autogluon-server-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-llmisvc-controller-rhel9","rhoai/odh-kserve-router-rhel9","rhoai/odh-kube-auth-proxy-rhel9","rhoai/odh-kuberay-operator-controller-rhel9","rhoai/odh-llama-stack-core-rhel9","rhoai/odh-llama-stack-k8s-operator-rhel9","rhoai/odh-llm-d-batch-gateway-apiserver-rhel9"],"package_count":105,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-12481"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-12481.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-12481"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2496942"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-12481"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12481"},{"type":"WEB","url":"https://huntr.com/bounties/59ceaed1-c8a3-4135-8f94-169ade02823d"}]}],"references":[{"type":"WEB","url":"https://huntr.com/bounties/59ceaed1-c8a3-4135-8f94-169ade02823d"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-12481"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12481"},{"type":"WEB","url":"https://github.com/keras-team/keras/pull/23048"},{"type":"WEB","url":"https://github.com/keras-team/keras/pull/23165"},{"type":"WEB","url":"https://github.com/keras-team/keras/commit/55888d3becbdbb45dc16a55b489900f911e2dde5"},{"type":"WEB","url":"https://github.com/keras-team/keras/commit/d338a45204bdc787c8b3c4a9b82c1911cd52dedf"},{"type":"PACKAGE","url":"https://github.com/keras-team/keras"},{"type":"WEB","url":"https://github.com/keras-team/keras/releases/tag/v3.12.3"},{"type":"WEB","url":"https://github.com/keras-team/keras/releases/tag/v3.15.0"},{"type":"PACKAGE","url":"https://pypi.org/project/keras"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-5gwj-m78q-7pq3"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-12481"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-12481"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-12481.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-12481"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2496942"}],"sources":[{"provider":"osv","source_id":"CLSA-2026-1790928189","url":"https://osv.dev/vulnerability/CLSA-2026-1790928189","modified_at":"2026-11-17T13:31:04.616527Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2026-12481","url":"https://www.cve.org/CVERecord?id=CVE-2026-12481","license":"CC-BY-4.0","modified_at":"2026-07-06T15:15:46.244Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2026-12481","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12481","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2026-12481","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-12481","modified_at":"2026-08-27T23:05:49.890938Z","relation":"self"},{"provider":"osv","source_id":"GHSA-5gwj-m78q-7pq3","url":"https://osv.dev/vulnerability/GHSA-5gwj-m78q-7pq3","license":"CC-BY-4.0","modified_at":"2026-08-10T11:40:41.687024Z","relation":"self"},{"provider":"osv","source_id":"PYSEC-2026-3631","url":"https://osv.dev/vulnerability/PYSEC-2026-3631","license":"CC-BY-4.0","modified_at":"2026-08-10T11:30:11.789165Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2026-12481","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-12481","license":"CC-BY-SA-4.0","modified_at":"2026-07-09T21:30:36.762644Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-12481","url":"https://access.redhat.com/security/cve/CVE-2026-12481","license":"CC-BY-4.0","modified_at":"2026-07-08T15:16:57Z","relation":"self"}]}
