Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish malicious BeamNG mod
-
DeliveryVictim loads untrusted mod
-
ExploitJIT-compile FFI store loop bypasses bounds check
-
ExecutionLeak address via tostring(), re-enable ffi.load
-
ImpactRun commands as game user
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to load an untrusted/malicious BeamNG.drive mod on a version before 0.40.6; the mod's Lua must be JIT-compiled by LuaJIT so that an FFI store loop hits the missing array bounds check, after which the attacker uses a tostring() address leak and re-enables ffi.load to run commands as the game user. Limiting factors: the attack is local (AV:L) and requires user interaction (UI:P) - specifically the deliberate act of installing and running a third-party mod - so there is no remote, zero-click vector; users who only run the base game or trusted content are not exposed, and updating to 0.40.6 or later removes the flaw. |
| Impact | Signals are largely consistent in pointing to a serious but interaction-gated flaw. The CVSS 4.0 vector (9.3, CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H) describes a local attack (AV:L) requiring passive user interaction (UI:P) with no attacker privileges (PR:N), yielding full compromise of both the vulnerable and a subsequent system (SC/SI/SA:H), which matches the described LuaJIT FFI sandbox escape into arbitrary command execution as the game user. The vuln.today decision label is act_now and the issue was reported by VulnCheck, reinforcing priority. However, this is NOT confirmed actively exploited: it is not stated to be in CISA KEV, and no EPSS score is provided, so widespread or automated exploitation cannot be asserted. A public PoC reference exists (the BeamNG-Drive-RCE GitHub repo) but it is not verified as working exploit code, so POC availability must not be equated with active exploitation. The practical risk driver is the gaming-mod distribution model: UI:P means a victim need only load an untrusted mod, a routine behavior in modding communities, which effectively lowers the real-world barrier despite the local (AV:L) vector. No CVSS 3.1 vector was supplied in the input (only the 4.0 vector), so any 3.1-based prioritization must be derived rather than taken as vendor-confirmed. |
| Exploit ScenarioDerived | An attacker publishes a malicious BeamNG.drive mod to a modding site or shares it in a community channel; when a victim running a version before 0.40.6 loads it, embedded Lua is JIT-compiled and triggers an out-of-bounds FFI write that escapes the Lua sandbox and runs arbitrary commands as the game user. A public PoC reference exists (github.com/drbloop2000/BeamNG-Drive-RCE) but it is not verified as working exploit code. The attack is local (AV:L) and depends on the victim loading the untrusted mod (UI:P), not on remote network access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 20, 2026
BeamNG.drive before 0.40.6 ships a LuaJIT build whose JIT-compiled traces omit FFI array bounds checks, so untrusted Lua code loaded from a game mod can perform an out-of-bounds write, leak addresses via tostring(), re-enable ffi.load and execute commands as the game user. Only players who deliberately install and load a malicious third-party mod on an affected version are exposed; the base game and trusted content are not. A public PoC reference exists (a GitHub repository), but it is not verified as working exploit code, and there is no KEV confirmation of active exploitation.
RemediationAI
Upgrade BeamNG.drive to 0.40.6 or later, which removes the vulnerable LuaJIT FFI/JIT behaviour; release notes are available at https://store.steampowered.com/news/app/284160/view/681890829846973542 and the technical advisory at https://www.vulncheck.com/advisories/beamng-drive-before-0.40.6-luajit-ffi-sandbox-escape-via-jit-bounds-check-bypass. Until updating, the exposure is limited to loading untrusted content: do not install or run third-party mods from unverified sources, since the attack requires the user to deliberately load a malicious mod and have its Lua JIT-compiled; the trade-off is loss of mod functionality, and users who only run the base game or trusted content are not exposed. A public PoC reference exists at https://github.com/drbloop2000/BeamNG-Drive-RCE but is not verified as working exploit code, so treat any untrusted mod as potentially hostile.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is a missing bounds check in LuaJIT's trace compiler (JIT) for FFI array stores, a CWE-787 out-of-bounds write. In normal interpreted Lua, FFI array accesses are bounds-checked, but when a store loop is hot enough to be JIT-compiled into a trace, the generated machine code omits the check, letting an FFI store write past the end of the allocated buffer. Within BeamNG.drive's mod sandbox this breaks the isolation boundary: crafted Lua can use a tostring() address leak to learn where things live in memory, then re-enable the normally restricted ffi.load and invoke native code, escalating from a corrupted game process to arbitrary command execution with the privileges of the game user. The CVSS:4.0 vector supplied (AV:L/AC:L/AT:N/PR:N/UI:P, all impact sub-scores High, including subsequent-system impact) and our independent CVSS:3.1 assessment (AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H) both describe a local, interaction-gated attack that crosses a security boundary - the mod sandbox - but requires the user to install and run the malicious mod; no remote or zero-click path is described. The trigger specifics beyond the FFI store loop, address leak and ffi.load re-enable are not further detailed in the available sources.
Know when Beamng Drive gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Local because exploitation runs via a loaded mod (AV:L); no attacker privileges (PR:N) but the victim must load the mod (UI:R); sandbox escape to host command execution is a scope change (S:C) with full C/I/A impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
BeamNG.drive before 0.40.6 contains an out-of-bounds write vulnerability because JIT-compiled LuaJIT traces omit FFI array bounds checks, letting untrusted Lua escape the sandbox. Attackers supplying a malicious mod can JIT-compile an FFI store loop, write out of range using a tostring() address leak, re-enable ffi.load, and run commands as the game user.
Technical POC Analysis
The bug class is CWE-787, out-of-bounds write.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
BeamNG.drive, a widely used racing simulation game, contains a critical memory corruption vulnerability (CVE-2026-133528) that allows malicious mods to execute arbitrary code with the user's privileges. While the base game is unaffected and exploitation requires deliberate installation of a malicious mod, the potential for unauthorized command execution on player systems poses a risk to those who use third-party content. Security leadership should address this in the context of software supply chain and endpoint security.
Restrict mod installations to verified sources and enforce application control on endpoints where BeamNG.drive is used. Monitor for anomalous command execution by game processes.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
EUVD-2026-130810
GHSA-7wxf-w2p5-7pvr
NVD
CVE.org
EPSS
VulDB
Exploit-DB