{"id":"CVE-2002-2040","url":"https://www.cyber-defence.io/tools/cve/CVE-2002-2040","generatedAt":"2026-10-27T20:51:20.450Z","title":"The (1) phrafx and (2) phgrafx-startup programs in QNX realtime operating system (RTOS) 4.25 and 6.1.0 do not properly drop privileges before executing the system command, which allows local users to execute arbitrary commands by modifying the PATH…","description":"The (1) phrafx and (2) phgrafx-startup programs in QNX realtime operating system (RTOS) 4.25 and 6.1.0 do not properly drop privileges before executing the system command, which allows local users to execute arbitrary commands by modifying the PATH environment variable to reference a malicious crttrap program.","published":"2002-12-31T05:00:00.000Z","lastModified":"2026-06-16T22:00:32.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"2.0","score":7.2,"severity":"HIGH","vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C"},"cwe":[],"affected":["qnx/rtos"],"epss":{"score":0.01083,"percentile":0.64969,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":2,"verified":true,"firstPublished":"2002-06-03","source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[{"edbId":21504,"kind":"exploit","title":"QNX RTOS 4.25/6.1 - 'phgrafx-startup' Local Privilege Escalation","url":"https://www.exploit-db.com/exploits/21504","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/linux/local/21504.sh","file":"exploits/linux/local/21504.sh","published":"2002-06-03","added":"2002-06-03","updated":"2012-09-23","author":"badc0ded","type":"local","platform":"linux","port":null,"verified":true,"codes":["CVE-2002-2040","OSVDB-56494"],"tags":null,"aliases":null,"applicationUrl":null,"screenshotUrl":null,"referenceUrl":"https://www.securityfocus.com/bid/4916/info"},{"edbId":21503,"kind":"exploit","title":"QNX RTOS 4.25/6.1 - 'phgrafx' Local Privilege Escalation","url":"https://www.exploit-db.com/exploits/21503","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/linux/local/21503.sh","file":"exploits/linux/local/21503.sh","published":"2002-06-03","added":"2002-06-03","updated":"2012-09-23","author":"badc0ded","type":"local","platform":"linux","port":null,"verified":true,"codes":["CVE-2002-2040","OSVDB-56493"],"tags":null,"aliases":null,"applicationUrl":null,"screenshotUrl":null,"referenceUrl":"https://www.securityfocus.com/bid/4915/info"}]},"verdict":{"level":"urgent","text":"2 public exploits are published in Exploit-DB (verified) and the impact is high, while EPSS rates exploitation at 1.1%. Anyone can run this; patch or mitigate before the next change window and check exposed instances for signs of use."},"changes":[],"references":[{"url":"http://online.securityfocus.com/archive/1/275218","source":"cve@mitre.org"},{"url":"http://www.iss.net/security_center/static/9257.php","source":"cve@mitre.org"},{"url":"http://www.securityfocus.com/bid/4915","tags":["Exploit"],"source":"cve@mitre.org"},{"url":"http://www.securityfocus.com/bid/4916","tags":["Exploit"],"source":"cve@mitre.org"},{"url":"http://online.securityfocus.com/archive/1/275218","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.iss.net/security_center/static/9257.php","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/bid/4915","tags":["Exploit"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/bid/4916","tags":["Exploit"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2002-2040","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}