{"id":"UBUNTU-CVE-2023-4540","details":"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.","modified":"2026-05-20T16:13:51.797156026Z","published":"2023-09-05T08:15:00Z","upstream":["CVE-2023-4540"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-4540"},{"type":"REPORT","url":"https://github.com/daurnimator/lua-http/commit/ddab2835c583d45dec62680ca8d3cbde55e0bae6"},{"type":"REPORT","url":"https://cert.pl/posts/2023/09/CVE-2023-4540/"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-4540"}],"affected":[{"package":{"name":"lua-http","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/lua-http?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.1-3"],"ecosystem_specific":{"binaries":[{"binary_name":"lua-http","binary_version":"0.1-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-4540.json"}},{"package":{"name":"lua-http","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/lua-http?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.1-3","0.3-1"],"ecosystem_specific":{"binaries":[{"binary_name":"lua-http","binary_version":"0.3-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-4540.json"}},{"package":{"name":"lua-http","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/lua-http?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"lua-http","binary_version":"0.4-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-4540.json"}},{"package":{"name":"lua-http","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/lua-http?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"lua-http","binary_version":"0.4-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-4540.json"}},{"package":{"name":"lua-http","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/lua-http?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4-1","0.4-2"],"ecosystem_specific":{"binaries":[{"binary_version":"0.4-2","binary_name":"lua-http"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-4540.json"}},{"package":{"name":"lua-http","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/lua-http?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4-2","0.4-3"],"ecosystem_specific":{"binaries":[{"binary_version":"0.4-3","binary_name":"lua-http"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-4540.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}