cve.bz

CVE-2021-43519 Uncontrolled Recursion

5.5 mediumExploit referenceEPSS 1.2%Fix available

Medium (5.5). EPSS 1.2% estimated probability of exploitation activity in the next 30 days.

On this page
Stack overflow in lua_resume of ldo.c in Lua Interpreter 5.1.0~5.4.4 allows attackers to perform a Denial of Service via a crafted script file.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 69th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-674 Uncontrolled Recursion
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-43519 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-43519?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-43519?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-43519 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
lua:luafrom 5.1.0 before 5.3.5
lua:luafrom 5.4.0 before 5.4.4
fedoraproject:fedora35

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14lua5.45.4.4-1DEBIAN-CVE-2021-43519
Ubuntu16.04:LTSbam, vifm, golly and 9 moreno fix listedUBUNTU-CVE-2021-43519
Ubuntu18.04:LTSbam, eja, wcc and 11 moreno fix listedUBUNTU-CVE-2021-43519
Ubuntu20.04:LTSbam, eja, tup and 14 moreno fix listedUBUNTU-CVE-2021-43519
Ubuntu22.04:LTSbam, eja, tup and 15 moreno fix listedUBUNTU-CVE-2021-43519
Ubuntu24.04:LTSbam, tup, wcc and 14 moreno fix listedUBUNTU-CVE-2021-43519
Ubuntu25.10bam, tup, naev and 13 moreno fix listedUBUNTU-CVE-2021-43519
Ubuntu26.04:LTS, 26.10bam, tup, wcc and 13 moreno fix listedUBUNTU-CVE-2021-43519
Red Hatenterprise_linux:9::appstreamlua, lua-debuginfo, lua-debugsource and 1 more0:5.4.4-2.el9_1RHSA-2023:0957
Red Hatenterprise_linux:9::baseoslua, lua-libs, lua-debuginfo and 2 more0:5.4.4-2.el9_1RHSA-2023:0957
Red Hatenterprise_linux:9::crblua, lua-devel, lua-debuginfo and 2 more0:5.4.4-2.el9_1RHSA-2023:0957
Red Hatrhel_eus:9.0::appstreamlua, lua-debuginfo, lua-debugsource and 1 more0:5.4.4-1.el9_0.1RHSA-2023:1211
Red Hatrhel_eus:9.0::baseoslua, lua-libs, lua-debuginfo and 2 more0:5.4.4-1.el9_0.1RHSA-2023:1211
Red Hatrhel_eus:9.0::crblua, lua-devel, lua-debuginfo and 2 more0:5.4.4-1.el9_0.1RHSA-2023:1211
openSUSETumbleweedlua555.5.0~beta1-1.1openSUSE-SU-2025:15401-1
AlmaLinux9lua, lua-libs, lua-devel5.4.4-2.el9_1ALSA-2023:0957
Rocky Linux9lua0:5.4.4-2.el9_1RLSA-2023:0957
Azure Linux2lua5.4.3-1AZL-6672
Azure Linux3ceph18.2.2-3AZL-41261
Azure Linux3lua5.4.4-1AZL-41574
Azure Linux3memcached1.6.27-2AZL-41866
Azure Linux3ntopng5.2.1-5AZL-41445

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability does not affect Red Hat Enterprise Linux 8, because code-base was completely rewritten between 5.3 and 5.4. So, RHEL-8 is unlikely to be affected by this or a similar issue.

This flaw is marked as Out-of-Support-Scope for Red Hat Enterprise Linux 6 and 7 because the flaw impact is moderate. For additional information, refer to the Red Hat Enterprise Linux Life Cycle & Update Policy: https://access.redhat.com/support/policy/updates/errata/.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9lua-0:5.4.4-2.el9_1Fixed 2023-02-28RHSA-2023:0957
Red Hat Enterprise Linux 9.0 Extended Update Supportlua-0:5.4.4-1.el9_0.1Fixed 2023-03-14RHSA-2023:1211
Red Hat Enterprise Linux 6luaOut of support scope
Red Hat Enterprise Linux 7luaOut of support scope
Red Hat Enterprise Linux 8libreoffice:flatpak/luaNot affected
Red Hat Enterprise Linux 8luaNot affected
Red Hat JBoss Core ServicesluaNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-43519.

Attack patterns (CAPEC)

  • CAPEC-230 Serialized Data with Nested Payloads Likelihood: Medium · Severity: High
  • CAPEC-231 Oversized Serialized Data Payloads Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON