CVE-2024-2313 in Bpftrace and 1 more product
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.
Affects 2 products from 2 vendors. Facts below cite their sources.
Requires local access, high complexity, low privileges required, no user interaction needed, can impact systems beyond the vulnerable component, no confidentiality impact, no integrity impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Bpftrace | Bpftrace | < 0.20.2 |
Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Linux Linux Kernel
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-2313 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-207470-L |
| CVSS vector | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:L |
| Published | 2024-03-10 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-377: CWE-377
Related attack patterns (CAPEC)
CAPEC-149 Explore for Predictable Temporary File Names via CWE-377
CAPEC-155 Screen Temporary Files for Sensitive Information via CWE-377
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2024-2313 involves bpftrace loading kernel headers from a temporary directory, which could be exploited by an unprivileged attacker to load compromised headers.
An unprivileged attacker can place malicious kernel headers in a temporary directory that bpftrace uses to load headers, potentially leading to code execution with elevated privileges.
Questions
What is CVE-2024-2313?
CVE-2024-2313 involves bpftrace loading kernel headers from a temporary directory, which could be exploited by an unprivileged attacker to load compromised headers.
What is the CVSS score for CVE-2024-2313?
CVE-2024-2313 has CVSS 2.8 (Low). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:L. EPSS: 0.2%.
Is CVE-2024-2313 actively exploited?
No confirmed active exploitation of CVE-2024-2313 as of 2026-09-25.
How do I remediate CVE-2024-2313?
Priority: MEDIUM.
What systems are affected by CVE-2024-2313?
CVE-2024-2313 affects Bpftrace Bpftrace.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Bpftrace","product":"Bpftrace","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.