Back
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…
High7.5EPSS 7.3%
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
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 (4 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Weakness
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)
- 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://trackcve.app/cve/CVE-2008-5625)Record last updated .