Vulnerability · Published Sep 5, 2023 · Assigned by CERT-PL
CVE-2023-4540DoS in lua-http library
High 7.5
In plain English
A high-severity security flaw in lua-http from Daurnimator. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 66% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | lua-http | 0.4-r2 | ALPINE-CVE-2023-4540 |
| Alpine:v3.21 | lua-http | 0.4-r2 | ALPINE-CVE-2023-4540 |
| Alpine:v3.22 | lua-http | 0.4-r2 | ALPINE-CVE-2023-4540 |
| Alpine:v3.23 | lua-http | 0.4-r2 | ALPINE-CVE-2023-4540 |
| Alpine:v3.24 | lua-http | 0.4-r2 | ALPINE-CVE-2023-4540 |
| Debian:12 | lua-http | no fix listed | DEBIAN-CVE-2023-4540 |
| Debian:13 | lua-http | 0.4-2 | DEBIAN-CVE-2023-4540 |
| Debian:14 | lua-http | 0.4-2 | DEBIAN-CVE-2023-4540 |
| Ubuntu:22.04:LTS | lua-http | no fix listed | UBUNTU-CVE-2023-4540 |
| Ubuntu:24.04:LTS | lua-http | no fix listed | UBUNTU-CVE-2023-4540 |
| Ubuntu:25.10 | lua-http | no fix listed | UBUNTU-CVE-2023-4540 |
| Ubuntu:26.04:LTS | lua-http | no fix listed | UBUNTU-CVE-2023-4540 |
| Ubuntu:26.10 | lua-http | no fix listed | UBUNTU-CVE-2023-4540 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Daurnimator | lua-http | 0 – before commit ddab283 |
Weakness: CWE-755 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/daurnimator/lua-http/commit/ddab2835c583d45dec62680ca8d3cbde55e0bae6 patch
- https://cert.pl/posts/2023/09/CVE-2023-4540/ third-party-advisory
- https://cert.pl/en/posts/2023/09/CVE-2023-4540/ third-party-advisory
- https://https://cert.pl/en/posts/2023/09/CVE-2023-4540/ third-party-advisory, x_transferred