CVE-2021-45985Lua
High 7.5 No auth needed
Follow: this CVE · Lua · Lua We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 73
- Auth required
- No
- Published
- Apr 10, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-787
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
In Lua 5.4.3, an erroneous finalizer called during a tail call leads to a heap-based buffer over-read.
What to do
- Apply the vendor's security update for Lua.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| lua | lua | ≥ 5.4.0 < 5.4.4 |
Official sources
References
Links published by the sources. Open them with care.
- lua-users.org Exploit Mailing List Vendor Advisory
- github.com Patch
- www.lua.org Vendor Advisory