{"api_version":"1","generated_at":"2026-04-22T23:31:40+00:00","cve":"CVE-2021-45985","urls":{"html":"https://cve.report/CVE-2021-45985","api":"https://cve.report/api/cve/CVE-2021-45985.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-45985","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-45985"},"summary":{"title":"CVE-2021-45985","description":"In Lua 5.4.3, an erroneous finalizer called during a tail call leads to a heap-based buffer over-read.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2023-04-10 09:15:00","updated_at":"2023-04-14 03:51:00"},"problem_types":["CWE-787"],"metrics":[],"references":[{"url":"https://www.lua.org/bugs.html#5.4.3-11","name":"https://www.lua.org/bugs.html#5.4.3-11","refsource":"MISC","tags":["Vendor Advisory"],"title":"Lua: bugs","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://lua-users.org/lists/lua-l/2021-12/msg00019.html","name":"http://lua-users.org/lists/lua-l/2021-12/msg00019.html","refsource":"MISC","tags":["Exploit","Mailing List","Vendor Advisory"],"title":"Crash Analysis : Erroneous finalizer called during tail call leads to heap buffer overflow","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/lua/lua/commit/cf613cdc6fa367257fc61c256f63d917350858b5","name":"https://github.com/lua/lua/commit/cf613cdc6fa367257fc61c256f63d917350858b5","refsource":"MISC","tags":["Patch"],"title":"Bug: finalizers can be called with an invalid stack · lua/lua@cf613cd · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-45985","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45985","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"45985","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"lua","cpe5":"lua","cpe6":"5.4.3","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-45985","qid":"182015","title":"Debian Security Update for lua5.4 (CVE-2021-45985)"},{"cve":"CVE-2021-45985","qid":"357240","title":"Amazon Linux Security Advisory for lua : ALAS2023-2024-533"},{"cve":"CVE-2021-45985","qid":"673856","title":"EulerOS Security Update for lua (EulerOS-SA-2023-2697)"},{"cve":"CVE-2021-45985","qid":"674003","title":"EulerOS Security Update for lua (EulerOS-SA-2023-2655)"},{"cve":"CVE-2021-45985","qid":"906856","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for memcached (26155-1)"},{"cve":"CVE-2021-45985","qid":"906859","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for ntopng (26158-1)"},{"cve":"CVE-2021-45985","qid":"906876","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for lua (26047-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-45985","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"In Lua 5.4.3, an erroneous finalizer called during a tail call leads to a heap-based buffer over-read."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://www.lua.org/bugs.html#5.4.3-11","refsource":"MISC","name":"https://www.lua.org/bugs.html#5.4.3-11"},{"url":"https://github.com/lua/lua/commit/cf613cdc6fa367257fc61c256f63d917350858b5","refsource":"MISC","name":"https://github.com/lua/lua/commit/cf613cdc6fa367257fc61c256f63d917350858b5"},{"url":"http://lua-users.org/lists/lua-l/2021-12/msg00019.html","refsource":"MISC","name":"http://lua-users.org/lists/lua-l/2021-12/msg00019.html"}]}},"nvd":{"publishedDate":"2023-04-10 09:15:00","lastModifiedDate":"2023-04-14 03:51:00","problem_types":["CWE-787"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:lua:lua:5.4.3:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"45985","Ordinal":"224486","Title":"CVE-2021-45985","CVE":"CVE-2021-45985","Year":"2021"},"notes":[]}}}