BreachSpiderVerified, not vibes

CVE-2024-2313 in Bpftrace and 1 more product

Low 2.8

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.

CVSS 3.12.8
EPSS0.2%
EPSS percentile9th
FixUnknown

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

VendorProductAffected 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-exploitedNot in the CISA KEV catalog
Public exploitNot 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 IDCVE-2024-2313
BreachSpider IDBS-2024-GLOBAL-207470-L
CVSS vectorCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:L
Published2024-03-10
Last modified2026-06-17
Weakness (CWE)
SourceNVD

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"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.