Heap-based overflow vulnerability in lua5.2

lua5.2 Updated 02 Oct 2025

Summary

01/09/2014
N/A
Yes i
Unrated
Not published

DSA-3016-1: lua5.2 - security update. Affects lua5.2 versions < 5.2.1-3+deb7u1. Fixed in 5.2.1-3+deb7u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Lua is a simple, extensible, and embeddable programming language. It is widely used for scripting, game development, and other applications. The lua5.2 package is a specific version of Lua that is vulnerable to a heap-based overflow vulnerability.

Vulnerability Detail

The vulnerability in lua5.2 arises from the way it handles varargs functions with many fixed parameters called with few arguments. This can lead to application crashes or potentially allow arbitrary code execution. The issue has been assigned the CVE identifier CVE-2014-5461.

How To Fix

Minimum fixed version

5.2.1-3+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade lua5.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

No specific workaround has been mentioned for this vulnerability.

Conclusion

The lua5.2 package is vulnerable to a heap-based overflow vulnerability. To mitigate this issue, it is important to upgrade to the fixed version of the package. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for lua5.2 →

Share this vulnerability

FAQ

Lua is a lightweight and powerful scripting language used in various applications and industries.

A heap-based overflow vulnerability occurs when a program writes data beyond the allocated memory on the heap, potentially leading to crashes or code execution.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation.

Yes, a fix is available for this vulnerability. It is recommended to upgrade the lua5.2 package to version 5.2.1-3+deb7u1 or later.

You can find more information about this vulnerability in the Debian Security Advisory DSA-3016-1.

Related vulnerabilities

Recent vulnerabilities recorded for lua5.2.

How To Fix

Minimum fixed version

5.2.1-3+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade lua5.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback