{"answers":{"affected":"3 open source packages ship an affected version, including onnx. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-7776 exists.","fix":"Upgrade onnx to a fixed version for your release line: 1.16.2 or 1.17.0.","what":"CVE-2024-7776 is a high-severity path traversal vulnerability in onnx/onnx, published on 20 Mar 2025. 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-2024-7776 and fix it if it is affected.\n\nWhat it is: CVE-2024-7776 is a high-severity path traversal vulnerability in onnx/onnx, published on 20 Mar 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-7776 exists.\n\nAffected packages and fixed versions:\n- onnx (PyPI): affected all versions; fixed in 1.16.2\n- onnx (PyPI): affected all versions; fixed in 1.17.0\n- onnx (PyPI): affected all versions; fixed in 1.17.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-2024-7776/ (Markdown: https://insights.sbomify.com/CVE-2024-7776/index.md)","id":"CVE-2024-7776","markdown":"https://insights.sbomify.com/CVE-2024-7776/index.md","name":"CVE-2024-7776","record":{"aliases":["AZL-59201","DEBIAN-CVE-2024-7776","GHSA-h36j-8vv3-cj52","PYSEC-2025-10","UBUNTU-CVE-2024-7776"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"ONNX machine learning library","requires_auth":"none","summary":"Attackers can overwrite arbitrary files via malicious tar archives in the download_model function, potentially leading to remote code execution.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"onnx","vendor":"onnx"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"A vulnerability in the `download_model` function of the onnx/onnx framework, before and including version 1.16.1, allows for arbitrary file overwrite due to inadequate prevention of path traversal attacks in malicious tar files. This vulnerability can be exploited by an attacker to overwrite files in the user's directory, potentially leading to remote command execution.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Arbitrary File Overwrite in onnx/onnx","id":"CVE-2024-7776","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":3,"n_references":1,"next":{"headline":"Path traversal in Contact Form by Bit Form: Multi Step Form, Calculation Contact Form, Payment Contact Form \u0026 Custom Contact Form builder","id":"CVE-2024-7777"},"packages":[{"ecosystem":"PyPI","fixed":["1.16.2"],"introduced":["0"],"last_affected":[],"package":"onnx","purl":"pkg:pypi/onnx","source":"PYSEC-2025-10"},{"ecosystem":"PyPI","fixed":["1.17.0"],"introduced":["0"],"last_affected":[],"package":"onnx","purl":null,"source":"GHSA-h36j-8vv3-cj52"},{"ecosystem":"PyPI","fixed":["1.17.0"],"introduced":["0"],"last_affected":[],"package":"onnx","purl":"pkg:pypi/onnx","source":"GHSA-h36j-8vv3-cj52"}],"prev":{"headline":"File upload in Contact Form by Bit Form: Multi Step Form, Calculation Contact Form, Payment Contact Form \u0026 Custom Contact Form builder","id":"CVE-2024-7775"},"products":["onnx/onnx"],"published":"2025-03-20","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":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-03-20","vendors":["onnx"]},"summary":"Attackers can overwrite arbitrary files via malicious tar archives in the download_model function, potentially leading to remote code execution.","url":"https://insights.sbomify.com/CVE-2024-7776/"}