{"id":"CVE-2002-0638","aliases":["EUVD-2002-0632","GHSA-gmmv-6j82-fwgw"],"status":"published","title":"setpwnam.c in the util-linux package, as included in Red Hat Linux 7.3 and earlier, and other...","description":"setpwnam.c in the util-linux package, as included in Red Hat Linux 7.3 and earlier, and other operating systems, does not properly lock a temporary file when modifying /etc/passwd, which may allow local users to gain privileges via a complex race condition that uses an open file descriptor in utility programs such as chfn and chsh.","severity":{"version":"2.0","score":6.2,"vector":"AV:L/AC:H/Au:N/C:C/I:C/A:C","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00529,"percentile":0.45013,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"published":"2002-08-12T04:00:00Z","modified":"2026-06-16T21:57:50Z","products":[{"vendor":"hp","product":"secure_os"},{"vendor":"mandrakesoft","product":"mandrake_linux"},{"vendor":"mandrakesoft","product":"mandrake_linux_corporate_server"},{"vendor":"mandrakesoft","product":"mandrake_single_network_firewall"},{"vendor":"redhat","product":"linux"}],"references":[{"url":"ftp://ftp.caldera.com/pub/security/OpenLinux/CSSA-2002-043.0.txt","tags":["vendor-advisory","x_refsource_CALDERA","x_transferred"]},{"url":"http://www.securityfocus.com/bid/5344","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://www.iss.net/security_center/static/9709.php","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://www.linux-mandrake.com/en/security/2002/MDKSA-2002-047.php","tags":["vendor-advisory","x_refsource_MANDRAKE","x_transferred"]},{"url":"http://rhn.redhat.com/errata/RHSA-2002-132.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Patch","Vendor Advisory"]},{"url":"http://www.kb.cert.org/vuls/id/405955","tags":["third-party-advisory","x_refsource_CERT-VN","x_transferred","Patch","Third Party Advisory","US Government Resource"]},{"url":"http://archives.neohapsis.com/archives/bugtraq/2002-07/0357.html","tags":["mailing-list","x_refsource_VULNWATCH","x_transferred"]},{"url":"http://distro.conectiva.com.br/atualizacoes/?id=a\u0026anuncio=000523","tags":["vendor-advisory","x_refsource_CONECTIVA","x_transferred"]},{"url":"http://online.securityfocus.com/advisories/4320","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://archives.neohapsis.com/archives/bugtraq/2002-07/0396.html","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://marc.info/?l=bugtraq\u0026m=102795787713996\u0026w=2","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://www.redhat.com/support/errata/RHSA-2002-137.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"http://www.osvdb.org/5164","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2002-0638"},{"url":"https://github.com/advisories/GHSA-gmmv-6j82-fwgw"}],"sources":{"cve":[{"id":"CVE-2002-0638","description":"setpwnam.c in the util-linux package, as included in Red Hat Linux 7.3 and earlier, and other operating systems, does not properly lock a temporary file when modifying /etc/passwd, which may allow local users to gain privileges via a complex race condition that uses an open file descriptor in utility programs such as chfn and chsh.","status":"published","published":"2003-04-02T05:00:00Z","modified":"2024-08-08T02:56:38.516Z","updated_at":"2026-11-02T14:33:55.303902Z"}],"euvd":[{"id":"EUVD-2002-0632","description":"setpwnam.c in the util-linux package, as included in Red Hat Linux 7.3 and earlier, and other operating systems, does not properly lock a temporary file when modifying /etc/passwd, which may allow local users to gain privileges via a complex race condition that uses an open file descriptor in utility programs such as chfn and chsh.","status":"published","published":"2003-04-02T05:00:00Z","modified":"2024-08-08T02:56:38Z","updated_at":"2026-11-03T01:14:59.632362Z"}],"ghsa":[{"id":"GHSA-gmmv-6j82-fwgw","title":"setpwnam.c in the util-linux package, as included in Red Hat Linux 7.3 and earlier, and other...","description":"setpwnam.c in the util-linux package, as included in Red Hat Linux 7.3 and earlier, and other operating systems, does not properly lock a temporary file when modifying /etc/passwd, which may allow local users to gain privileges via a complex race condition that uses an open file descriptor in utility programs such as chfn and chsh.","status":"published","published":"2022-05-03T03:07:55Z","modified":"2023-02-01T05:01:03Z","updated_at":"2026-11-02T14:49:39.648637Z"}],"nvd":[{"id":"CVE-2002-0638","description":"setpwnam.c in the util-linux package, as included in Red Hat Linux 7.3 and earlier, and other operating systems, does not properly lock a temporary file when modifying /etc/passwd, which may allow local users to gain privileges via a complex race condition that uses an open file descriptor in utility programs such as chfn and chsh.","status":"published","published":"2002-08-12T04:00:00Z","modified":"2026-06-16T21:57:50.24Z","cvss":[{"version":"2.0","score":6.2,"vector":"AV:L/AC:H/Au:N/C:C/I:C/A:C","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:00:42.220505Z"}]}}
