PHP up to 4.1.2 Safe Mode LOAD DATA INFILE LOCAL privileges management
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.6 | $0-$5k | 0.00 |
Summary
A vulnerability was found in PHP. It has been classified as critical. The impacted element is an unknown function of the component Safe Mode. Performing a manipulation of the argument LOAD DATA INFILE LOCAL results in privileges management. This vulnerability is known as CVE-2002-0229. Furthermore, an exploit is available. Upgrading the affected component is recommended.
Details
A vulnerability classified as critical has been found in PHP (Programming Language Software). This affects an unknown code block of the component Safe Mode. The manipulation of the argument LOAD DATA INFILE LOCAL with an unknown input leads to a privileges management vulnerability. CWE is classifying the issue as CWE-269. The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:
Safe Mode feature (safe_mode) in PHP 3.0 through 4.1.0 allows attackers with access to the MySQL database to bypass Safe Mode access restrictions and read arbitrary files using "LOAD DATA INFILE LOCAL" SQL statements.
The weakness was published 05/16/2002 (Website). It is possible to read the advisory at marc.info. This vulnerability is uniquely identified as CVE-2002-0229. The exploitability is told to be easy. It is possible to initiate the attack remotely. No form of authentication is needed for exploitation. Technical details and a public exploit are known. The attack technique deployed by this issue is T1068 according to MITRE ATT&CK.
The exploit is shared for download at securityfocus.com. It is declared as proof-of-concept. We expect the 0-day to have been worth approximately $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 20111 (PHP < 4.4.1 / 5.0.6 Multiple Vulnerabilities), which helps to determine the existence of the flaw in a target environment. It is assigned to the family CGI abuses and running in the context r. The commercial vulnerability scanner Qualys is able to test this issue with plugin 10686 (PHP MySQL Safe_Mode Filesystem Circumvention Vulnerability).
Upgrading eliminates this vulnerability.
The vulnerability is also documented in the databases at X-Force (8105), Exploit-DB (21264), Tenable (20111), SecurityFocus (BID 4026†) and Vulnerability Center (SBV-4587†). Be aware that VulDB is the high quality source for vulnerability data.
Product
Type
Name
Version
- 3.0
- 3.0.1
- 3.0.2
- 3.0.3
- 3.0.4
- 3.0.5
- 3.0.6
- 3.0.7
- 3.0.8
- 3.0.9
- 3.0.10
- 3.0.11
- 3.0.12
- 3.0.13
- 3.0.16
- 4.0
- 4.0.1
- 4.0.3
- 4.0.4
- 4.0.5
- 4.0.6
- 4.1.0
- 4.1.2
License
Website
- Product: https://www.php.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.3VulDB Meta Temp Score: 6.6
VulDB Base Score: 7.3
VulDB Temp Score: 6.6
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Privileges managementCWE: CWE-269 / CWE-266
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 20111
Nessus Name: PHP < 4.4.1 / 5.0.6 Multiple Vulnerabilities
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Exploit-DB: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Timeline
02/03/2002 🔍02/03/2002 🔍
05/16/2002 🔍
05/16/2002 🔍
06/21/2004 🔍
11/01/2005 🔍
07/11/2014 🔍
09/21/2025 🔍
Sources
Product: php.orgAdvisory: marc.info
Status: Confirmed
CVE: CVE-2002-0229 (🔍)
GCVE (CVE): GCVE-0-2002-0229
GCVE (VulDB): GCVE-100-18135
X-Force: 8105
SecurityFocus: 4026 - PHP MySQL Safe_Mode Filesystem Circumvention Vulnerability
Vulnerability Center: 4587 - PHP 3.0 - 4.1.0 Allows Reading of Arbitrary Files, High
scip Labs: https://www.scip.ch/en/?labs.20161013
Entry
Created: 07/11/2014 13:57Updated: 09/21/2025 01:18
Changes: 07/11/2014 13:57 (67), 05/22/2019 14:14 (1), 01/01/2025 19:07 (19), 09/21/2025 01:18 (2)
Complete: 🔍
Cache ID: 216:5CC:103
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.