CVEdetails.com the ultimate security vulnerability data source
(e.g.: CVE-2009-1234 or 2010-1234 or 20101234)
Log In   Register   Reset Password   Activate Account
Vulnerability Feeds & WidgetsNew   www.itsecdb.com  

Vulnerability Details : CVE-2009-3557

The tempnam function in ext/standard/file.c in PHP before 5.2.12 and 5.3.x before 5.3.1 allows context-dependent attackers to bypass safe_mode restrictions, and create files in group-writable or world-writable directories, via the dir and prefix arguments.
Publish Date : 2009-11-23 Last Update Date : 2011-07-18
Search Twitter   Search YouTube   Search Google

- CVSS Scores & Vulnerability Types

CVSS Score
5.0
Confidentiality Impact None (There is no impact to the confidentiality of the system.)
Integrity Impact Partial (Modification of some system files or information is possible, but the attacker does not have control over what can be modified, or the scope of what the attacker can affect is limited.)
Availability Impact None (There is no impact to the availability of the system.)
Access Complexity Low (Specialized access conditions or extenuating circumstances do not exist. Very little knowledge or skill is required to exploit. )
Authentication Not required (Authentication is not required to exploit the vulnerability.)
Gained Access None
Vulnerability Type(s) Bypass a restriction or similar
CWE ID 264

- Vendor Statements

We do not consider safe_mode / open_basedir restriction bypass issues being security sensitive. For more details see http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=169857#c1 and http://www.php.net/security-note.php
Source: Redhat

- Related OVAL Definitions

Title Definition Id Class Family
HP-UX Running Apache with PHP, Remote Denial of Service (DoS), Unauthorized Access, Privileged Access, Cross Site Script... oval:org.mitre.oval:def:7396 unix
OVAL (Open Vulnerability and Assessment Language) definitions define exactly what should be done to verify a vulnerability or a missing patch. Check out the OVAL definitions if you want to learn what you should do to verify a vulnerability.

- Products Affected By CVE-2009-3557

# Product Type Vendor Product Version Update Edition Language
1 Application PHP PHP 1.0 Version Details Vulnerabilities
2 Application PHP PHP 2.0 Version Details Vulnerabilities
3 Application PHP PHP 2.0b10 Version Details Vulnerabilities
4 Application PHP PHP 3.0 Version Details Vulnerabilities
5 Application PHP PHP 3.0.1 Version Details Vulnerabilities
6 Application PHP PHP 3.0.2 Version Details Vulnerabilities
7 Application PHP PHP 3.0.3 Version Details Vulnerabilities
8 Application PHP PHP 3.0.4 Version Details Vulnerabilities
9 Application PHP PHP 3.0.5 Version Details Vulnerabilities
10 Application PHP PHP 3.0.6 Version Details Vulnerabilities
11 Application PHP PHP 3.0.7 Version Details Vulnerabilities
12 Application PHP PHP 3.0.8 Version Details Vulnerabilities
13 Application PHP PHP 3.0.9 Version Details Vulnerabilities
14 Application PHP PHP 3.0.10 Version Details Vulnerabilities
15 Application PHP PHP 3.0.11 Version Details Vulnerabilities
16 Application PHP PHP 3.0.12 Version Details Vulnerabilities
17 Application PHP PHP 3.0.13 Version Details Vulnerabilities
18 Application PHP PHP 3.0.14 Version Details Vulnerabilities
19 Application PHP PHP 3.0.15 Version Details Vulnerabilities
20 Application PHP PHP 3.0.16 Version Details Vulnerabilities
21 Application PHP PHP 3.0.17 Version Details Vulnerabilities
22 Application PHP PHP 3.0.18 Version Details Vulnerabilities
23 Application PHP PHP 4.0 Version Details Vulnerabilities
24 Application PHP PHP 4.0 Beta2 Version Details Vulnerabilities
25 Application PHP PHP 4.0 Beta3 Version Details Vulnerabilities
26 Application PHP PHP 4.0 Beta4 Version Details Vulnerabilities
27 Application PHP PHP 4.0 Beta 4 Patch1 Version Details Vulnerabilities
28 Application PHP PHP 4.0 Beta1 Version Details Vulnerabilities
29 Application PHP PHP 4.0.0 Version Details Vulnerabilities
30 Application PHP PHP 4.0.1 Version Details Vulnerabilities
31 Application PHP PHP 4.0.2 Version Details Vulnerabilities
32 Application PHP PHP 4.0.3 Version Details Vulnerabilities
33 Application PHP PHP 4.0.4 Version Details Vulnerabilities
34 Application PHP PHP 4.0.5 Version Details Vulnerabilities
35 Application PHP PHP 4.0.6 Version Details Vulnerabilities
36 Application PHP PHP 4.0.7 Version Details Vulnerabilities
37 Application PHP PHP 4.1.0 Version Details Vulnerabilities
38 Application PHP PHP 4.1.1 Version Details Vulnerabilities
39 Application PHP PHP 4.1.2 Version Details Vulnerabilities
40 Application PHP PHP 4.1.3 Version Details Vulnerabilities
41 Application PHP PHP 4.2 Version Details Vulnerabilities
42 Application PHP PHP 4.2.0 Version Details Vulnerabilities
43 Application PHP PHP 4.2.1 Version Details Vulnerabilities
44 Application PHP PHP 4.2.2 Version Details Vulnerabilities
45 Application PHP PHP 4.2.3 Version Details Vulnerabilities
46 Application PHP PHP 4.2.4 Version Details Vulnerabilities
47 Application PHP PHP 4.3 Version Details Vulnerabilities
48 Application PHP PHP 4.3.0 Version Details Vulnerabilities
49 Application PHP PHP 4.3.1 Version Details Vulnerabilities
50 Application PHP PHP 4.3.2 Version Details Vulnerabilities
51 Application PHP PHP 4.3.7 Version Details Vulnerabilities
52 Application PHP PHP 4.3.10 Version Details Vulnerabilities
53 Application PHP PHP 4.3.11 Version Details Vulnerabilities
54 Application PHP PHP 4.4.2 Version Details Vulnerabilities
55 Application PHP PHP 4.4.7 Version Details Vulnerabilities
56 Application PHP PHP 4.4.8 Version Details Vulnerabilities
57 Application PHP PHP 4.4.9 Version Details Vulnerabilities
58 Application PHP PHP 5.0.0 Version Details Vulnerabilities
59 Application PHP PHP 5.0.0 Beta4 Version Details Vulnerabilities
60 Application PHP PHP 5.0.3 Version Details Vulnerabilities
61 Application PHP PHP 5.1.1 Version Details Vulnerabilities
62 Application PHP PHP 5.2.1 Version Details Vulnerabilities
63 Application PHP PHP 5.2.5 Version Details Vulnerabilities
64 Application PHP PHP 5.2.6 Version Details Vulnerabilities
65 Application PHP PHP 5.2.10 Version Details Vulnerabilities
66 Application PHP PHP 5.2.11 Version Details Vulnerabilities
67 Application PHP PHP 5.3.0 Version Details Vulnerabilities

- Number Of Affected Versions By Product

Vendor Product Vulnerable Versions
PHP PHP 67

- References For CVE-2009-3557

http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html
APPLE APPLE-SA-2010-03-29-1
http://news.php.net/php.announce/79
MLIST [php-announce] 20091119 5.3.1 Release announcement
http://marc.info/?l=bugtraq&m=127680701405735&w=2
HP HPSBUX02543
http://secunia.com/advisories/40262
SECUNIA 40262
http://secunia.com/advisories/37821
SECUNIA 37821
http://secunia.com/advisories/37412
SECUNIA 37412
http://securityreason.com/securityalert/6601
SREASON 6601
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/file.c?view=log CONFIRM
http://support.apple.com/kb/HT4077 CONFIRM
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/file.c?view=log CONFIRM
http://www.mandriva.com/security/advisories?name=MDVSA-2009:285
MANDRIVA MDVSA-2009:285
http://svn.php.net/viewvc?view=revision&revision=288945 CONFIRM
http://www.mandriva.com/security/advisories?name=MDVSA-2009:302
MANDRIVA MDVSA-2009:302
http://www.mandriva.com/security/advisories?name=MDVSA-2009:303
MANDRIVA MDVSA-2009:303
http://www.vupen.com/english/advisories/2009/3593
VUPEN ADV-2009-3593
http://www.php.net/releases/5_2_12.php CONFIRM
http://www.openwall.com/lists/oss-security/2009/11/20/3
MLIST [oss-security] 20091120 Re: CVE request: php 5.3.1 update
http://www.openwall.com/lists/oss-security/2009/11/20/2
MLIST [oss-security] 20091120 CVE request: php 5.3.1 update
http://www.openwall.com/lists/oss-security/2009/11/20/5
MLIST [oss-security] 20091120 Re: CVE request: php 5.3.1 update
http://www.php.net/ChangeLog-5.php CONFIRM
http://www.php.net/releases/5_3_1.php CONFIRM

- Metasploit Modules Related To CVE-2009-3557

There are not any metasploit modules related to this vulnerability (Please visit www.metasploit.com for more information)


CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site. OVAL is a registered trademark of The MITRE Corporation and the authoritative source of OVAL content is MITRE's OVAL web site.
Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.