# CVE-2026-133528: BeamNG.drive before 0.40.6 LuaJIT FFI Sandbox Escape via JIT Bounds-Check Bypass

- Severity: Critical 9.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-20T00:42:15.527Z
- Modified: 2026-11-25T04:17:25.537Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

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

(As written by CVE List.)

## Affected

- BeamNG GmbH BeamNG.drive: before 0.40.6

## Every score

- VulnCheck: CVSS:4.0 9.3 Critical `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`
- VulnCheck: CVSS:3.1 8.6 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/drbloop2000/BeamNG-Drive-RCE> (exploit)
- <https://store.steampowered.com/news/app/284160/view/681890829846973542> (release-notes, vendor-advisory)
- <https://www.vulncheck.com/advisories/beamng-drive-before-0.40.6-luajit-ffi-sandbox-escape-via-jit-bounds-check-bypass> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-133528](https://www.cve.org/CVERecord?id=CVE-2026-133528), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2026-133528](https://nvd.nist.gov/vuln/detail/CVE-2026-133528), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-133528 · Whole record: https://cve.day/CVE-2026-133528.json · Rebuilt by cve.day 2026-11-25T23:17:26.047Z
