CVE-2026-133528 BeamNG.drive before 0.40.6 LuaJIT FFI Sandbox Escape via JIT Bounds-Check Bypass
CriticalCVSS 9.3
EPSS 0.13%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| BeamNG GmbH BeamNG.drive | < 0.40.6 | 0.40.6 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| BeamNG GmbH BeamNG.drive | < 0.40.6 | 0.40.6 |
References
- store.steampowered.com release-notes vendor-advisory
- github.com exploit
- VulnCheck Advisory: BeamNG.drive before 0.40.6 LuaJIT FFI Sandbox Escape via JIT Bounds-Check Bypass third-party-advisory
- ENISA EUVD EUVD-2026-130810 third-party-advisory
- nvd.nist.gov