CVE-2026-124296
Received Received - Intake

Memory Exhaustion in Net::Server::HTTP via Content-Length

Vulnerability report for CVE-2026-124296, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-30

Last updated on: 2026-11-30

Assigner: CPANSec

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. exec_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. The 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. Any server that dispatches requests to a CGI script, including an app target given as an executable, is affected.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-30
Last Modified
2026-11-30
Generated
2026-11-30
AI Q&A
2026-11-30
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-835 The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.
CWE-789 The product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in Net::Server::HTTP allows a malicious client to crash a server worker process by declaring an extremely large Content-Length header. Perl allocates memory based on this value, causing an out-of-memory error that cannot be caught. Additionally, if a client closes the connection early, the server enters an infinite loop consuming full CPU until the request times out.

Detection Guidance

To detect this vulnerability, monitor for processes consuming excessive CPU or memory during HTTP requests. Check for CGI scripts receiving abnormally large Content-Length headers or hanging indefinitely. Use tools like netstat or ss to inspect active connections and lsof to track file descriptors opened by CGI processes.

Impact Analysis

This vulnerability can cause denial of service by crashing server processes or consuming excessive CPU resources. Any server using Net::Server::HTTP to forward requests to CGI scripts is affected, potentially disrupting service for legitimate users.

Mitigation Strategies

Apply the provided patch from Resource 1 to Net::Server::HTTP version 2.018. Update to a patched version if available. Restrict CGI script execution to trusted users and limit request sizes via server configuration. Monitor for unusual CPU or memory usage patterns.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-124296. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...