← Vulnerability feed

Vulnerability record · CVE-2007-3378 · published 29 June 2007

CVE-2007-3378: Php permissions and access controls vulnerability

Php · Php

The (1) session_save_path, (2) ini_set, and (3) error_log functions in PHP 4.4.7 and earlier, and PHP 5 5.2.3 and earlier, when invoked from a .htaccess file, allow remote attackers to bypass safe_mode and open_basedir restrictions and possibly execute arbitrary commands, as demonstrated using (a) php_value, (b) php_flag, and (c) directives in .htaccess.

6.8 CVSS 2.0 Medium EPSS 5.3% · top 7.7% CWE-264 · Permissions and access controls
6.8CVSS 2.0 base score
5.3%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
86References, 6 tagged exploit
16 Jun 2026Last modified by NVD

Description

The (1) session_save_path, (2) ini_set, and (3) error_log functions in PHP 4.4.7 and earlier, and PHP 5 5.2.3 and earlier, when invoked from a .htaccess file, allow remote attackers to bypass safe_mode and open_basedir restrictions and possibly execute arbitrary commands, as demonstrated using (a) php_value, (b) php_flag, and (c) directives in .htaccess.

AV:N/AC:M/Au:N/C:P/I:P/A:P

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://docs.info.apple.com/article.html?artnum=307562 Third Party Advisory
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01345501 Broken Link
http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2020/Sep/34
http://secunia.com/advisories/26642 Third Party Advisory
http://secunia.com/advisories/26822 Third Party Advisory
http://secunia.com/advisories/26838 Third Party Advisory
http://secunia.com/advisories/27102 Third Party Advisory
http://secunia.com/advisories/27377 Third Party Advisory
http://secunia.com/advisories/27648 Third Party Advisory
http://secunia.com/advisories/28318 Third Party Advisory
http://secunia.com/advisories/28750 Third Party Advisory
http://secunia.com/advisories/28936 Third Party Advisory
http://secunia.com/advisories/29420 Third Party Advisory
http://secunia.com/advisories/30040 Third Party Advisory
http://securityreason.com/achievement_exploitalert/9 Third Party Advisory
http://securityreason.com/achievement_securityalert/45 ExploitThird Party Advisory
http://securityreason.com/securityalert/2831 ExploitThird Party Advisory
http://securityreason.com/securityalert/3389 ExploitThird Party Advisory
http://slackware.com/security/viewer.php?l=slackware-security&y=2008&m=slackware-security.335136 Mailing ListThird Party Advisory
http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml Third Party Advisory
http://www.openwall.com/lists/oss-security/2020/09/17/3
http://www.osvdb.org/38682 Broken Link
http://www.php.net/ChangeLog-4.php PatchVendor Advisory
http://www.php.net/ChangeLog-5.php#5.2.4 PatchVendor Advisory
http://www.php.net/ChangeLog-5.php#5.2.5 PatchVendor Advisory
http://www.php.net/releases/4_4_8.php PatchVendor Advisory
http://www.php.net/releases/5_2_4.php PatchVendor Advisory
http://www.php.net/releases/5_2_5.php PatchVendor Advisory
http://www.securityfocus.com/archive/1/472343/100/0/threaded Third Party AdvisoryVDB Entry
http://www.securityfocus.com/archive/1/491693/100/0/threaded Third Party AdvisoryVDB Entry
http://www.securityfocus.com/bid/24661 PatchThird Party AdvisoryVDB Entry
http://www.securityfocus.com/bid/25498 PatchThird Party AdvisoryVDB Entry
http://www.trustix.org/errata/2007/0026/ Broken Link
http://www.vupen.com/english/advisories/2007/3023 Permissions RequiredThird Party Advisory
http://www.vupen.com/english/advisories/2008/0059 Permissions RequiredThird Party Advisory
http://www.vupen.com/english/advisories/2008/0398 Permissions RequiredThird Party Advisory
http://www.vupen.com/english/advisories/2008/0924/references Permissions RequiredThird Party Advisory
https://exchange.xforce.ibmcloud.com/vulnerabilities/35102 Third Party AdvisoryVDB Entry
https://exchange.xforce.ibmcloud.com/vulnerabilities/39403 Third Party AdvisoryVDB Entry

Track CVE-2007-3378 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed9.8CVE-2019-11043PHP-FPM buffer overflow enables remote code executionPHP-FPM in certain configurations writes past allocated buffers into FCGI protocol data space, an out-of-bounds write (CWE-787, CWE-120). It affects …KEVEPSS 100%analysed9.8CVE-2012-1823PHP-CGI query string option injection enables remote code executionPHP versions before 5.3.12 and 5.4.x before 5.4.2, when run as a CGI script (php-cgi), mishandle query strings that lack an equals sign, allowing com…KEVEPSS 100%analysed10.0CVE-2015-0235glibc gethostbyname heap buffer overflow (GHOST)CVE-2015-0235 is a heap-based buffer overflow in the __nss_hostname_digits_dots function in glibc 2.2 and other 2.x versions before 2.18. It is reach…EPSS 95%analysed10.0CVE-2012-2688Php vulnerabilityUnspecified vulnerability in the _php_stream_scandir function in the stream implementation in PHP before 5.3.15 and 5.4.x before 5.4.5 has unknown im…EPSS 10%10.0CVE-2012-2376Php memory buffer overflow vulnerabilityBuffer overflow in the com_print_typeinfo function in PHP 5.4.3 and earlier on Windows allows remote attackers to execute arbitrary code via crafted …EPSS 20%10.0CVE-2011-3268Php memory buffer overflow vulnerabilityBuffer overflow in the crypt function in PHP before 5.3.7 allows context-dependent attackers to have an unspecified impact via a long salt argument, …EPSS 5.7%10.0CVE-2009-4143Php vulnerabilityPHP before 5.2.12 does not properly handle session data, which has unspecified impact and attack vectors related to (1) interrupt corruption of the S…EPSS 2.9%

Source: NIST National Vulnerability Database (record CVE-2007-3378), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.