Every CVE Search/ Get API key

CVE-2008-5625

PHP 5 before 5.2.7 does not enforce the error_log safe_mode restrictions when safe_mode is...

7.5 HighPublic exploit

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.

Exploit likelihood

7.31%Up 4.6 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2008-5625
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-264
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2008-5625
Updated
2026-11-02
EUVDEUVD-2008-5599 No score

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.

Record
EUVD-2008-5599
Updated
2026-11-03
GitHub AdvisoriesGHSA-x9qw-wpgc-3724 No score

PHP 5 before 5.2.7 does not enforce the error_log safe_mode restrictions when safe_mode is...

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.

Record
GHSA-x9qw-wpgc-3724
Updated
2026-11-02

Affected products

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
Exploit-DBPHP 5.2.6 - 'error_log' Safe_mode Bypass2008-11-20

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, Exploit-DB, GitHub Advisories, NVD

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2008-5625 is a high vulnerability (CVSS 7.5) in Php, published December 17, 2008. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 7.31%, the 94th percentile. No source names a fixed version.

References

Show 9 moreShow less
MoveEnter Open