{"id":"CVE-2023-4540","aliases":["ALPINE-CVE-2023-4540","DEBIAN-CVE-2023-4540","EUVD-2023-54395","GHSA-947g-gmvh-r5rp","UBUNTU-CVE-2023-4540"],"status":"published","title":"DoS in lua-http library","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. \nSuch a request causes the program to enter an infinite loop. \n\nThis issue affects lua-http: all versions before commit ddab283.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.0109,"percentile":0.65795,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-755","CWE-835"],"published":"2023-09-05T07:46:45Z","modified":"2026-11-03T06:32:59Z","fixes":[{"ecosystem":"Alpine:v3.17","package":"lua-http","fixed_in":["0.4-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"lua-http","fixed_in":["0.4-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"lua-http","fixed_in":["0.4-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"lua-http","fixed_in":["0.4-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"lua-http","fixed_in":["0.4-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"lua-http","fixed_in":["0.4-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"lua-http","fixed_in":["0.4-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"lua-http","fixed_in":["0.4-r2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"lua-http","fixed_in":["0.4-2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"lua-http","fixed_in":["0.4-2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.17","package":"lua-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"lua-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"lua-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"lua-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"lua-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"lua-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"lua-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"lua-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4-r2"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"lua-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4-1","0.4-2","0.4-3"]},{"source":"osv","ecosystem":"Debian:13","package":"lua-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4-2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"lua-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4-2"}]}]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"lua-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.1-3"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"lua-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.1-3","0.3-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"lua-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"lua-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"lua-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4-1","0.4-2"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"lua-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4-3"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"lua-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4-2","0.4-3"]}],"products":[{"vendor":"daurnimator","product":"lua-http"}],"references":[{"url":"https://github.com/daurnimator/lua-http/commit/ddab2835c583d45dec62680ca8d3cbde55e0bae6","tags":["patch","x_transferred","Patch","fix","report"]},{"url":"https://cert.pl/posts/2023/09/CVE-2023-4540/","tags":["third-party-advisory","x_transferred","Patch","Third Party Advisory","advisory","report"]},{"url":"https://cert.pl/en/posts/2023/09/CVE-2023-4540/","tags":["third-party-advisory","advisory"]},{"url":"https://https://cert.pl/en/posts/2023/09/CVE-2023-4540/","tags":["third-party-advisory","x_transferred","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-4540","tags":["advisory"]},{"url":"https://cert.pl/posts/2023/09/CVE-2023-4540"},{"url":"https://https://cert.pl/en/posts/2023/09/CVE-2023-4540"},{"url":"https://cert.pl/en/posts/2023/09/CVE-2023-4540"},{"url":"https://github.com/advisories/GHSA-947g-gmvh-r5rp"},{"url":"https://security.alpinelinux.org/vuln/CVE-2023-4540","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4540.json","tags":["advisory"]},{"url":"https://github.com/daurnimator/lua-http","tags":["package"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-4540","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2023-4540","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-4540","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2023-4540","title":"DoS in lua-http library","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. \nSuch a request causes the program to enter an infinite loop. \n\nThis issue affects lua-http: all versions before commit ddab283.","status":"published","published":"2023-09-05T07:46:45.194Z","modified":"2025-04-04T18:33:32.557Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"adp"}],"cwes":["CWE-755"],"updated_at":"2026-11-02T14:35:30.474787Z"}],"euvd":[{"id":"EUVD-2023-54395","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. \nSuch a request causes the program to enter an infinite loop. \n\nThis issue affects lua-http: all versions before commit ddab283.","status":"published","published":"2023-09-05T07:46:45Z","modified":"2025-04-04T18:33:32Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T20:52:42.420681Z"}],"ghsa":[{"id":"GHSA-947g-gmvh-r5rp","title":"Improper Handling of Exceptional Conditions vulnerability in Daurnimator HTTP Library for Lua...","description":"Improper Handling of Exceptional Conditions vulnerability in Daurnimator HTTP Library for Lua allows Excessive Allocation.This issue affects HTTP Library for Lua: before commit ddab283.","status":"published","published":"2023-09-05T09:30:21Z","modified":"2025-03-14T18:31:43Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-755","CWE-835"],"updated_at":"2026-11-02T15:00:17.776608Z"}],"nvd":[{"id":"CVE-2023-4540","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. \nSuch a request causes the program to enter an infinite loop. \n\nThis issue affects lua-http: all versions before commit ddab283.","status":"published","published":"2023-09-05T08:15:40.017Z","modified":"2026-06-17T06:38:02.853Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-755"],"updated_at":"2026-11-02T14:08:27.181588Z"}],"osv":[{"id":"ALPINE-CVE-2023-4540","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. \nSuch a request causes the program to enter an infinite loop. \n\nThis issue affects lua-http: all versions before commit ddab283.","status":"published","published":"2023-09-05T08:15:40.017Z","modified":"2026-11-03T06:32:59.397216501Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-03T07:16:09.603409Z"},{"id":"CVE-2023-4540","title":"DoS in lua-http library","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. \nSuch a request causes the program to enter an infinite loop. \n\nThis issue affects lua-http: all versions before commit ddab283.","status":"published","published":"2023-09-05T07:46:45.194Z","modified":"2026-10-28T02:30:25.891966631Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-755"],"updated_at":"2026-11-02T15:44:34.287121Z"},{"id":"DEBIAN-CVE-2023-4540","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.","status":"published","published":"2023-09-05T08:15:40.017Z","modified":"2026-10-26T18:02:49.539217244Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:40.275853Z"},{"id":"UBUNTU-CVE-2023-4540","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.","status":"published","published":"2023-09-05T08:15:00Z","modified":"2026-10-17T12:56:25.832452268Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T16:54:22.741943Z"}]}}
