cvelo
P2 · HighCVSS 8.6EPSS 0.2%

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

  • CVE-2026-133528
  • GHSA-7wxf-w2p5-7pvr
  • EUVD-2026-130810

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.

Text from the CVE.org record.

Recommendation

  • BeamNG GmbH BeamNG.drive

    • If you run a version before 0.40.6update to 0.40.6 or later

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • BeamNG GmbH BeamNG.drive

    Affected versionsFixed in
    before 0.40.60.40.6

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.