Denial of Service Vulnerability in lua-http Package: CVE-2023-4540

lua-http Updated 02 Oct 2025

Summary

05/09/2023
N/A
No i
High
7.5

UBUNTU-CVE-2023-4540: Improper Handling of Exceptional Conditions vulnerability in Daurnimator lua-http library allows Excessive Allocation and a denial of service (DoS) attack to be executed by sending a properly crafted request to the serve... Affects lua-http versions 0.1-3. No fix is published. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The lua-http package is a Lua library designed for HTTP client and server functionalities. It provides a simple and efficient way to handle HTTP requests and responses, making it a popular choice for developers building web applications in Lua. However, the package has been found to have a critical vulnerability that can lead to denial of service (DoS) attacks, affecting its reliability and performance.

Vulnerability Detail

CVE-2023-4540 is an improper handling of exceptional conditions vulnerability in the lua-http library. This flaw allows an attacker to send a specially crafted request that causes the program to enter an infinite loop, leading to excessive resource allocation and ultimately a denial of service. The vulnerability affects all versions of lua-http prior to commit ddab283, making it crucial for users to update to a patched version to mitigate the risk.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can implement request validation to filter out potentially malicious requests that could trigger the infinite loop. This can be done by checking the request parameters and rejecting any that do not conform to expected formats.

Conclusion

The CVE-2023-4540 vulnerability in the lua-http package poses a significant risk of denial of service attacks. It is essential for users to update to the latest version of the package to protect their applications from potential exploitation. Utilizing tools like Vulert can further enhance security by providing real-time monitoring for vulnerabilities.

See every vulnerability recorded for lua-http →

Share this vulnerability

FAQ

CVE-2023-4540 is a vulnerability in the lua-http library that allows for denial of service attacks through improper handling of exceptional conditions.

You can use Vulert's playground to check if your application is affected by this vulnerability by analyzing your manifest file without needing to sign up.

Exploitation of this vulnerability can lead to excessive resource allocation, causing the application to become unresponsive and potentially crash.

Yes, a patched version of lua-http is available. Users should update to the latest version to mitigate the risk.

Vulert is a tool that monitors and alerts for open-source vulnerabilities in software using just a manifest file. It helps developers ensure their applications are secure.

Related vulnerabilities

Recent vulnerabilities recorded for lua-http.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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