{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-2313 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2024-2313 is a low-severity path traversal vulnerability in bpftrace, published on 10 Mar 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-2313 and fix it if it is affected.\n\nWhat it is: CVE-2024-2313 is a low-severity path traversal vulnerability in bpftrace, published on 10 Mar 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-2313 in the wild and no public exploit code.\n\nAffected product: bpftrace. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2313/ (Markdown: https://insights.sbomify.com/CVE-2024-2313/index.md)","id":"CVE-2024-2313","markdown":"https://insights.sbomify.com/CVE-2024-2313/index.md","name":"CVE-2024-2313","record":{"aliases":["ALSA-2024:8830","ALSA-2024:9188","AZL-35836","AZL-35874","CLSA-2026-1778080357","DEBIAN-CVE-2024-2313","GHSA-ph92-w482-m4jj","RHSA-2024:8830","RHSA-2024:9188","RLSA-2024:8830","RLSA-2024:9188","openSUSE-SU-2024:13986-1"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"bpftrace tracing tool","requires_auth":"low_privilege","summary":"An unprivileged attacker can force bpftrace to load compromised kernel headers from a temporary directory, leading to code execution.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"canonical","cpe":[{"product":"bpftrace","vendor":"bpftrace"}],"cvss":{"score":2.8,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-377","name":"DEPRECATED: Insecure Temporary File"}],"description":"If kernel headers need to be extracted, bpftrace will attempt to load them from a temporary directory. An unprivileged attacker could use this to force bcc to load compromised linux headers. Linux distributions which provide kernel headers by default are not affected by default.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Rocky Linux:8","Rocky Linux:9"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Path traversal in bpftrace","id":"CVE-2024-2313","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":10,"n_references":2,"next":{"headline":"Path traversal in BPF Compiler Collection","id":"CVE-2024-2314"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["0.16.0-6.el8_10"],"introduced":["0"],"last_affected":[],"package":"bpftrace","purl":"pkg:rpm/almalinux/bpftrace","source":"ALSA-2024:8830"},{"ecosystem":"AlmaLinux:9","fixed":["0.21.1-1.el9"],"introduced":["0"],"last_affected":[],"package":"bpftrace","purl":"pkg:rpm/almalinux/bpftrace","source":"ALSA-2024:9188"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.16.0-6.el8_10"],"introduced":["0"],"last_affected":[],"package":"bpftrace","purl":"pkg:rpm/redhat/bpftrace","source":"RHSA-2024:8830"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.16.0-6.el8_10"],"introduced":["0"],"last_affected":[],"package":"bpftrace-debuginfo","purl":"pkg:rpm/redhat/bpftrace-debuginfo","source":"RHSA-2024:8830"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.16.0-6.el8_10"],"introduced":["0"],"last_affected":[],"package":"bpftrace-debugsource","purl":"pkg:rpm/redhat/bpftrace-debugsource","source":"RHSA-2024:8830"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.21.1-1.el9"],"introduced":["0"],"last_affected":[],"package":"bpftrace","purl":"pkg:rpm/redhat/bpftrace","source":"RHSA-2024:9188"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.21.1-1.el9"],"introduced":["0"],"last_affected":[],"package":"bpftrace-debuginfo","purl":"pkg:rpm/redhat/bpftrace-debuginfo","source":"RHSA-2024:9188"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.21.1-1.el9"],"introduced":["0"],"last_affected":[],"package":"bpftrace-debugsource","purl":"pkg:rpm/redhat/bpftrace-debugsource","source":"RHSA-2024:9188"},{"ecosystem":"Rocky Linux:8","fixed":["0:0.16.0-6.el8_10"],"introduced":["0"],"last_affected":[],"package":"bpftrace","purl":"pkg:rpm/rocky-linux/bpftrace?distro=rocky-linux-8\u0026epoch=0","source":"RLSA-2024:8830"},{"ecosystem":"Rocky Linux:9","fixed":["0:0.21.1-1.el9"],"introduced":["0"],"last_affected":[],"package":"bpftrace","purl":"pkg:rpm/rocky-linux/bpftrace?distro=rocky-linux-9\u0026epoch=0","source":"RLSA-2024:9188"}],"prev":{"headline":"Use after free in Debian based GNU GRUB","id":"CVE-2024-2312"},"products":["bpftrace"],"published":"2024-03-10","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-13","vendors":["bpftrace"]},"summary":"An unprivileged attacker can force bpftrace to load compromised kernel headers from a temporary directory, leading to code execution.","url":"https://insights.sbomify.com/CVE-2024-2313/"}