CVE-2026-124298

Net::Server versions through 2.018 for Perl keep root's group privileges after the privilege drop when user is set without group

Published Nov 29, 2026 CVSS n/a EPSS < 1% KEV · Not listed
Description
Net::Server versions through 2.018 for Perl keep root's group privileges after the privilege drop when user is set without group.

When group is not set, post_bind defaults it to the current group list. In a server started as root that list is root's own, so the gid change is skipped and only the uid changes. The real, effective and saved gid stay 0, and the supplementary groups of the starting process are kept. The documentation says group defaults to nobody.

Code running in the server after the drop, such as a compromised request handler, keeps access to files open to group 0 and to root's supplementary groups.

Analysis

AI-generated

Technical impact

Net::Server modules up to version 2.018 for Perl allow a process started as root to retain root group privileges after dropping the user if no group is explicitly set. In this case the effective, real and saved group IDs remain 0, and the auxiliary groups from the launching process are preserved, giving the server code access to any files that are group‑owned by root or by root’s supplementary groups. This means that code executed after the privilege drop, such as a through‑the‑wire request handler, could read or modify resources it should not have access to.

Affected Systems

Perl installations that use Net::Server 2.018 or earlier, when the server is started with the root user and no group is specified, are affected. The vulnerability exists in the Net::Server module distributed via Metacpan and the issue has not been fixed in a formal release, only in a vendor‑supplied patch.

Risk and Exploitability

The flaw constitutes a privilege‑escalation weakness (CWE‑271). No CVSS score or EPSS data is available, and the vulnerability has not been listed in the CISA KEV catalog. The likely attack vector is a compromised request handler or remote code execution that can be triggered while the server process remains running, allowing the attacker to leverage root group privileges. Because the vulnerability persists after the nominal user drop, it represents a significant risk to confidentiality and integrity of group‑protected files.

Remediation

Vendor Workaround

No fixed release is available. Apply the patch. For deployments that cannot apply the patch, set group explicitly whenever user is set.


OpenCVE Recommended Actions

  • Apply the vendor‑supplied patch for Net::Server to correct the group‑privilege handling during the privilege drop.
  • When configuring the server, explicitly set the group list (or use a safe default) whenever a non‑root user is specified to avoid accidental retention of root group privileges.
  • Verify that after the privilege drop the effective group ID is no longer zero and that no unintended supplementary groups remain attached to the process.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Net::Server versions through 2.018 for Perl keep root's group privileges after the privilege drop when user is set without group. When group is not set, post_bind defaults it to the current group list. In a server started as root that list is root's own, so the gid change is skipped and only the uid changes. The real, effective and saved gid stay 0, and the supplementary groups of the starting process are kept. The documentation says group defaults to nobody. Code running in the server after the drop, such as a compromised request handler, keeps access to files open to group 0 and to root's supplementary groups.
Title Net::Server versions through 2.018 for Perl keep root's group privileges after the privilege drop when user is set without group
Weaknesses CWE-271
References

Subscriptions

No data.

Weaknesses
  • CWE-271

    Privilege Dropping / Lowering Errors

Sources

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