CVE-2026-124301: Net::Server::HTTP versions through 2.018 for Perl allow process exhaustion via a forked child that returns to the accept loop when a trusted script dies in exec_trusted_perl
Net::Server::HTTP versions through 2.018 for Perl allow process exhaustion via a forked child that returns to the accept loop when a trusted script dies in exectrustedperl.
exectrustedperl forks and the child loads the script with require. When the script dies before any header is sent, the child re-throws the error instead of exiting. The error unwinds into the request handler the child inherited from the worker, which sends a 500 response and returns to the accept loop. The child is now an extra worker that the server never forked, counts or signals, and it keeps running after the server is stopped.
Under the PreFork and Single server types, every request the script rejects with die adds one such process, past maxservers. Each extra worker inherits the failed require, so it fails later requests for that script and spawns another.
Affected Software
Event History
Frequently Asked Questions
Which deployments are affected by unbounded worker growth?
The described process growth occurs with the PreFork and Single server types. Each request that causes a trusted script to die before sending headers can add an extra child process, exceeding max_servers.
What must happen for an attacker to trigger the issue?
A request must reach a trusted Perl script executed through exec_trusted_perl, and that script must die while being loaded with require before any response header is sent. The resulting child returns to the accept loop instead of exiting.
How can operators recognize that exploitation or exposure has occurred?
Look for server child processes beyond the configured max_servers limit, especially processes that remain after the server is stopped. Affected extra workers may repeatedly fail requests for the same script and create further processes.
What is the immediate mitigation if upgrading is not possible?
Avoid requests that invoke trusted scripts known to die during loading, and stop or restart lingering child processes manually because the server does not count or signal them. The supplied reference includes a patch for version 2.018.