Denial of Service Vulnerability in lua-http Package: Excessive Allocation Risk

lua-http Updated 02 Oct 2025

Summary

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

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 < ddab2835c583d45dec62680ca8d3cbde55e0bae6. 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The lua-http library is a widely used HTTP client and server implementation in Lua, designed for ease of use and flexibility. It allows developers to create robust web applications and services. However, the library is susceptible to a specific vulnerability that can lead to denial of service (DoS) attacks, impacting the availability of applications relying on it.

Vulnerability Detail

The vulnerability, identified as CVE-2023-4540, arises from improper handling of exceptional conditions within the lua-http library. This flaw allows an attacker to send a specially crafted request to the server, resulting in excessive memory allocation. If exploited, this can lead to a denial of service, rendering the affected application unresponsive. The issue affects all versions of lua-http prior to commit ddab283.

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

If immediate upgrading is not feasible, consider implementing rate limiting on your server to mitigate the impact of potential DoS attacks. This can help control the number of requests processed by the server, reducing the likelihood of excessive allocation issues.

Conclusion

The CVE-2023-4540 vulnerability in the lua-http library poses a significant risk of denial of service due to excessive memory allocation. It is crucial for users to update their libraries to the latest version to safeguard their applications. Additionally, implementing workarounds can help mitigate potential impacts until an update can be applied.

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 excessive memory allocation, potentially leading to a denial of service.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability can lead to denial of service, making applications unresponsive and unavailable to users.

Yes, a patch is available in the latest version of the lua-http library, which can be installed to mitigate the vulnerability.

The CVSS score for CVE-2023-4540 is 7.5, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for lua-http.

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