CVE-2008-5625
PHP 5 before 5.2.7 does not enforce the error_log safe_mode restrictions when safe_mode is enabled through a php_admin_flag setting in…
- 7.5HighCVSS base score
- 7.3%Exploitation in 30 daysEPSS · top 5.6% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
Description
PHP 5 before 5.2.7 does not enforce the error_log safe_mode restrictions when safe_mode is enabled through a php_admin_flag setting in httpd.conf, which allows context-dependent attackers to write to arbitrary files by placing a "php_value error_log" entry in a .htaccess file.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list an Exploit-DB entry for it. A reference of the record is tagged as an exploit.
Show the exploits2
Exploit-DB1 entry
- PHP 5.2.6 - 'error_log' Safe_mode Bypass (Exploit-DB entry) (opens in a new tab)
EDB-ID 7171local, multiplepublished 20 Nov 2008Verified
References tagged exploit1 reference
- 7171 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By mitre
Published
- 16 years later
· 16 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | High7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
- EPSS (exploitation in 30 days)
- 7.3% · top 5.6% of all CVEs (10 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
n/a
- affected n/a
References
13
- HPSBUX02465 (opens in a new tab)vendor-advisoryx_refsource_HPx_transferred
- SSRT090085 (opens in a new tab)vendor-advisoryx_refsource_HPx_transferred
- 20090302 rPSA-2009-0035-1 php php-cgi php-imap php-mcrypt php-mysql php-mysqli php-pgsql php-soap php-xsl php5 php5-cgi php5-imap php5-mcrypt php5-mysql php5-mysqli php5-pear php5-pgsql php5-soap php5-xsl (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- http://wiki.rpath.com/Advisories:rPSA-2009-0035 (opens in a new tab)x_refsource_CONFIRMx_transferred
- php-error-safemode-bypass(47314) (opens in a new tab)vdb-entryx_refsource_XFx_transferred
- 32383 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- 20081120 PHP 5.2.6 (error_log) safe_mode bypass (opens in a new tab)third-party-advisoryx_refsource_SREASONRESx_transferred
- 52205 (opens in a new tab)vdb-entryx_refsource_OSVDBx_transferred
- http://www.php.net/ChangeLog-5.php#5.2.7 (opens in a new tab)x_refsource_CONFIRMx_transferred
- MDVSA-2009:045 (opens in a new tab)vendor-advisoryx_refsource_MANDRIVAx_transferred
- 20081120 SecurityReason : PHP 5.2.6 (error_log) safe_mode bypass (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- 7171 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- 35650 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2008-5599 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2008-5625)Record last updated .