{"answers":{"affected":"5 open source packages ship an affected version, including keras.","exploited":"There is no known exploitation of CVE-2026-9335 in the wild and no public exploit code.","fix":"Upgrade keras to a fixed version for your release line: 3.12.3 or 3.15.0.","what":"CVE-2026-9335 is a medium-severity path traversal vulnerability in keras-team/keras, published on 2 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-9335 and fix it if it is affected.\n\nWhat it is: CVE-2026-9335 is a medium-severity path traversal vulnerability in keras-team/keras, published on 2 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-9335 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- keras (PyPI): affected all versions; fixed in 3.12.3, 3.15.0\n- keras (PyPI): affected all versions; fixed in 3.12.3\n- keras (PyPI): affected all versions; fixed in 3.12.3\n- keras (PyPI): affected from 3.13.0; fixed in 3.15.0\n- keras (PyPI): affected from 3.13.0; fixed in 3.15.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-9335/ (Markdown: https://insights.sbomify.com/CVE-2026-9335/index.md)","id":"CVE-2026-9335","markdown":"https://insights.sbomify.com/CVE-2026-9335/index.md","name":"CVE-2026-9335","record":{"aliases":["DEBIAN-CVE-2026-9335","GHSA-m8wh-29wm-52mv","MINI-6f84-p3g2-r5w2","PYSEC-2026-3633","UBUNTU-CVE-2026-9335"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Keras deep learning library","requires_auth":"none","summary":"Attackers can disclose sensitive local files by crafting malicious HDF5 models with external links, bypassing security checks in Keras.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"A vulnerability in keras-team/keras versions \u003c= 3.14.0 allows arbitrary local HDF5 file content disclosure due to improper handling of HDF5 ExternalLinks. The `KerasFileEditor` and `keras.saving.load_weights` functions bypass the `safe_get_h5_group` and `safe_get_h5_dataset` helpers, which are designed to reject ExternalLinks and SoftLinks. This results in automatic dereferencing of links to external HDF5 files, enabling attackers to disclose sensitive data from the victim's local filesystem. Specifically, `KerasFileEditor` extracts attributes and datasets from linked files into its internal structures, while `keras.saving.load_weights` loads weights from linked files into the user's model. This issue can be exploited by providing a malicious `.h5`, `.weights.h5`, or `.keras` file containing ExternalLinks.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2026-09-02","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-09-02T19:35:10Z","kind":"github_poc","ref":"https://github.com/paparojonathan/CVE-2026-9335-keras-hdf5-externallink","stars":0,"title":"CVE-2026-9335: KerasFileEditor and load_weights follow h5py ExternalLinks, disclosing arbitrary local HDF5 file contents in keras ≤ 3.14.0. Advisory + verified PoCs."}],"tier":"poc_unverified"},"has_fix":true,"headline":"Improper Handling of HDF5 ExternalLinks in keras-team/keras","id":"CVE-2026-9335","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":5,"n_references":2,"next":{"headline":"IBM WebSphere Application Server prior to 9.0.5.29 and 8.5.5.31 are affected by multiple vulnerabilities","id":"CVE-2026-9336"},"packages":[{"ecosystem":"PyPI","fixed":["3.12.3","3.15.0"],"introduced":["0","3.13.0"],"last_affected":[],"package":"keras","purl":"pkg:pypi/keras","source":"PYSEC-2026-3633"},{"ecosystem":"PyPI","fixed":["3.12.3"],"introduced":["0"],"last_affected":[],"package":"keras","purl":null,"source":"GHSA-m8wh-29wm-52mv"},{"ecosystem":"PyPI","fixed":["3.12.3"],"introduced":["0"],"last_affected":[],"package":"keras","purl":"pkg:pypi/keras","source":"GHSA-m8wh-29wm-52mv"},{"ecosystem":"PyPI","fixed":["3.15.0"],"introduced":["3.13.0"],"last_affected":[],"package":"keras","purl":null,"source":"GHSA-m8wh-29wm-52mv"},{"ecosystem":"PyPI","fixed":["3.15.0"],"introduced":["3.13.0"],"last_affected":[],"package":"keras","purl":"pkg:pypi/keras","source":"GHSA-m8wh-29wm-52mv"}],"prev":{"headline":"Memory corruption in Cpanel::JSON::XS","id":"CVE-2026-9334"},"products":["keras-team/keras"],"published":"2026-08-02","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-03","vendors":["keras-team"]},"summary":"Attackers can disclose sensitive local files by crafting malicious HDF5 models with external links, bypassing security checks in Keras.","url":"https://insights.sbomify.com/CVE-2026-9335/"}