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
·
Updated

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

1 affected component
cpan/Net::Server<=2.018

Event History

Nov 29, 2026
CVE Published
via MITRE·11:30 PM
Data Sourced
via MITRE·11:30 PM
DescriptionWeakness
Nov 30, 2026
Data Sourced
via NVD·12:17 AM
DescriptionWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203