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

Published Nov 29, 2026 CVSS n/a EPSS < 1% KEV · Not listed
Description
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.

exec_trusted_perl 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 max_servers. Each extra worker inherits the failed require, so it fails later requests for that script and spawns another.

Analysis

AI-generated

Technical impact

Net::Server::HTTP versions through 2.018 for Perl contain a flaw where a forked child executing a trusted script via exec_trusted_perl does not exit when the script dies before sending a response. Instead, the child re‑throws the error, sends a 500 response, and reenters the accept loop as an orphan worker. Each subsequent request for that script can spawn another orphan worker, leading to uncontrolled process growth. The weakness is a Resource Exhaustion vulnerability (CWE‑705) that can cause denial of service by consuming all available multiprocessing capacity and memory, potentially crashing the host or making the service unavailable to legitimate clients.

Affected Systems

Command‑and‑control or web applications that use Net::Server::HTTP library versions 2.018 or older for Perl are affected. The issue exists in the Net::Server::HTTP module distributed on CPAN. Vulnerable deployments typically host Perl web services that rely on trusted script execution within Net::Server.

Risk and Exploitability

No publicly disclosed CVSS score or EPSS figure is available for this vulnerability, and it is not listed in the CISA Known Exploited Vulnerabilities catalog. Based on the description, the likely attack vector is remote via HTTP requests that trigger a trusted script to fail. An attacker can repeatedly send such requests to create excess process workers, exhausting system resources and rendering the server unavailable. The exploit requires no special privileges and does not depend on local user context, so it is feasible for anyone with network access to the vulnerable service. Given the severe impact on availability and the ease of exploitation, the risk is high.

Remediation

Vendor Workaround

No fixed release is available. Apply the patch. For deployments that cannot apply the patch, have each script run through exec_trusted_perl catch its own errors and print an error response instead of dying.


OpenCVE Recommended Actions

  • Apply the vendor‑supplied patch to Net::Server::HTTP 2.018.
  • If patching is not possible, modify each trusted script to catch errors within exec_trusted_perl and return an error response instead of dying.
  • When neither option is viable, reduce the server’s maximum worker count (max_servers) to limit the number of concurrent processes that can be created.

Generated by OpenCVE AI on November 30, 2026 at 00:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description 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. exec_trusted_perl 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 max_servers. Each extra worker inherits the failed require, so it fails later requests for that script and spawns another.
Title 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
Weaknesses CWE-705
References

Subscriptions

No data.

Weaknesses
  • CWE-705

    Incorrect Control Flow Scoping

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 29, 2026, 11:33 PM
Reserved
Nov 7, 2026, 12:00 PM
Status
Received
Published
Nov 30, 2026, 12:17 AM
Modified
Nov 30, 2026, 12:17 AM