Vulnerability record
Bug mechanics, affected systems, and remediation
The editorial record appears before the modeled consequence so the Path Score remains traceable to the documented vulnerability.
1. Summary
A time-of-check/time-of-use (TOCTTOU) defect in the firmware-update path of the Tesla Model 3 Gateway ECU allows an attacker to bypass firmware signature validation and execute arbitrary code on the Gateway [1][2]. The Gateway is the central ECU that bridges the vehicle’s infotainment/Ethernet domain to its internal CAN buses, so code execution there confers the ability to inject arbitrary CAN messages into vehicle subsystems [1][3]. Exploitation requires a prior privileged foothold on the infotainment system and network-adjacent access to the internal Ethernet network [1][4]. The flaw was demonstrated live at Pwn2Own Vancouver 2023, where researchers used it to actuate vehicle functions [3][7].
2. Affected products & versions
| product | models | affected versions | fixed version |
|---|---|---|---|
| Tesla vehicle firmware (Gateway ECU) | Model 3 | firmware prior to 2023.12 (2023.6 documented specifically; 2023.6 through 2023.12 range) | 2023.12 (delivered via OTA self-update) |
3. The vulnerability in detail
The defect lives in the Tesla Model 3 Gateway ECU firmware-update / signature-validation handling path [1][2]. The Gateway is a central automotive ECU: it acts as the trust and routing boundary between the vehicle’s “rich” compute domain (infotainment, connectivity, the internal automotive Ethernet network) and the safety-relevant internal CAN buses that carry commands to physical vehicle subsystems. Because the Gateway sits astride this boundary, its firmware is expected to be a trust root — only firmware images that pass cryptographic signature validation should ever run on it, and only the Gateway should be able to originate CAN traffic to actuators. The vulnerability breaks the first of those assumptions, which in turn destroys the second.
The root cause is improper error-handling during the Gateway firmware update process that permits the firmware signature-validation step to be bypassed [1]. Both Trend Micro’s Zero Day Initiative (ZDI) and the GitHub Advisory Database classify the weakness as CWE-367: Time-of-check Time-of-use (TOCTTOU) race condition [1][2][4]. A TOCTTOU flaw is a gap between the moment a program checks a security-relevant property of some resource (here: “is this firmware image validly signed?”) and the moment it uses that resource (here: “install and execute this firmware image”). If an attacker can influence the resource in that window — or if a mishandled error causes the check’s result to be ignored, discarded, or not enforced at the point of use — then the “checked” state and the “used” state diverge, and unverified code runs as though it had been verified. The available sources do not resolve precisely which sub-mechanism is in play: whether it is a genuine timing race on a shared resource between the check and the install, or an error-handling fall-through where a failed/short-circuited validation path is treated as success. The authoritative taxonomy is CWE-367; NIST’s NVD records the weakness as NVD-CWE-noinfo, i.e., it did not independently assign a CWE [1]. (A speculative ZDI-advisory retrieval surfaced CWE-347/CWE-680, but those contradict the authoritative CWE-367 and are treated as a retrieval artifact.)
Preconditions and trigger. The flaw is not reachable cold from the internet. Exploitation requires the attacker to already hold privileged code execution on the infotainment system and to have network-adjacent access to the vehicle’s internal Ethernet network [1][4][6]. There is no user interaction, and attack complexity is low once that foothold exists (AC:L) [1]. From that position, the attacker drives the Gateway firmware-update path and induces the TOCTTOU/error-handling condition so that a crafted, unsigned firmware image is accepted as if validly signed.
Exploitation chain, as demonstrated and documented:
- Obtain privileged code execution on the infotainment system with network-adjacent access to the internal network [1][4].
- Interact with / drive the Gateway firmware-update process [1].
- Exploit the TOCTTOU / improper-error-handling flaw to bypass firmware signature validation [1][2].
- Execute arbitrary code on the Gateway ECU [1].
- From the compromised Gateway, transmit arbitrary CAN bus messages to vehicle subsystems [3][6].
- Actuate vehicle functions — the demonstrated effect was opening the front trunk or a door while the car was in motion [7].
The reason step 5 follows so directly from step 4 is architectural: the Gateway is the legitimate originator of CAN traffic toward the actuators, so once arbitrary code runs there, CAN message injection is not a further exploit but simply the intended capability of the now-attacker-controlled component. This is what elevates a firmware-integrity bug into a physical-actuation / safety concern.
Proof-of-concept status. The vulnerability was reproduced and demonstrated live at Pwn2Own Vancouver 2023 by David Berard and Vincent Dehors of Synacktiv, who completed the Gateway TOCTTOU exploit in under two minutes and produced arbitrary CAN bus messages on stage; Tesla’s response team validated the findings on-site [2][3][6][8]. The exploit earned $100,000, a Tesla Model 3, and 10 Master of Pwn points [3][8].
The underlying weakness (CWE-367). CWE-367 (TOCTTOU) is fundamentally a concurrency/ordering weakness: the security decision and the security-relevant action are separated in time, and the system fails to guarantee that the state validated during the check still holds at the moment of use. In a signature-validation context this is especially dangerous, because the entire value of code-signing rests on the invariant “only code that passed validation executes.” A TOCTTOU (or a mishandled error that collapses the check) severs that invariant, converting a cryptographic gate into a bypassable formality and letting arbitrary code inherit the Gateway’s privileged position on the internal bus.
4. Discovery & timeline
The vulnerability was discovered by David Berard and Vincent Dehors of Synacktiv [2][5]. It was demonstrated at Pwn2Own Vancouver 2023 on 2023-03-22 [3], reported to Tesla on 2023-03-30 [2], and the coordinated ZDI advisory ZDI-23-972 (internal tracking ZDI-CAN-20734) was published on 2023-07-18 [2]. The NVD record for CVE-2023-32156 was published 2023-07-18 [1]. Tesla’s product-security team validated the exploit on-site during the contest and subsequently shipped a fix fleet-wide via its OTA self-update mechanism [6].
5. Technical reference
- CVE: CVE-2023-32156 [1]
- ZDI advisory: ZDI-23-972; internal ID ZDI-CAN-20734 [2]
- GitHub Advisory: GHSA-v757-7wm5-j6j9 [4]
- CWE: CWE-367 (TOCTTOU race condition) per ZDI and GitHub; NIST records NVD-CWE-noinfo [1][4]
- CVSS (NIST, v3.1): 8.8 HIGH —
AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H[1] - CVSS (ZDI, v3.0): 9.0 CRITICAL —
AV:A/AC:L/PR:L/UI:N/S:C[1][2] - Code/commit refs: not documented — the exact source file/function/binary within the Gateway firmware is not public [1][2]
What the key metrics mean here: AV:A (Adjacent) reflects that the attacker must reach the vehicle’s internal (Ethernet) network rather than exploit remotely across the internet. AC:L captures that, given that adjacency and the prerequisite infotainment foothold, the exploit itself is reliable and low-complexity (demonstrated in under two minutes). The two scorings diverge on privileges and scope: NIST uses PR:N with S:U (8.8 HIGH), while ZDI uses PR:L with S:C (9.0 CRITICAL) — ZDI’s scope-changed judgment reflects that Gateway code execution crosses a security boundary into the internal bus/actuation domain. C:H/I:H/A:H reflect full compromise of the Gateway’s confidentiality, integrity, and availability.
6. Consequence & CFSE path analysis
Real-world consequence: an attacker who has already compromised the infotainment system can escalate onto the Gateway ECU and then command vehicle subsystems over CAN — including, as demonstrated, opening the front trunk or a door while the car is in motion [3][7]. The dominant risk is not data disclosure but influence over safety-relevant physical actuation of a moving vehicle.
Why the CFSE Path Score differs from CVSS. CVSS collapses this into a single base metric anchored on the component (v3.1 8.8 HIGH / v3.0 9.0 CRITICAL). The CFSE analysis instead decomposes the same CVE into two co-dominant risk paths and scores each on its own consequence-and-reachability terms, which surfaces the safety dimension that a single CVSS number flattens.
CFSE consequence verdict:
verdict: CRITICAL. The entry decomposes CVE-2023-32156 into two co-dominant risk paths, both banded CRITICAL, yielding an overall path_verdict of CRITICAL. The first path (DEVICE_CONTROL_SAFETY, family: safety) reasons that gateway code execution mediates commands to vehicle subsystems and was demonstrated to open the front trunk or a door while the car is in motion, a credible dangerous-actuation risk (PH:4), though reachability is bound by needing a prior privileged infotainment foothold and lateral move to the Gateway ECU (RE:1, EX:1). The second path (FIRMWARE_TRUST_ROOT, family: authority) treats the core defect as a TOCTTOU signature-validation bypass in the Gateway firmware update path that lets unsigned/arbitrary code run on a central ECU, subverting the component’s firmware trust root (AT:4) with a portable, fleet-wide reusable primitive (SR:4). Both paths share EX=1 (reachability-bound, gated by the chained infotainment foothold), score EC:3 for a chain-dependent but standard-to-advanced researcher workflow, note the cross-domain authority chain (CH:4) from app/infotainment to internal bus to physical actuation, and are marked patch-available (Tesla shipped an OTA/firmware-update fix). Neither path applies a separate cap or systemic uplift, so each base band remains CRITICAL. The verdict emphasizes influence over a safety-relevant actuation as the dominant consequence rather than the published CVSS baseline (v3.1 8.8 HIGH / v3.0 9.0 CRITICAL).
In short: CVSS rates the component compromise; CFSE additionally recognizes (a) the safety consequence of actuating a moving vehicle and (b) the authority consequence of subverting a fleet-wide firmware trust root, banding both CRITICAL while still crediting that reachability is gated by the required infotainment foothold (EX:1).
7. Remediation & mitigations
- Apply the vendor fix. Tesla remediated the flaw in Model 3 firmware 2023.12, delivered fleet-wide via its OTA self-update mechanism; vehicles on prior firmware (2023.6 through pre-2023.12) should ensure they have received the update [1][2][6].
- No manual workaround is documented for the Gateway firmware path itself; the fix is the signed firmware update.
- Defense-in-depth relevant to this specific chain: because the exploit is strictly gated on a prior privileged infotainment foothold plus internal-Ethernet adjacency [1][4], hardening/monitoring the infotainment compromise step and the internal network path is the meaningful upstream mitigation — an attacker who cannot reach step 1 cannot reach the Gateway TOCTTOU at all. No generic SOC controls apply directly to the in-vehicle Gateway bug.
8. Sources
[1] NVD - CVE-2023-32156 - NIST NVD - https://nvd.nist.gov/vuln/detail/CVE-2023-32156 - Authoritative CVE record: description, CWE-367, both CVSS scorings, affected Model 3 firmware 2023.6–2023.12. Credibility: primary-advisory. [2] ZDI-23-972: Tesla Model 3 Gateway Firmware Signature Validation Bypass - Trend Micro Zero Day Initiative - https://www.zerodayinitiative.com/advisories/ZDI-23-972/ - Disclosure timeline, fix in 2023.12, ZDI-CAN-20734, researcher credit (Berard/Dehors), CVSS 9.0. Credibility: primary-advisory. [3] Pwn2Own Vancouver 2023 - Day One Results - Trend Micro Zero Day Initiative - https://www.zerodayinitiative.com/blog/2023/3/22/pwn2own-vancouver-2023-day-one-results - Primary account of the live demo: TOCTOU in the Gateway, arbitrary CAN messages, under two minutes, $100k + Model 3 + 10 points. Credibility: primary-advisory. [4] GHSA-v757-7wm5-j6j9 - CVE-2023-32156 GitHub Advisory - GitHub Advisory Database - https://github.com/advisories/GHSA-v757-7wm5-j6j9 - Confirms CWE-367, Critical 9.0, Adjacent vector, prior privileged infotainment code execution required. Credibility: primary-advisory. [5] Synacktiv Publications - Synacktiv - https://www.synacktiv.com/en/publications - Discovering firm’s publication hub; corroborates Berard/Dehors Model 3 Pwn2Own 2023 Gateway work. Credibility: researcher-primary. [6] Tesla Hacked Twice at Pwn2Own Exploit Contest - SecurityWeek - https://www.securityweek.com/tesla-hacked-twice-at-pwn2own-exploit-contest/ - Confirms TOCTOU race against the Gateway, full Gateway compromise from Ethernet, $100k reward, Tesla on-site validation and self-update fix. Credibility: reputable-press. [7] Tesla Model 3 Hacked in Less Than 2 Minutes at Pwn2Own Contest - Dark Reading - https://www.darkreading.com/vulnerabilities-threats/tesla-model-3-hacked-2-minutes-pwn2own-contest - Uniquely reports the demonstrated safety effect (opening front trunk/door while the car was in motion) plus timing/reward. Credibility: reputable-press. [8] Windows 11, Tesla, Ubuntu, and macOS hacked at Pwn2Own 2023 - BleepingComputer - https://www.bleepingcomputer.com/news/security/windows-11-tesla-ubuntu-and-macos-hacked-at-pwn2own-2023/ - Independent cross-confirmation of the Gateway TOCTOU exploit, reward, and Synacktiv attribution within broader Pwn2Own results. Credibility: reputable-press.
Causal model
How the exploit reaches this consequence
2 modeled paths · each transition states what supports it.
Safety · Co-dominant path
Device-control safety
Demonstrated gateway control can open the front trunk or a door while the car is moving, creating a credible dangerous-actuation risk.
CRITICAL
Safety · Co-dominant path
Device-control safety
Demonstrated gateway control can open the front trunk or a door while the car is moving, creating a credible dangerous-actuation risk.
Per-device physical access
Position requires prior privileged foothold on infotainment then lateral move to the Gateway ECU (internal, not open-net).
Evidence NVD
Cross-domain authority chain
Cross-domain bridge: app and infotainment to internal bus to physical actuation crosses multiple boundaries and is a reusable pivot.
Evidence Derived from the cited facts.
Severe therapy or actuation consequence
Demonstrated gateway control can open the front trunk or a door while the car is moving, creating a credible dangerous-actuation risk.
Evidence Derived from the cited facts.
Device-control safety
Demonstrated gateway control can open the front trunk or a door while the car is moving, creating a credible dangerous-actuation risk.
Evidence Derived from the cited facts.
Patch, reset, or reconfiguration
Recoverable through a firmware update.
Evidence Required deployment or recovery condition.
Decision trail
How the final band follows
- Base bandCRITICAL
- No adjustment
The CRITICAL base band remains final because no separate cap or systemic uplift applies. Demonstrated gateway control can open the front trunk or a door while the car is moving, creating a credible dangerous-actuation risk.
- Final bandCRITICAL
Inspect every metric judgment
Decision rationale
How this band was reached
Reach and effort
- Reachability
RE 1 - Per-device physical access
Position requires prior privileged foothold on infotainment then lateral move to the Gateway ECU (internal, not open-net).
- Execution complexity
EC 3 - Reproducible exploit workflow
The Gateway step itself is low-complexity but reaching it needs the chained foothold is standard-to-advanced researcher workflow.
- Exposure
EX 1 - Access position limits exposure
The technique is easier to perform than it is to position against a target, so access is the constraining factor.
Consequence
- Physical / safety
PH 4 - Severe therapy or actuation consequence
Demonstrated gateway control can open the front trunk or a door while the car is moving, creating a credible dangerous-actuation risk.
- Data / perception
DP 3 - Sensitive device or personal data
Gateway compromise exposes vehicle configuration, command, and operational state rather than relying on personal data or a separate perception feed.
- Authority
AT 3 - Administrative or command authority
The path reaches administrative control over vehicle command functions, but not the gateway signing or firmware trust root.
Scale and recovery
- Chainability
CH 4 - Cross-domain authority chain
Cross-domain bridge: app and infotainment to internal bus to physical actuation crosses multiple boundaries and is a reusable pivot.
- Reuse scale
SR 3 - Portable product-class technique
Reusable across Model 3 on affected firmware given foothold.
- Execution scale
SX 3 - Deployment-wide with setup
Deployment-wide with the prerequisite setup, no per-device physical touch beyond the chain.
- Recovery burden
OR 2 - Patch, reset, or reconfiguration
Recoverable through a firmware update.
Confidence and status
- Evidence strength
EV 3 - Reproduced or documented in detail
NVD documents the condition.
- Liveness
LS Patch available - A patch is available
A vendor fix is available.
Technical vector
CPATH:1.0/TT:DEVICE_CONTROL_SAFETY/RE:1/EC:3/EX:1/PH:4/DP:3/AT:3/CH:4/SR:3/SX:3/OR:2/EV:3/LS:PATCH_AVAILABLERead the scoring method →Authority · Co-dominant path
Firmware trust root
A time-of-check and time-of-use flaw bypasses signature validation in the gateway update path, allowing untrusted code to run on a central vehicle controller.
CRITICAL
Authority · Co-dominant path
Firmware trust root
A time-of-check and time-of-use flaw bypasses signature validation in the gateway update path, allowing untrusted code to run on a central vehicle controller.
Per-device physical access
Position requires prior infotainment code execution then adjacency to the Gateway update path.
Evidence NVD
Cross-domain authority chain
Crosses update and firmware and device boundaries and is a reusable bridge to persistent control.
Evidence Derived from the cited facts.
Firmware or trust-root authority
A time-of-check and time-of-use flaw bypasses signature validation in the gateway update path, allowing untrusted code to run on a central vehicle controller.
Evidence Derived from the cited facts.
Firmware trust root
A time-of-check and time-of-use flaw bypasses signature validation in the gateway update path, allowing untrusted code to run on a central vehicle controller.
Evidence Derived from the cited facts.
Coordinated operational recovery
Persistent malicious firmware on the control bridge raises recovery cost beyond a single patch action though Tesla shipped a firmware-update fix.
Evidence Required deployment or recovery condition.
Decision trail
How the final band follows
- Base bandCRITICAL
- No adjustment
The CRITICAL base band remains final because no separate cap or systemic uplift applies. A time-of-check and time-of-use flaw bypasses signature validation in the gateway update path, allowing untrusted code to run on a central vehicle controller.
- Final bandCRITICAL
Inspect every metric judgment
Decision rationale
How this band was reached
Reach and effort
- Reachability
RE 1 - Per-device physical access
Position requires prior infotainment code execution then adjacency to the Gateway update path.
- Execution complexity
EC 3 - Reproducible exploit workflow
Standard researcher workflow once positioned, Gateway step but chain-dependent.
- Exposure
EX 1 - Access position limits exposure
The technique is easier to perform than it is to position against a target, so access is the constraining factor.
Consequence
- Physical / safety
PH 3 - Credible safety consequence
Safety-relevant since the compromised ECU governs actuation.
- Data / perception
DP 3 - Sensitive device or personal data
Gateway firmware access can expose proprietary code, configuration, and embedded security material.
- Authority
AT 4 - Firmware or trust-root authority
A time-of-check and time-of-use flaw bypasses signature validation in the gateway update path, allowing untrusted code to run on a central vehicle controller.
Scale and recovery
- Chainability
CH 4 - Cross-domain authority chain
Crosses update and firmware and device boundaries and is a reusable bridge to persistent control.
- Reuse scale
SR 4 - Shared fleet-wide primitive
Defeating signature checking is a portable, reusable secret and logic defect applicable across identical units and firmware is supply-chain and trust-mechanism reuse.
- Execution scale
SX 3 - Deployment-wide with setup
After the prerequisite infotainment foothold is available, the Gateway update-path technique can be repeated across affected vehicles without opening each ECU.
- Recovery burden
OR 3 - Coordinated operational recovery
Persistent malicious firmware on the control bridge raises recovery cost beyond a single patch action though Tesla shipped a firmware-update fix.
Confidence and status
- Evidence strength
EV 3 - Reproduced or documented in detail
NVD documents the condition.
- Liveness
LS Patch available - A patch is available
A vendor fix is available.
Technical vector
CPATH:1.0/TT:FIRMWARE_TRUST_ROOT/RE:1/EC:3/EX:1/PH:3/DP:3/AT:4/CH:4/SR:4/SX:3/OR:3/EV:3/LS:PATCH_AVAILABLERead the scoring method →Triage implication
Prioritize the safety transition.
Set remediation urgency from the deployment-specific transition between digital control or perception and physical action.
Evidence ledger
Public sources used by this record.
- advisoryNVD
NVD
Published baseline
Why this band differs from CVSS
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCVSS:3.0/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HCFSE Consequence Paths Registry 1.0, CPATH-2026-0019 (“Gateway firmware signature-validation bypass”), paths.cfse.ai/CPATH-2026-0019 (published 2026-06-03).