# CVE-2023-4540: DoS in lua-http library

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.09%, higher than 66% of CVEs (2026-12-02)
- Published: 2023-09-05T07:46:45.194Z
- Modified: 2026-06-17T06:38:02.853Z
- Weaknesses: CWE-755
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CERT-PL

## 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.

(As written by CVE List.)

## Affected

- Daurnimator lua-http: before commit ddab283; 0.4

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `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/> (patch, 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)

## Sources

- CVE List: [CVE-2023-4540](https://www.cve.org/CVERecord?id=CVE-2023-4540), CVE Terms of Use, modified 2025-04-04
- NVD: [CVE-2023-4540](https://nvd.nist.gov/vuln/detail/CVE-2023-4540), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-4540 · Whole record: https://cve.day/CVE-2023-4540.json · Rebuilt by cve.day 2026-11-25T22:58:27.656Z
