CVE-2024-6031

High

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.

SeverityHigh
CVSS7.8
Exploit probability—
ProductTesla Model S Firmware
PublishedApr 30, 2025
First seenApr 30, 2025
Weakness typeCWE-122CWE-122

How to fix

Update
  • tesla model_s_firmware2024.2 or later

Affected products

ProductAffected versionsFixed in
tesla model_s_firmwarev < 2024.22024.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.