Heap-based overflow vulnerability in lua5.1

lua5.1 Updated 02 Oct 2025

Summary

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

DSA-3015-1: lua5.1 - security update. Affects lua5.1 versions < 5.1.5-4+deb7u1. Fixed in 5.1.5-4+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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Lua is a simple, extensible, embeddable programming language widely used for scripting and game development. The lua5.1 package is specifically for Debian 7 (wheezy) and provides the Lua 5.1 interpreter. Lua is known for its lightweight design, simplicity, and ease of integration into existing applications.

Vulnerability Detail

A heap-based overflow vulnerability has been discovered in lua5.1. This vulnerability occurs when varargs functions with many fixed parameters are called with few arguments. It can lead to application crashes or potentially allow an attacker to execute arbitrary code. The vulnerability is tracked as CVE-2014-5461.

How To Fix

Minimum fixed version

5.1.5-4+deb7u1

This is the first release that contains the fix.

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

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

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The lua5.1 package in Debian 7 (wheezy) is affected by a heap-based overflow vulnerability. Upgrading to the fixed versions mentioned in the advisory (5.1.5-4+deb7u1 for wheezy and 5.1.5-7 for sid) is recommended to address this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for lua5.1 →

Share this vulnerability

FAQ

Lua is a lightweight, embeddable scripting language known for its simplicity and extensibility. It is commonly used in game development and as a scripting language for various applications.

A heap-based overflow vulnerability occurs when a program writes more data to a memory buffer than it can hold, causing the excess data to overflow into adjacent memory regions. This can lead to crashes, memory corruption, and potentially allow an attacker to execute arbitrary code.

You can check the version of lua5.1 installed on your system by running the command 'lua5.1 -v' in the terminal.

Yes, this vulnerability is specific to the lua5.1 package in Debian 7 (wheezy) and the unstable distribution (sid). Other distributions or versions may not be affected.

There are no known public exploits for this vulnerability at the time of writing. However, it is recommended to apply the security update as soon as possible to mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for lua5.1.

How To Fix

Minimum fixed version

5.1.5-4+deb7u1

This is the first release that contains the fix.

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

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