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.
History

Fri, 20 Nov 2026 16:30:00 +0000

Type Values Removed Values Added
First Time appeared Beamng Gmbh
Beamng Gmbh beamng.drive
Vendors & Products Beamng Gmbh
Beamng Gmbh beamng.drive

Fri, 20 Nov 2026 01:00:00 +0000

Type Values Removed Values Added
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.
Title BeamNG.drive before 0.40.6 LuaJIT FFI Sandbox Escape via JIT Bounds-Check Bypass
Weaknesses CWE-787
References
Metrics cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published: 2026-11-20T00:42:15.527Z

Updated: 2026-11-20T00:42:15.527Z

Reserved: 2026-11-20T00:39:53.933Z

Link: CVE-2026-133528

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-20T01:17:10.633

Modified: 2026-11-20T01:17:10.633

Link: CVE-2026-133528

cve-icon Redhat

No data.