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.
- CVSS
- 8.6High
- Chance of exploitation (EPSS)
- 0.20%
- Published
- Nov 20, 2026
- In the news
- Not yet
What to do
A serious memory corruption flaw in Beamng.drive that needs access to the machine itself. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Fixed in: 0.40.6
Affected versions
- Beamng.drive
- Before 0.40.6
Description
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.
Affected products
Get alerts for these →Timeline 1
Latest change: CVE-2026-133528 published (CVSS 8.6) (Nov 19, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Fri, Nov 20, 2026
- CVECVE-2026-133528 published (CVSS 8.6)CVE Program · 01:17 UTC
References 3
- github.com /drbloop2000/BeamNG-Drive-RCE
- store.steampowered.com /news/app/284160/view/681890829846973542
- www.vulncheck.com /advisories/beamng-drive-before-0.40.6-luajit-ffi-sandbox-escape-via-jit-bounds-check-bypass