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.
References
Link Resource
http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html
http://marc.info/?l=bugtraq&m=127680701405735&w=2
http://marc.info/?l=bugtraq&m=127680701405735&w=2
http://news.php.net/php.announce/79
http://secunia.com/advisories/37412 Vendor Advisory
http://secunia.com/advisories/37821
http://secunia.com/advisories/40262
http://securityreason.com/securityalert/6601 Exploit
http://support.apple.com/kb/HT4077
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/file.c?view=log
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/file.c?view=log
http://svn.php.net/viewvc?view=revision&revision=288945
http://www.mandriva.com/security/advisories?name=MDVSA-2009:285
http://www.mandriva.com/security/advisories?name=MDVSA-2009:302
http://www.mandriva.com/security/advisories?name=MDVSA-2009:303
http://www.openwall.com/lists/oss-security/2009/11/20/2 Patch
http://www.openwall.com/lists/oss-security/2009/11/20/3 Patch
http://www.openwall.com/lists/oss-security/2009/11/20/5 Patch
http://www.php.net/ChangeLog-5.php Patch Vendor Advisory
http://www.php.net/releases/5_2_12.php
http://www.php.net/releases/5_3_1.php Patch Vendor Advisory
http://www.vupen.com/english/advisories/2009/3593
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7396
http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html
http://marc.info/?l=bugtraq&m=127680701405735&w=2
http://marc.info/?l=bugtraq&m=127680701405735&w=2
http://news.php.net/php.announce/79
http://secunia.com/advisories/37412 Vendor Advisory
http://secunia.com/advisories/37821
http://secunia.com/advisories/40262
http://securityreason.com/securityalert/6601 Exploit
http://support.apple.com/kb/HT4077
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/file.c?view=log
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/file.c?view=log
http://svn.php.net/viewvc?view=revision&revision=288945
http://www.mandriva.com/security/advisories?name=MDVSA-2009:285
http://www.mandriva.com/security/advisories?name=MDVSA-2009:302
http://www.mandriva.com/security/advisories?name=MDVSA-2009:303
http://www.openwall.com/lists/oss-security/2009/11/20/2 Patch
http://www.openwall.com/lists/oss-security/2009/11/20/3 Patch
http://www.openwall.com/lists/oss-security/2009/11/20/5 Patch
http://www.php.net/ChangeLog-5.php Patch Vendor Advisory
http://www.php.net/releases/5_2_12.php
http://www.php.net/releases/5_3_1.php Patch Vendor Advisory
http://www.vupen.com/english/advisories/2009/3593
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7396
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
cpe:2.3:a:php:php:1.0:*:*:*:*:*:*:*
cpe:2.3:a:php:php:2.0:*:*:*:*:*:*:*
cpe:2.3:a:php:php:2.0b10:*:*:*:*:*:*:*
cpe:2.3:a:php:php:3.0:*:*:*:*:*:*:*
cpe:2.3:a:php:php:3.0.1:*:*:*:*:*:*:*
cpe:2.3:a:php:php:3.0.2:*:*:*:*:*:*:*
cpe:2.3:a:php:php:3.0.3:*:*:*:*:*:*:*
cpe:2.3:a:php:php:3.0.4:*:*:*:*:*:*:*
cpe:2.3:a:php:php:3.0.5:*:*:*:*:*:*:*
cpe:2.3:a:php:php:3.0.6:*:*:*:*:*:*:*
cpe:2.3:a:php:php:3.0.7:*:*:*:*:*:*:*
cpe:2.3:a:php:php:3.0.8:*:*:*:*:*:*:*
cpe:2.3:a:php:php:3.0.9:*:*:*:*:*:*:*
cpe:2.3:a:php:php:3.0.10:*:*:*:*:*:*:*
cpe:2.3:a:php:php:3.0.11:*:*:*:*:*:*:*
cpe:2.3:a:php:php:3.0.12:*:*:*:*:*:*:*
cpe:2.3:a:php:php:3.0.13:*:*:*:*:*:*:*
cpe:2.3:a:php:php:3.0.14:*:*:*:*:*:*:*
cpe:2.3:a:php:php:3.0.15:*:*:*:*:*:*:*
cpe:2.3:a:php:php:3.0.16:*:*:*:*:*:*:*
cpe:2.3:a:php:php:3.0.17:*:*:*:*:*:*:*
cpe:2.3:a:php:php:3.0.18:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.0:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.0:beta_4_patch1:*:*:*:*:*:*
cpe:2.3:a:php:php:4.0:beta1:*:*:*:*:*:*
cpe:2.3:a:php:php:4.0:beta2:*:*:*:*:*:*
cpe:2.3:a:php:php:4.0:beta3:*:*:*:*:*:*
cpe:2.3:a:php:php:4.0:beta4:*:*:*:*:*:*
cpe:2.3:a:php:php:4.0.0:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.0.1:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.0.2:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.0.3:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.0.4:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.0.5:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.0.6:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.0.7:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.1.0:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.1.1:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.1.2:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.2.0:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.2.1:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.2.2:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.2.3:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.3.0:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.3.1:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.3.2:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.3.7:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.3.10:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.3.11:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.4.2:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.4.7:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.4.8:*:*:*:*:*:*:*
cpe:2.3:a:php:php:4.4.9:*:*:*:*:*:*:*
cpe:2.3:a:php:php:5.0.0:*:*:*:*:*:*:*
cpe:2.3:a:php:php:5.0.0:beta4:*:*:*:*:*:*
cpe:2.3:a:php:php:5.0.3:*:*:*:*:*:*:*
cpe:2.3:a:php:php:5.1.1:*:*:*:*:*:*:*
cpe:2.3:a:php:php:5.2.1:*:*:*:*:*:*:*
cpe:2.3:a:php:php:5.2.5:*:*:*:*:*:*:*
cpe:2.3:a:php:php:5.2.6:*:*:*:*:*:*:*
cpe:2.3:a:php:php:5.2.10:*:*:*:*:*:*:*
cpe:2.3:a:php:php:5.3.0:*:*:*:*:*:*:*

History

21 Nov 2024, 01:07

Type Values Removed Values Added
References () http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html - () http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html -
References () http://marc.info/?l=bugtraq&m=127680701405735&w=2 - () http://marc.info/?l=bugtraq&m=127680701405735&w=2 -
References () http://news.php.net/php.announce/79 - () http://news.php.net/php.announce/79 -
References () http://secunia.com/advisories/37412 - Vendor Advisory () http://secunia.com/advisories/37412 - Vendor Advisory
References () http://secunia.com/advisories/37821 - () http://secunia.com/advisories/37821 -
References () http://secunia.com/advisories/40262 - () http://secunia.com/advisories/40262 -
References () http://securityreason.com/securityalert/6601 - Exploit () http://securityreason.com/securityalert/6601 - Exploit
References () http://support.apple.com/kb/HT4077 - () http://support.apple.com/kb/HT4077 -
References () http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/file.c?view=log - () http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/file.c?view=log -
References () http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/file.c?view=log - () http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/file.c?view=log -
References () http://svn.php.net/viewvc?view=revision&revision=288945 - () http://svn.php.net/viewvc?view=revision&revision=288945 -
References () http://www.mandriva.com/security/advisories?name=MDVSA-2009:285 - () http://www.mandriva.com/security/advisories?name=MDVSA-2009:285 -
References () http://www.mandriva.com/security/advisories?name=MDVSA-2009:302 - () http://www.mandriva.com/security/advisories?name=MDVSA-2009:302 -
References () http://www.mandriva.com/security/advisories?name=MDVSA-2009:303 - () http://www.mandriva.com/security/advisories?name=MDVSA-2009:303 -
References () http://www.openwall.com/lists/oss-security/2009/11/20/2 - Patch () http://www.openwall.com/lists/oss-security/2009/11/20/2 - Patch
References () http://www.openwall.com/lists/oss-security/2009/11/20/3 - Patch () http://www.openwall.com/lists/oss-security/2009/11/20/3 - Patch
References () http://www.openwall.com/lists/oss-security/2009/11/20/5 - Patch () http://www.openwall.com/lists/oss-security/2009/11/20/5 - Patch
References () http://www.php.net/ChangeLog-5.php - Patch, Vendor Advisory () http://www.php.net/ChangeLog-5.php - Patch, Vendor Advisory
References () http://www.php.net/releases/5_2_12.php - () http://www.php.net/releases/5_2_12.php -
References () http://www.php.net/releases/5_3_1.php - Patch, Vendor Advisory () http://www.php.net/releases/5_3_1.php - Patch, Vendor Advisory
References () http://www.vupen.com/english/advisories/2009/3593 - () http://www.vupen.com/english/advisories/2009/3593 -
References () https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7396 - () https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7396 -

Information

Published : 2009-11-23 17:30

Updated : 2024-11-21 01:07


NVD link : CVE-2009-3557

Mitre link : CVE-2009-3557

CVE.ORG link : CVE-2009-3557


JSON object : View

Products Affected

php

  • php
CWE
CWE-264

Permissions, Privileges, and Access Controls