BeamNG.drive before 0.40.6 contains an out-of-bounds write vulnerability because JIT-compiled LuaJIT traces omit FFI
Source GCVE Database
Not known to be exploited · CVSS 9.3 Critical : upgrade to 0.40.6 as a priority.
Data as of 20 Nov 2026, 04:35 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 9.3 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 8.6 |
- Patch
- Available – fixed in 0.40.6
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:HExploitation evidence
Disclosed: evidence found.
CVE published 20 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 19 Nov 2026.
What to do
Upgrade BeamNG.drive and drbloop2000/BeamNG-Drive to 0.40.6.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| BeamNG GmbHBeamNG.drive | Affected
| Fixed in
|
GitHubdrbloop2000/BeamNG-Drivepkg:github/drbloop2000/BeamNG-DriveOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in BeamNG.drive version 0.40.6. Users should upgrade to version 0.40.6 or later to remediate this vulnerability. No other mitigation guidance is provided or necessary given the availability of the official fix.
Description
BeamNG.drive versions prior to 0.40.6 have an out-of-bounds write vulnerability in the JIT-compiled LuaJIT engine. This flaw arises because the JIT traces omit foreign function interface (FFI) array bounds checks, allowing malicious Lua code from untrusted mods to escape the sandbox. Exploitation can lead to arbitrary command execution with the privileges of the game user.
References
- nvd.nist.gov/vuln/detail/CVE-2026-133528 (opens in a new tab)
- github.com/drbloop2000/BeamNG-Drive-RCE (opens in a new tab)
- store.steampowered.com/news/app/284160/view/681890829846973542 (opens in a new tab)
- vulncheck.com/advisories/beamng-drive-before-0.40.6-luajit-ffi-sandbox-escape-via-jit-bounds-check-bypass (opens in a new tab)