# CVE-2019-19391: Memory corruption in n/a

> Type confusion in LuaJIT debug.getinfo allows arbitrary memory read or write, potentially leading to code execution or data disclosure.

- **Severity:** Critical 9.1 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 29 Nov 2019
- **Updated:** 3 Nov 2025
- **Also known as:** AZL-41306, DEBIAN-CVE-2019-19391, GHSA-756f-h55r-pvqq, openSUSE-SU-2024:13922-1, openSUSE-SU-2025:15672-1

## What is CVE-2019-19391?

CVE-2019-19391 is a critical memory corruption vulnerability in n/a, published on 29 Nov 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-843 (Access of Resource Using Incompatible Type)

## Which versions are affected by CVE-2019-19391?

It affects 2 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `luajit` | openSUSE:Tumbleweed | All versions | 2.1.20250826-1.1 |

Products: Luajit Luajit, Moonjit Project Moonjit.

## How do I fix CVE-2019-19391?

Upgrade to a fixed version.

## Is CVE-2019-19391 being exploited?

There is no known exploitation of CVE-2019-19391 in the wild and no public exploit code.

## Other vulnerabilities in n/a

- [CVE-2024-25176](https://insights.sbomify.com/CVE-2024-25176/): Memory corruption in n/a (critical 9.8)
- [CVE-2024-25178](https://insights.sbomify.com/CVE-2024-25178/): Memory corruption in n/a (critical 9.1)
- [CVE-2024-25177](https://insights.sbomify.com/CVE-2024-25177/): Null dereference in n/a (high 7.5)
- [CVE-2020-24372](https://insights.sbomify.com/CVE-2020-24372/): Memory corruption in n/a (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2019-19391 and fix it if it is affected.

What it is: CVE-2019-19391 is a critical memory corruption vulnerability in n/a, published on 29 Nov 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2019-19391 in the wild and no public exploit code.

Affected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2019-19391/ (Markdown: https://insights.sbomify.com/CVE-2019-19391/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2019-19391
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2019-19391
- OSV: https://osv.dev/vulnerability/CVE-2019-19391

---
From sbomify Insights: https://insights.sbomify.com/CVE-2019-19391/
Summaries are generated and may contain mistakes; the official description above is the record.
