Buffer overflow in Tesla Model S
CVE-2024-6031
Tesla Model S oFono AT Command Heap-based Buffer Overflow Code Execution Vulnerability. This vulnerability allows local attackers to execute arbitrary code on affected Tesla Model S vehicles. An attacker must first obtain the ability to execute code on the target modem in order to exploit this vulnerability. The specific flaw exists within the parsing of responses from AT commands. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the device. Was ZDI-CAN-23198.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.002 (7.3th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 7th percentile — 7.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.002 · newest: 0.002 · change: +0.000
Affected products
- Tesla Model S — versions 2023.44.29
- Tesla Model S
- Tesla Model S Firmware
Weakness classification (CWE)
References
- www.zerodayinitiative.com/advisories/ZDI-25-261/ (x_research-advisory, Third Party Advisory)
Frequently asked questions
- What is CVE-2024-6031?
- CVE-2024-6031 is a high-severity vulnerability in Tesla Model S, classified under Heap-based Buffer Overflow. CVSS score: 7.8/10. Published 2025-04-30.
- How severe is CVE-2024-6031?
- High severity. CVSS v3 base score is 7.8 out of 10.