CVE-2009-3557

PHP < 5.2.11 - Safe Mode Bypass via tempnam Function

Title source: llm
STIX 2.1

Description

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 (22)

Core 22
Core References
Patch mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2009/11/20/3
Release Notes x_refsource_confirm
http://www.php.net/releases/5_2_12.php
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/40262
Exploit third-party-advisory x_refsource_sreason
http://securityreason.com/securityalert/6601
Various Sources mailing-list x_refsource_mlist
http://news.php.net/php.announce/79
Mailing List vendor-advisory x_refsource_hp
http://marc.info/?l=bugtraq&m=127680701405735&w=2
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDVSA-2009:285
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/37821
Mailing List vendor-advisory x_refsource_apple
http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html
Patch, Vendor Advisory x_refsource_confirm
http://www.php.net/ChangeLog-5.php
Vendor Advisory x_refsource_confirm
http://support.apple.com/kb/HT4077
Patch mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2009/11/20/2
Patch, Vendor Advisory x_refsource_confirm
http://www.php.net/releases/5_3_1.php
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2009/3593
Patch mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2009/11/20/5
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/37412
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDVSA-2009:302
Third Party Advisory, VDB Entry vdb-entry signature x_refsource_oval
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7396
Various Sources x_refsource_confirm
http://svn.php.net/viewvc?view=revision&revision=288945
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDVSA-2009:303

Scores

EPSS 0.0350
EPSS Percentile 87.8%

Details

CWE
CWE-264
Status published
Products (45)
php/php 1.0
php/php 2.0
php/php 2.0b10
php/php 3.0
php/php 3.0.1
php/php 3.0.2
php/php 3.0.3
php/php 3.0.4
php/php 3.0.5
php/php 3.0.6
... and 35 more
Published Nov 23, 2009
Tracked Since Feb 18, 2026