CVE-2023-4540 DoS in lua-http library
A crafted request triggers an infinite loop in the lua-http library, causing excessive allocation and denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-4540?
CVE-2023-4540 is a high-severity denial of service vulnerability in Daurnimator lua-http, published on 5 Sep 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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 server. Such a request causes the program to enter an infinite loop.
This issue affects lua-http: all versions before commit ddab283.
Weakness: CWE-755
Which versions are affected by CVE-2023-4540?
It affects 1 product.
Products include Daurnimator Lua-Http.
How do I fix CVE-2023-4540?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2023-4540 being exploited?
There is no known exploitation of CVE-2023-4540 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2023-4540, GHSA-947g-gmvh-r5rp, UBUNTU-CVE-2023-4540.