Vulnerabilities · 2022 · Lua
CVE-2022-28805
Lua vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Lua, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Lua runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030fa · Patch
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R · Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U · Third Party Advisory
- lua-users.org/lists/lua-l/2022-02/msg00001.html · Exploit
- lua-users.org/lists/lua-l/2022-02/msg00070.html · Exploit
- lua-users.org/lists/lua-l/2022-04/msg00009.html · Exploit
- security.gentoo.org/glsa/202305-23 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2022-28805
- cve.org/CVERecord?id=CVE-2022-28805
More vulnerabilities in Lua products
CVE-2022-33099CVE-2021-45985CVE-2021-44964CVE-2021-44647CVE-2021-43519CVE-2020-24371CVE-2020-24370CVE-2020-24369All 15
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.