OSV-2026-666 Heap-use-after-free in insertkey
A heap-use-after-free vulnerability in the Lua interpreter's insertkey function allows attackers to potentially execute arbitrary code or cause a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not stated
- Attackable
- Not stated
- Victim action needed
- Not stated
- Fix
- None listed
What is OSV-2026-666?
OSV-2026-666 is an use after free vulnerability in lua, published on 2 May 2026.
Official description
OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=508107730
Crash type: Heap-use-after-free READ 1
Crash state:
insertkey
luaH_resize
luaH_newkey
Which versions are affected by OSV-2026-666?
1 open source package ship an affected version, including lua.
| Package | Affected | Fixed in |
|---|---|---|
lua OSS-Fuzz | All versions | None |
How do I fix OSV-2026-666?
No fix has been published for OSV-2026-666 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is OSV-2026-666 being exploited?
There is no known exploitation of OSV-2026-666 in the wild and no public exploit code.