# CVE-2024-6031: Tesla Model S oFono AT Command Heap-based Buffer Overflow Code Execution Vulnerability

- Severity: High 7.8 (CVSS:3.0, scored by zdi) `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-04-30T20:00:29.921Z
- Modified: 2026-06-17T08:17:08.863Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: zdi

## Description

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.

(As written by CVE List.)

## Affected

- Tesla Model S: 2023.44.29
- tesla model_s_firmware: before 2024.2

## References

- <https://www.zerodayinitiative.com/advisories/ZDI-25-261/> (third-party-advisory)

## Sources

- CVE List: [CVE-2024-6031](https://www.cve.org/CVERecord?id=CVE-2024-6031), CVE Terms of Use, modified 2025-04-30
- NVD: [CVE-2024-6031](https://nvd.nist.gov/vuln/detail/CVE-2024-6031), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-6031 · Whole record: https://cve.day/CVE-2024-6031.json · Rebuilt by cve.day 2026-11-25T22:58:52.567Z
