What’s Vulnerable › Vulnerabilities
CVE-2019-19391
- Severity: critical (CVSS 9.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2019-11-29 · updated 2026-06-17
- Weakness: CWE-843
Description
In LuaJIT through 2.0.5, as used in Moonjit before 2.1.2 and other products, debug.getinfo has a type confusion issue that leads to arbitrary memory write or read operations, because certain cases involving valid stack levels and > options are mishandled. NOTE: The LuaJIT project owner states that the debug libary is unsafe by definition and that this is not a vulnerability. When LuaJIT was originally developed, the expectation was that the entire debug library had no security guarantees and thus it made no sense to assign CVEs. However, not all users of later LuaJIT derivatives share this perspective
Affected products
- Luajit: through 2.0.5
- Moonjit Project Moonjit: before 2.1.2 — fixed in 2.1.2
How to fix
Upgrade to a fixed version: Moonjit Project Moonjit 2.1.2. Check the vendor advisory for mitigations.
References
- https://github.com/LuaJIT/LuaJIT/pull/526
- https://github.com/LuaJIT/LuaJIT/pull/526
- https://lists.debian.org/debian-lts-announce/2025/08/msg00022.html
Get alerted when CVE-2019-19391 or the next vulnerability affects your stack