{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-124292","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","state":"PUBLISHED","assignerShortName":"CPANSec","dateReserved":"2026-11-07T11:59:04.174Z","datePublished":"2026-11-29T23:28:56.774Z","dateUpdated":"2026-11-29T23:28:56.774Z"},"containers":{"cna":{"affected":[{"collectionURL":"https://cpan.org/modules","defaultStatus":"unaffected","modules":["Net::Server"],"packageName":"Net-Server","packageURL":"pkg:cpan/Net-Server","programFiles":["lib/Net/Server.pm","lib/Net/Server/Daemonize.pm","lib/Net/Server/HTTP.pm"],"programRoutines":[{"name":"Net::Server::initialize_logging"},{"name":"Net::Server::post_configure"},{"name":"Net::Server::post_bind"},{"name":"Net::Server::Daemonize::create_pid_file"},{"name":"Net::Server::HTTP::_init_access_log"}],"repo":"https://github.com/rhandom/perl-net-server","versions":[{"lessThanOrEqual":"2.018","status":"affected","version":"0","versionType":"custom"}]}],"descriptions":[{"lang":"en","value":"Net::Server versions through 2.018 for Perl allow the run-as account to take ownership of any file via a symlink at the log or pid file path, which is opened and chowned as root at startup.\n\nA server started as root with a user to drop to opens log_file, pid_file and, in Net::Server::HTTP, access_log_file before the drop, then chowns each path to the run-as user. Both the open and the chown follow a symlink. Root creates a missing target, or opens an existing one for the log files, and the chown hands it to the run-as account.\n\nAn account that can write to the directory holding these files, typically the run-as account itself, gains ownership of any file it links to at the next start as root."}],"problemTypes":[{"descriptions":[{"cweId":"CWE-59","description":"CWE-59 Improper Link Resolution Before File Access","lang":"en","type":"CWE"}]}],"providerMetadata":{"orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","shortName":"CPANSec","dateUpdated":"2026-11-29T23:28:56.774Z"},"references":[{"tags":["technical-description"],"url":"https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server.pm"},{"tags":["technical-description"],"url":"https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/Daemonize.pm"},{"tags":["technical-description"],"url":"https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/HTTP.pm"},{"tags":["patch"],"url":"https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124292-r1.patch"}],"source":{"discovery":"UNKNOWN"},"title":"Net::Server versions through 2.018 for Perl allow the run-as account to take ownership of any file via a symlink at the log or pid file path, which is opened and chowned as root at startup","workarounds":[{"lang":"en","value":"No fixed release is available. Apply the patch. For deployments that cannot apply the patch, keep log_file, pid_file and access_log_file in directories that only root can write to."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}}}}