BreachSpiderVerified, not vibes

CVE-2004-0490 in Cpanel

High 7.2 Public exploit reported

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.

CVSS 2.07.2
EPSS4.5%
EPSS percentile92th
FixUnknown

Requires local access, low complexity.

Affected products and versions

VendorProductAffected 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-exploitedNot in the CISA KEV catalog
Public exploitReported · 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 IDCVE-2004-0490
BreachSpider IDBS-2004-GLOBAL-158463-H
CVSS vectorAV:L/AC:L/Au:N/C:C/I:C/A:C
Published2004-08-18
Last modified2026-06-16
SourceNVD

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"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.