CVE-2002-2040 in Qnx Rtos
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.
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, low complexity.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Qnx | Rtos | 4.25 6.1.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2002-2040 |
|---|---|
| BreachSpider ID | BS-2002-GLOBAL-158722-H |
| CVSS vector | AV:L/AC:L/Au:N/C:C/I:C/A:C |
| Published | 2002-12-31 |
| Last modified | 2026-06-16 |
| Source | NVD |
Analysis AI-written, not human-reviewed
The phrafx and phgrafx-startup programs in QNX RTOS 4.25 and 6.1.0 do not properly drop privileges before executing system commands, allowing local users to execute arbitrary commands by manipulating the PATH environment variable.
Local users can exploit this vulnerability by modifying the PATH environment variable to point to a malicious crttrap program. This allows them to execute arbitrary commands with elevated privileges.
Questions
What is CVE-2002-2040?
The phrafx and phgrafx-startup programs in QNX RTOS 4.25 and 6.1.0 do not properly drop privileges before executing system commands, allowing local users to execute arbitrary commands by manipulating the PATH environment variable.
What is the CVSS score for CVE-2002-2040?
CVE-2002-2040 has CVSS 7.2 (High). Vector: AV:L/AC:L/Au:N/C:C/I:C/A:C. EPSS: 1.1%.
Is CVE-2002-2040 actively exploited?
Public exploit available for CVE-2002-2040. Exploitation risk elevated.
How do I remediate CVE-2002-2040?
Priority: HIGH.
What systems are affected by CVE-2002-2040?
CVE-2002-2040 affects Qnx Rtos.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Qnx","product":"Rtos","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.