
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-2492 is a local privilege escalation vulnerability in TensorFlow caused by an uncontrolled search path element (CWE-427) in the HDF5 library plugin loading mechanism. Discovered by an anonymous researcher and reported to the vendor on 2025-03-11, it was publicly disclosed on 2026-02-19 via the Zero Day Initiative. The vulnerability affects TensorFlow installations, including the Microsoft Azure Linux 3 package azl3_tensorflow_2.16.1-10. It carries a CVSS v3.0 base score of 7.0 (High) (ZDI Advisory, Red Hat Bugzilla).
The root cause is an uncontrolled search path element (CWE-427) in TensorFlow's handling of HDF5 plugins via the h5py library. When TensorFlow imports h5py (used for Keras model saving/loading), the HDF5 library searches for plugins in a default, unsecured path controlled by the HDF5_PLUGIN_PATH environment variable. A local attacker with low-privileged code execution can place a malicious plugin in this unsecured location, which TensorFlow will load automatically, enabling arbitrary code execution in the context of the target user. The fix sets os.environ['HDF5_PLUGIN_PATH'] = 'disable' before importing h5py in multiple TensorFlow Keras modules (training.py, hdf5_format.py, save.py, keras_parameterized.py) to prevent external plugin loading (TensorFlow Commit, ZDI Advisory).
Successful exploitation allows a local attacker with low-privileged access to escalate privileges and execute arbitrary code in the context of the target user running TensorFlow. This can result in complete compromise of the affected system, including unauthorized access to sensitive data (confidentiality impact: High), unauthorized modification of system files or model data (integrity impact: High), and potential disruption of services (availability impact: High). The attack scope is limited to the local system, but could facilitate lateral movement within environments where TensorFlow is used in shared or multi-tenant infrastructure (ZDI Advisory, Red Hat Bugzilla).
HDF5_PLUGIN_PATH on the target system. On Linux, this is typically a directory such as /usr/lib/hdf5/plugin or a user-writable path if not explicitly set..so on Linux or .dll on Windows) that executes attacker-controlled code when loaded as an HDF5 plugin.h5py (e.g., saving or loading a Keras model), which causes HDF5 to load plugins from the unsecured path..so, .dll) in HDF5 plugin directories (e.g., /usr/lib/hdf5/plugin, paths referenced by HDF5_PLUGIN_PATH); modification timestamps on plugin directories inconsistent with normal system activity.bash, curl, wget); unexpected network connections originating from Python/TensorFlow processes./var/log/auth.log, /var/log/syslog) showing privilege changes or unexpected process execution following TensorFlow model save/load operations; audit logs recording writes to HDF5 plugin directories by low-privileged users.HDF5_PLUGIN_PATH environment variable set to a user-writable or unexpected directory in the process environment of TensorFlow workloads.TensorFlow has issued a patch that disables HDF5 plugin loading by setting os.environ['HDF5_PLUGIN_PATH'] = 'disable' before importing h5py in affected Keras modules; users should update to a patched version of TensorFlow incorporating commit 46e7f7fb144fd11cf6d17c23dd47620328d77082. For Microsoft Azure Linux 3, the affected package is azl3_tensorflow_2.16.1-10 and the Microsoft Security Response Center has published patch guidance. As a workaround prior to patching, administrators can explicitly set the HDF5_PLUGIN_PATH environment variable to disable or a controlled, non-writable path in TensorFlow deployment environments. Additionally, enforce the principle of least privilege to limit local user access and restrict write permissions to HDF5 plugin directories (TensorFlow Commit, Red Hat Bugzilla, Microsoft MSRC).
The vulnerability was reported to TensorFlow by an anonymous researcher through the Zero Day Initiative's coordinated disclosure program, with a roughly 11-month embargo before public release. Red Hat has tracked the issue via Bugzilla with high severity/priority, and Microsoft has published a security update guide entry for the affected Azure Linux 3 package. No significant broader community or social media discussion has been identified beyond standard vulnerability database aggregation (ZDI Advisory, Red Hat Bugzilla).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."