CVE-2026-133528 BeamNG.drive before 0.40.6 LuaJIT FFI Sandbox Escape via JIT Bounds-Check Bypass
- Exploited in the wild
- Not known
- Fix
- 0.40.6
What is CVE-2026-133528?
CVE-2026-133528 is a critical vulnerability in BeamNG.drive, published on 20 Nov 2026.
Official 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.
Weakness: CWE-787
Which versions are affected by CVE-2026-133528?
How do I fix CVE-2026-133528?
Upgrade BeamNG.drive to 0.40.6 or later. The advisory says that version fixes it.
Is CVE-2026-133528 being exploited?
There is no known exploitation of CVE-2026-133528 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as GHSA-7wxf-w2p5-7pvr.