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 se...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:14.04:LTSlibnet-server-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:16.04:LTSlibnet-server-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSlibnet-server-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlibnet-server-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlibnet-server-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSlibnet-server-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10libnet-server-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSlibnet-server-perl |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
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.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report lists.security.metacpan.org