Out-of-bounds Read in Lua
CVE-2022-28805
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H.
EPSS exploit prediction
EPSS: 0.030 (86.9th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 87th percentile — 86.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.030 · newest: 0.030 · change: 0.000
Affected products
- Lua
- Fedoraproject Fedora — versions 35, 36
Weakness classification (CWE)
Public proof-of-concept exploits
References
- lua-users.org/lists/lua-l/2022-02/msg00001.html (Exploit, Mailing List, Third Party Advisory)
- lua-users.org/lists/lua-l/2022-02/msg00070.html (Exploit, Mailing List, Third Party Advisory)
- lua-users.org/lists/lua-l/2022-04/msg00009.html (Exploit, Mailing List, Third Party Advisory)
- github.com/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030fa (Patch, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory, Third Party Advisory)
- security.gentoo.org/glsa/202305-23 (vendor-advisory, Third Party Advisory)
Frequently asked questions
- What is CVE-2022-28805?
- CVE-2022-28805 is a critical-severity vulnerability in Lua, classified under Out-of-bounds Read. CVSS score: 9.1/10. Published 2022-04-08.
- How severe is CVE-2022-28805?
- Critical severity. CVSS v3 base score is 9.1 out of 10.
- Is CVE-2022-28805 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.