7.5high

CVE-2008-56251 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 http…

Published 17 y ago · modified 4 mo ago · JSON

CVSS
7.5
v2.0 · NVD
CISA KEV
No
not known exploited
EPSS
7.3%
percentile 94%
Public exploits
1
Exploit-DB

Summary

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 prediction (EPSS)

7.31% probability of exploitation in the next 30 days, higher than 94% of all scored CVEs.

Exploits and detections

  • EDB-7171 PHP 5.2.6 - 'error_log' Safe_mode Bypass · local · 2008-11-20

CVSS scores

Assigned byVersionScoreVector
NVD2.07.5AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

Weakness
  • CWE-264 Permissions, Privileges, and Access Controls
Technology feeds
PHP (RSS, critical only)

References

  • marc.info /?l=bugtraq&m=125631037611762&w=2 · vendor-advisory, x_refsource_HP, x_transferred
  • marc.info /?l=bugtraq&m=124654546101607&w=2 · vendor-advisory, x_refsource_HP, x_transferred
  • securityfocus.com /archive/1/501376/100/0/threaded · mailing-list, x_refsource_BUGTRAQ, x_transferred
  • wiki.rpath.com /Advisories:rPSA-2009-0035 · x_refsource_CONFIRM, x_transferred
  • exchange.xforce.ibmcloud.com /vulnerabilities/47314 · vdb-entry, x_refsource_XF, x_transferred
  • securityfocus.com /bid/32383 · vdb-entry, x_refsource_BID, x_transferred
  • securityreason.com /achievement_securityalert/57 · third-party-advisory, x_refsource_SREASONRES, x_transferred
  • osvdb.org /52205 · vdb-entry, x_refsource_OSVDB, x_transferred
  • php.net /ChangeLog-5.php#5.2.7 · x_refsource_CONFIRM, x_transferred
  • mandriva.com /security/advisories?name=MDVSA-2009:045 · vendor-advisory, x_refsource_MANDRIVA, x_transferred
  • archives.neohapsis.com /archives/bugtraq/2008-11/0152.html · mailing-list, x_refsource_BUGTRAQ, x_transferred
  • exploit-db.com /exploits/7171 · exploit, x_refsource_EXPLOIT-DB, x_transferred
  • secunia.com /advisories/35650 · third-party-advisory, x_refsource_SECUNIA, x_transferred

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.