CVE-2026-133528
BeamNG.drive before 0.40.6 LuaJIT FFI Sandbox Escape via JIT Bounds-Check Bypass
Critical · 9.3Fix available
- CVSS
- 9.3
- EPSS
- 0.20% (p11)
- Published
- 2026-11-20
- Age
- 14d old
- Modified
- 2026-11-25
- Product
- BeamNG GmbH BeamNG.drive
- Aliases
- EUVD-2026-130810
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
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.
Fixed in
0.40.6
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | BeamNG.drive | >=0, <0.40.6 | 0.40.6 |
Sources
- NVD · first seen 14d ago · NVD terms of use
- ENISA EUVD · first seen 14d ago · ENISA
- CVE List · first seen 14d ago · CVE Terms of Use
References
- https://store.steampowered.com/news/app/284160/view/681890829846973542 vendor-advisory
- https://github.com/drbloop2000/BeamNG-Drive-RCE exploit
- https://www.vulncheck.com/advisories/beamng-drive-before-0.40.6-luajit-ffi-sandbox-escape-via-jit-bounds-check-bypass third-party-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-133528 other