Home / bpftrace / bpftrace / CVE-2024-2313
CVE-2024-2313: is it exploited, and which versions of bpftrace are affected and fixed?
CVE-2024-2313 is an insecure temporary file vulnerability in bpftrace. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:38 UTC). Affected: bpftrace before 0.20.2 (NVD). Fixed in 0.20.2 (NVD). Severity: Low (2.8, CVSS 3.1, from canonical).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:38 UTC, CVE record November 19, 2026, 07:12 UTC and NVD November 19, 2026, 07:31 UTC.
What is CVE-2024-2313?
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.
From the CVE record by canonical, last updated March 13, 2025, 21:15 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| bpftrace | bpftrace Linux | not stated |
As the CVE record by canonical states it, last updated March 13, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| bpftrace | bpftrace | before 0.20.2 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 07:24 UTC.
How severe is CVE-2024-2313?
| Score | Version | Vector | Source |
|---|---|---|---|
| Low 2.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:L | canonical |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-2313 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, March 12, 2024)
- EPSS
- 0.18% probability of exploitation activity in the next 30 days, percentile 8.3 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-377 insecure temporary file
Where are the vendor advisories and references?
- https://github.com/bpftrace/bpftrace/commit/4be4b7191acb8218240e6b7178c30fa8c9b59998 patch
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-2313 issue-tracking
Who found and reported it?
- Mark Esler (finder)
- Seth Arnold (analyst)
- Brendan Gregg (remediation reviewer)
- Jordan Rome (remediation developer)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- March 7, 2024
- Published
- March 10, 2024, 22:51 UTC
- CVE record updated
- March 13, 2025, 21:15 UTC by canonical
- NVD
- Analyzed, last modified June 17, 2026, 07:24 UTC
- Last checked
- CVE list November 19, 2026, 07:12 UTC; NVD November 19, 2026, 07:31 UTC; KEV December 3, 2026, 13:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2024-2313
Is CVE-2024-2313 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:38 UTC. FIRST's EPSS gives it a 0.18% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of bpftrace are affected by CVE-2024-2313?
bpftrace before 0.20.2, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2024-2313?
0.20.2, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-2313?
Low (2.8, CVSS 3.1, from canonical). The severity table above shows each score with its source.
Where is the official record of CVE-2024-2313?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.