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
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, postbind 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.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to the retained root group privileges?
A server is exposed when it is started as root, configured with a user for the privilege drop, and does not explicitly set a group. In that case, the group defaults to the starting process's current group list, which is root's when the server starts as root.
What would an attacker need to take advantage of this issue?
An attacker would need a way to execute code in the server after its privilege-drop step, such as through a compromised request handler. That code can retain access to files available to group 0 and to any supplementary groups held by the process that started the server.
Does setting only the user option safely drop privileges?
No. When no group is configured, only the UID changes; the real, effective, and saved GIDs remain 0, and the starting process's supplementary groups are retained.
What can be done if the patch cannot be applied immediately?
Configure an explicit non-root group along with the user rather than relying on the documented default. This avoids the path where an unset group is replaced with the process's current root group list.
How can an administrator identify an affected running server?
Check for a server launched as root with a user configured but no group configured. After the drop, an affected process has a changed UID but real, effective, and saved GIDs of 0, with its original supplementary groups still present.