{"api_version":"1","generated_at":"2026-11-30T01:20:11+00:00","cve":"CVE-2026-124296","urls":{"html":"https://cve.report/CVE-2026-124296","api":"https://cve.report/api/cve/CVE-2026-124296.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-124296","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-124296"},"summary":{"title":"Net::Server::HTTP versions through 2.018 for Perl allow a single request to abort a worker with out-of-memory via the client's Content-Length used as a read size in exec_cgi","description":"Net::Server::HTTP versions through 2.018 for Perl allow a single request to abort a worker with out-of-memory via the client's Content-Length used as a read size in exec_cgi.\n\nexec_cgi forwards the request body to the CGI script with read() calls sized by the Content-Length header. Perl grows the buffer to that size before reading, so a request declaring a huge length aborts the worker with an out-of-memory error that no eval can catch.\n\nThe same loop never treats a 0 return from read() as end of input. When the client closes its side before sending the declared body, the remaining length stays unchanged and the loop spins at full CPU until the request times out.\n\nAny server that dispatches requests to a CGI script, including an app target given as an executable, is affected.","state":"PUBLISHED","assigner":"CPANSec","published_at":"2026-11-30 00:17:58","updated_at":"2026-11-30 00:17:58"},"problem_types":["CWE-789","CWE-835","CWE-789 CWE-789 Memory Allocation with Excessive Size Value","CWE-835 CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')"],"metrics":[],"references":[{"url":"https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124296-r1.patch","name":"https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124296-r1.patch","refsource":"9b29abf9-4ab0-4765-b253-1875cd9b441e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/HTTP.pm","name":"https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/HTTP.pm","refsource":"9b29abf9-4ab0-4765-b253-1875cd9b441e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-124296","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-124296","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[{"source":"CNA","title":"","value":"No fixed release is available. Apply the patch. For deployments that cannot apply the patch, run the server behind a reverse proxy that limits the request body size and buffers the whole body before forwarding it, or do not dispatch requests to CGI scripts.","time":"","lang":"en"}],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"collectionURL":"https://cpan.org/modules","defaultStatus":"unaffected","modules":["Net::Server::HTTP"],"packageName":"Net-Server","packageURL":"pkg:cpan/Net-Server","programFiles":["lib/Net/Server/HTTP.pm"],"programRoutines":[{"name":"Net::Server::HTTP::exec_cgi"}],"repo":"https://github.com/rhandom/perl-net-server","versions":[{"lessThanOrEqual":"2.018","status":"affected","version":"0","versionType":"custom"}]}],"descriptions":[{"lang":"en","value":"Net::Server::HTTP versions through 2.018 for Perl allow a single request to abort a worker with out-of-memory via the client's Content-Length used as a read size in exec_cgi.\n\nexec_cgi forwards the request body to the CGI script with read() calls sized by the Content-Length header. Perl grows the buffer to that size before reading, so a request declaring a huge length aborts the worker with an out-of-memory error that no eval can catch.\n\nThe same loop never treats a 0 return from read() as end of input. When the client closes its side before sending the declared body, the remaining length stays unchanged and the loop spins at full CPU until the request times out.\n\nAny server that dispatches requests to a CGI script, including an app target given as an executable, is affected."}],"problemTypes":[{"descriptions":[{"cweId":"CWE-789","description":"CWE-789 Memory Allocation with Excessive Size Value","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-835","description":"CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-29T23:29:56.268Z","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","shortName":"CPANSec"},"references":[{"tags":["technical-description"],"url":"https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/HTTP.pm"},{"tags":["patch"],"url":"https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124296-r1.patch"}],"source":{"discovery":"UNKNOWN"},"title":"Net::Server::HTTP versions through 2.018 for Perl allow a single request to abort a worker with out-of-memory via the client's Content-Length used as a read size in exec_cgi","workarounds":[{"lang":"en","value":"No fixed release is available. Apply the patch. For deployments that cannot apply the patch, run the server behind a reverse proxy that limits the request body size and buffers the whole body before forwarding it, or do not dispatch requests to CGI scripts."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}}},"cveMetadata":{"assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","assignerShortName":"CPANSec","cveId":"CVE-2026-124296","datePublished":"2026-11-29T23:29:56.268Z","dateReserved":"2026-11-07T11:59:36.907Z","dateUpdated":"2026-11-29T23:29:56.268Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 00:17:58","lastModifiedDate":"2026-11-30 00:17:58","problem_types":["CWE-789","CWE-835","CWE-789 CWE-789 Memory Allocation with Excessive Size Value","CWE-835 CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')"],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"124296","Ordinal":"1","Title":"Net::Server::HTTP versions through 2.018 for Perl allow a single","CVE":"CVE-2026-124296","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"124296","Ordinal":"1","NoteData":"Net::Server::HTTP versions through 2.018 for Perl allow a single request to abort a worker with out-of-memory via the client's Content-Length used as a read size in exec_cgi.\n\nexec_cgi forwards the request body to the CGI script with read() calls sized by the Content-Length header. Perl grows the buffer to that size before reading, so a request declaring a huge length aborts the worker with an out-of-memory error that no eval can catch.\n\nThe same loop never treats a 0 return from read() as end of input. When the client closes its side before sending the declared body, the remaining length stays unchanged and the loop spins at full CPU until the request times out.\n\nAny server that dispatches requests to a CGI script, including an app target given as an executable, is affected.","Type":"Description","Title":"Net::Server::HTTP versions through 2.018 for Perl allow a single"}]}}}