{"id":"CVE-2008-5625","published":"2008-12-17T17:00:00Z","modified":"2024-08-07T10:56:47Z","title":"PHP 5 before 5.2.7 does not enforce the error_log safe_mode restrictions when safe_mode is enabled through a…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.07314,"percentile":0.9452,"provenance":"source"},"cwes":[],"references":[{"url":"http://marc.info/?l=bugtraq&m=125631037611762&w=2","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://marc.info/?l=bugtraq&m=124654546101607&w=2","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://www.securityfocus.com/archive/1/501376/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://wiki.rpath.com/Advisories:rPSA-2009-0035","tags":["x_refsource_CONFIRM"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/47314","tags":["vdb-entry","x_refsource_XF"]},{"url":"http://www.securityfocus.com/bid/32383","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://securityreason.com/achievement_securityalert/57","tags":["third-party-advisory","x_refsource_SREASONRES"]},{"url":"http://osvdb.org/52205","tags":["vdb-entry","x_refsource_OSVDB"]},{"url":"http://www.php.net/ChangeLog-5.php#5.2.7","tags":["x_refsource_CONFIRM"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2009:045","tags":["vendor-advisory","x_refsource_MANDRIVA"]},{"url":"http://archives.neohapsis.com/archives/bugtraq/2008-11/0152.html","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"https://www.exploit-db.com/exploits/7171","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"http://secunia.com/advisories/35650","tags":["third-party-advisory","x_refsource_SECUNIA"]}],"priority":{"score":23.9,"factors":[{"name":"EPSS percentile","points":18.9},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2008-11-20"},"first":{"date":"2008-11-20","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/7171"},"provenance":"source"},"summary":{"text":"The flaw is in PHP 5 before 5.2.7, where the error_log safe_mode restrictions are not enforced when safe_mode is turned on through a php_admin_flag setting in httpd.conf. An attacker who can place a \"php_value error_log\" entry in a .htaccess file, which requires only the ability to write that context-dependent configuration rather than network access or authentication, can write to arbitrary files on the server.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:58:06Z"},"euvd":{"id":"EUVD-2008-5599","exploited":false,"provenance":"source"},"exploits":[{"id":7171,"url":"https://www.exploit-db.com/exploits/7171","title":"PHP 5.2.6 - 'error_log' Safe_mode Bypass","date":"2008-11-20","verified":true,"provenance":"source"}],"exploitRefs":["https://www.exploit-db.com/exploits/7171"]}