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.
                
            Metrics
Affected Vendors & Products
References
        | Link | Providers | 
|---|---|
| https://www.zerodayinitiative.com/advisories/ZDI-25-261/ |     | 
History
                    Tue, 12 Aug 2025 15:30:00 +0000
| Type | Values Removed | Values Added | 
|---|---|---|
| First Time appeared | Tesla model S Firmware | |
| CPEs | cpe:2.3:h:tesla:model_s:-:*:*:*:*:*:*:* cpe:2.3:o:tesla:model_s_firmware:*:*:*:*:*:*:*:* | |
| Vendors & Products | Tesla model S Firmware | 
Wed, 30 Apr 2025 21:15:00 +0000
| Type | Values Removed | Values Added | 
|---|---|---|
| Metrics | ssvc 
 | 
Wed, 30 Apr 2025 20:30:00 +0000
| Type | Values Removed | Values Added | 
|---|---|---|
| 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. | |
| Title | Tesla Model S oFono AT Command Heap-based Buffer Overflow Code Execution Vulnerability | |
| Weaknesses | CWE-122 | |
| References |  | |
| Metrics | cvssV3_0 
 | 
 MITRE
                        MITRE
                    Status: PUBLISHED
Assigner: zdi
Published: 2025-04-30T20:00:29.921Z
Updated: 2025-04-30T20:12:28.649Z
Reserved: 2024-06-14T23:41:39.467Z
Link: CVE-2024-6031
 Vulnrichment
                        Vulnrichment
                    Updated: 2025-04-30T20:12:24.057Z
 NVD
                        NVD
                    Status : Analyzed
Published: 2025-04-30T20:15:21.153
Modified: 2025-08-12T15:16:51.233
Link: CVE-2024-6031
 Redhat
                        Redhat
                    No data.