CVE-2004-0490 in Cpanel
cPanel, when compiling Apache 1.3.29 and PHP with the mod_phpsuexec option, does not set the --enable-discard-path option, which causes php to use the SCRIPT_FILENAME variable to find and execute a script instead of the PATH_TRANSLATED variable, which allows local users to execute arbitrary PHP code as other users v...
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, low complexity.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Cpanel | Cpanel | 5.0 5.3 6.0 6.2 6.4 6.4.1+7 more6.4.2 6.4.2_stable_48 7.0 8.0 9.0 9.1 9.1.0_r85 |
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.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official description
cPanel, when compiling Apache 1.3.29 and PHP with the mod_phpsuexec option, does not set the --enable-discard-path option, which causes php to use the SCRIPT_FILENAME variable to find and execute a script instead of the PATH_TRANSLATED variable, which allows local users to execute arbitrary PHP code as other users via a URL that references the attacker's script after the user's script, which executes the attacker's script with the user's privileges, a different vulnerability than CVE-2004-0529.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2004-0490 |
|---|---|
| BreachSpider ID | BS-2004-GLOBAL-158463-H |
| CVSS vector | AV:L/AC:L/Au:N/C:C/I:C/A:C |
| Published | 2004-08-18 |
| Last modified | 2026-06-16 |
| Source | NVD |
Analysis AI-written, not human-reviewed
cPanel, when compiling Apache 1.3.29 and PHP with the mod_phpsuexec option, fails to set the --enable-discard-path option. This vulnerability allows local users to execute arbitrary PHP code as other users via a URL that references the attacker's script after the user's script.
The vulnerability arises from the incorrect configuration of PHP during compilation. The absence of the --enable-discard-path option causes PHP to use the SCRIPT_FILENAME variable instead of the PATH_TRANSLATED variable for script execution. This misconfiguration can be exploited by local users to execute arbitrary PHP code with elevated privileges.
Questions
What is CVE-2004-0490?
cPanel, when compiling Apache 1.3.29 and PHP with the mod_phpsuexec option, fails to set the --enable-discard-path option. This vulnerability allows local users to execute arbitrary PHP code as other users via a URL that references the attacker's script after the user's script.
What is the CVSS score for CVE-2004-0490?
CVE-2004-0490 has CVSS 7.2 (High). Vector: AV:L/AC:L/Au:N/C:C/I:C/A:C. EPSS: 4.5%.
Is CVE-2004-0490 actively exploited?
Public exploit available for CVE-2004-0490. Exploitation risk elevated.
How do I remediate CVE-2004-0490?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2004-0490?
CVE-2004-0490 affects Cpanel Cpanel.
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":"Cpanel","product":"Cpanel","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.