CVE-2026-133528 PUBLISHED

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

Assigner: VulnCheck
Reserved: 20.11.2026 Published: 20.11.2026 Updated: 20.11.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 9.3

Product Status

Vendor BeamNG GmbH
Product BeamNG.drive
Versions Default: unaffected
  • affected from 0 to 0.40.6 (excl.)

Credits

  • drbloop finder

References

Problem Types

  • Out-of-bounds Write CWE