7.8
CWE
122 119
Advisory Published
Advisory Published
Updated

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

First published: Wed Apr 30 2025(Updated: )

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.

Credit: zdi-disclosures@trendmicro.com

Affected SoftwareAffected VersionHow to fix
Tesla Model S Firmware
Tesla Model S Firmware

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-6031?

    CVE-2024-6031 has a high severity rating due to its potential for arbitrary code execution on affected Tesla Model S vehicles.

  • How do I fix CVE-2024-6031?

    To mitigate CVE-2024-6031, ensure that your Tesla Model S firmware is updated to the latest version provided by Tesla.

  • Who is affected by CVE-2024-6031?

    CVE-2024-6031 affects Tesla Model S vehicles that utilize the vulnerable oFono AT Command implementation.

  • What type of attack can exploit CVE-2024-6031?

    CVE-2024-6031 can be exploited by local attackers with access to the target modem, allowing for execution of arbitrary code.

  • What is the impact of CVE-2024-6031?

    The impact of CVE-2024-6031 includes the potential for local attackers to gain control of vehicle functions through code execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203