Buffer overflow in the vararg functions in ldo.c in Lua 5.1 through 5.2.x before 5.2.3 allows context-dependent attackers to cause a denial
Buffer overflow in the vararg functions in ldo.c in Lua 5.1 through 5.2.x before 5.2.3 allows context-dependent attackers to cause a denial of service (crash) via a small number of arguments to a function with a large number of fixed arguments.
- Published
- Sep 4, 2014
- Updated
- Jun 16, 2026
- EPSS
- 11.7% · 96th percentile
- CWE
- CWE-119
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
24
Monitor
Low priority for now.
- CVSS
- 20 / 40 · 5.0 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 4 / 30 · 11.7%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| lua | lua | cpe:2.3:a:lua:lua |
| opensuse | opensuse | cpe:2.3:o:opensuse:opensuse |
| canonical | ubuntu linux | cpe:2.3:o:canonical:ubuntu_linux |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| mageia | mageia | cpe:2.3:o:mageia:mageia |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- canonical ubuntu linux12.04
- canonical ubuntu linux14.04
- debian debian linux7.0
- lua lua5.1
- lua lua5.1.1
- lua lua5.1.2
- lua lua5.1.3
- lua lua5.1.4
- lua lua5.1.5
- lua lua5.2.0
- lua lua5.2.1
- lua lua5.2.2
- mageia mageia3.0
- mageia mageia4.0
- opensuse opensuse12.3
- opensuse opensuse13.1
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | lua5.1 | before 5.1.5-7 | 5.1.5-7 |
| Debian:12 | lua5.2 | before 5.2.3-1 | 5.2.3-1 |
| Debian:6.0 | lua5.1 | before 5.1.4-5+deb6u1 | 5.1.4-5+deb6u1 |
| Debian:7 | lua5.1 | before 5.1.5-4+deb7u1 | 5.1.5-4+deb7u1 |
| Debian:7 | lua5.2 | before 5.2.1-3+deb7u1 | 5.2.1-3+deb7u1 |
| openSUSE:Tumbleweed | moarvm | before 2025.05-1.1 | 2025.05-1.1 |
Same product
lua: all recordsOther highest-scoring records for the same primary product.
- CVE-2020-15889Lua 5.4.0 has a getobjname heap-based buffer over-read because youngcollection in lgc.c uses markold for an insufficient number of list memb40Plan
- CVE-2022-28805singlevar 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-based37Monitor
- CVE-2020-15888Lua through 5.4.0 mishandles the interaction between stack resizes and garbage collection, leading to a heap-based buffer overflow, heap-bas36Monitor
- CVE-2019-6706Lua 5.3.5 has a use-after-free in lua_upvaluejoin in lapi.c.35Monitor
- CVE-2022-33099An issue in the component luaG_runerror of Lua v5.4.4 and below leads to a heap-buffer overflow when a recursive error occurs.31Monitor
- CVE-2020-24369ldebug.c in Lua 5.4.0 attempts to access debug information via the line hook of a stripped function, leading to a NULL pointer dereference.31Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Debian:lua5.1 | 5.1.5-7 · Debian:12 | Package registry (OSV) |
| Debian:lua5.2 | 5.2.3-1 · Debian:12 | Package registry (OSV) |
| openSUSE:moarvm | 2025.05-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- P · the service can be disrupted
- Attack complexity
- Low
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- P
Weakness class (CWE)
CWE-119 · Improper Restriction of Operations within the Bounds of a Memory BufferCVSS vector
AV:N/AC:L/Au:N/C:N/I:N/A:P
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Overflow BuffersCAPEC-100likelihood: High · Very High
- Buffer ManipulationCAPEC-123likelihood: High · Very High
- Client-side Injection-induced Buffer OverflowCAPEC-14likelihood: Medium · High
- Filter Failure through Buffer OverflowCAPEC-24likelihood: High · High
- MIME ConversionCAPEC-42likelihood: High · High
- Overflow Binary Resource FileCAPEC-44likelihood: High · Very High
- Buffer Overflow via Symbolic LinksCAPEC-45likelihood: High · High
ATT&CK techniques
—
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- advisories.mageia.org/MGASA-2014-0414.html
- lists.opensuse.org/opensuse-updates/2014-09/msg00030.html
- secunia.com/advisories/59890
- secunia.com/advisories/60869
- secunia.com/advisories/61411
- www.debian.org/security/2014/dsa-3015
- www.debian.org/security/2014/dsa-3016
- www.lua.org/bugs.html#5.2.2-1
- www.mandriva.com/security/advisories?name=MDVSA-2015:144
- www.openwall.com/lists/oss-security/2014/08/27/2
- www.securityfocus.com/bid/69342
- www.ubuntu.com/usn/USN-2338-1
- security.gentoo.org/glsa/201701-53
- security.gentoo.org/glsa/202305-23
Vendor advisories and official records. Exploit/PoC links are deliberately left out.