CVE-2002-0229: PHP - SQL Injection
- Cve: CVE-2002-0229
- Name: PHP - SQL Injection
- Description: 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.
- Impact: Attackers with database access can read arbitrary files on the server, potentially leading to information disclosure.
- Remediation: Update PHP to the latest version where this issue is fixed or apply security patches that disable unsafe 'LOAD DATA INFILE LOCAL' usage.
- Vulnerability type: sql_injection
- Vulnerability impact: information_disclosure, file_system_read
- Requirement type: logged_in
- Requirements: Attacker needs access to the MySQL database
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:P/A:P
- Epss score: 0.09579
- Epss percentile: 0.95597
- Assignee: [email protected]
- Published at: 2002-05-16T04:00:00Z
- Age in days: 8958
- Modified at: 2026-06-16T21:57:02Z
- References total: 7
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2002-0229
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| NVD-CWE-Other | — |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| php:php | = 4.1.2, = 4.1.0, = 4.0.6, = 4.0.5, = 4.0.4, = 4.0.3, = 4.0.1, = 4.0.1 patch2, = 4.0, = 3.0.16, = 3.0.13, = 3.0.12, = 3.0.11, = 3.0.10, = 3.0.9, = 3.0.8, = 3.0.7, = 3.0.6, = 3.0.5, = 3.0.4, = 3.0.3, = 3.0.2, = 3.0.1, = 3.0 | no | nvd | /v1/products/php/php |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Exposed hosts: 6175026
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports