Paper/Archive/CVE-2026-133528

CVE-2026-133528

BeamNG GmbH BeamNG.drive — BeamNG.drive before 0.40.6 LuaJIT FFI Sandbox Escape via JIT Bounds-Check Bypass

Description · from the CVE record

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

ProductAffectedFixed inSource
BeamNG.drive< 0.40.60.40.6CNA

Scores by source

VulnCheck (CNA)9.3CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
VulnCheck (CNA)8.6CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
CISA ADPSSVCExploitation: poc · Automatable: no · Technical impact: total

References

advisorystore.steampowered.com/news/app/284160/view/681890829846973542exploitgithub.com/drbloop2000/BeamNG-Drive-RCEwriteupvulncheck.com/advisories/beamng-drive-before-0.40.6-luajit-ffi-sandbox-escape-via-jit-bounds-check-bypass