# CVE-2022-28805: singlevar in lparser.c in Lua from (including) 5.4.0 up to (excluding) 5.4.4 lacks a certain luaKexp2anyregup call, leading to a heap-based…

- Severity: Critical 9.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A: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): 2.57%, higher than 86% of CVEs (2026-11-30)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2022-04-08T00:00:00.000Z
- Modified: 2026-09-08T08:48:09.195Z
- Also known as: BIT-LUA-2022-28805
- Weaknesses: CWE-125
- Assigned by: mitre

## Description

singlevar in lparser.c in Lua from (including) 5.4.0 up to (excluding) 5.4.4 lacks a certain luaK_exp2anyregup call, leading to a heap-based buffer over-read that might affect a system that compiles untrusted Lua code.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- lua lua: from 5.4.0 before 5.4.5
- fedoraproject fedora: 35; 36
- lua (Bitnami): from 5.4.0 before 5.4.5

## Every score

- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:P`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://lua-users.org/lists/lua-l/2022-02/msg00001.html> (exploit, advisory, mailing-list, third-party-advisory)
- <https://lua-users.org/lists/lua-l/2022-02/msg00070.html> (exploit, advisory, mailing-list, third-party-advisory)
- <https://lua-users.org/lists/lua-l/2022-04/msg00009.html> (exploit, advisory, mailing-list, third-party-advisory)
- <https://github.com/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030fa> (advisory, patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RJNJ66IFDUKWJJZXHGOLRGIA3HWWC36R/> (advisory, third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UHYZOEFDVLVAD6EEP4CDW6DNONIVVHPA/> (advisory, third-party-advisory, vendor-advisory)
- <https://security.gentoo.org/glsa/202305-23> (advisory, third-party-advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-28805> (web)

## Sources

- CVE List: [CVE-2022-28805](https://www.cve.org/CVERecord?id=CVE-2022-28805), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2022-28805](https://nvd.nist.gov/vuln/detail/CVE-2022-28805), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LUA-2022-28805](https://osv.dev/vulnerability/BIT-LUA-2022-28805), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-28805 · Whole record: https://cve.day/CVE-2022-28805.json · Rebuilt by cve.day 2026-11-25T22:58:10.469Z
