CVE-2020-24342: Lua - Buffer Overflow
- Cve: CVE-2020-24342
- Name: Lua - Buffer Overflow
- Description: Lua through 5.4.0 allows a stack redzone cross in luaO_pushvfstring because a protection mechanism wrongly calls luaD_callnoyield twice in a row.
- Impact: Potential stack corruption leading to crashes or arbitrary code execution when exploited successfully.
- Remediation: Update to the latest Lua version where this issue is fixed or apply relevant patches.
- Vulnerability type: buffer_overflow
- Vulnerability impact: denial_of_service, remote_code_execution
- Requirements: Exploit requires specific protection misconfiguration.
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.01085
- Epss percentile: 0.66143
- Assignee: [email protected]
- Published at: 2020-08-13T19:15:13Z
- Age in days: 2294
- Modified at: 2026-06-17T03:05:24Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-24342
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer |
Public exploits
| Url | Source | Added date |
|---|---|---|
| http://lua-users.org/lists/lua-l/2020-07/msg00052.html | nvd | 2020-08-13 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/lua/lua/commit/34affe7a63fc5d842580a9f23616d057e17dfe27 | Patch, Third Party Advisory |
| http://lua-users.org/lists/lua-l/2020-07/msg00052.html | Exploit, Mailing List, Vendor Advisory |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QA5Q5MDQMTGXRQO3PAQ4EZFTYWJXZM5N/ |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| lua:lua | = 5.4.0 | no | nvd | /v1/products/lua/lua |
| fedoraproject:fedora | = 33 | no | nvd | /v1/products/fedoraproject/fedora |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| lua/lua | commit, fix | yes | /v1/repositories/lua/lua |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2020-08-13
- Exposed hosts: 49161
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports