Back to CVE catalog
CVE-2004-1063

Bypass of safe_mode_exec_dir restrictions in PHP

Multiple products

At a glance

PHP 4.x to 4.3.9, and PHP 5.x to 5.0.2, when running in safe mode on a multithreaded Unix webserver, allows local users to bypass safe_mode_exec_dir restrictions and execute commands outside of the intended safe_mode_exec_dir via shell metacharacters in the current directory name. NOTE: this issue was originally REJECTed by its CNA before publication, but that decision is in active dispute. This candidate may change significantly in the future as a result of further discussion.

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityComplete
IntegrityComplete
AvailabilityComplete

CVSS summary v2.0

10.0High
Published:
Updated:
EPSS:
4.181%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Related CWE

Not specified

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:phpphpAffected versions:
≥ 4.0.0, ≤ 4.3.9Show full version range for php
≥ 5.0.0, ≤ 5.0.2
Vendor:Canonicalubuntu linuxAffected versions:
4.10

1–2 of 2 · Page 1 of 1

CVSS scores and metrics2
[email protected] · NVD (Primary)Primary10.0 / 10HighCVSS 2.0Details
Attack complexity
Low
Confidentiality
Complete
Integrity
Complete
Availability
Complete
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:L/Au:N/C:C/I:C/A:C
nvd · Wazuh CTI (cna)10.0 / 10HighCVSS 2.0Details
Attack complexity
Low
Confidentiality
Complete
Integrity
Complete
Availability
Complete
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories16

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences