CVE-2009-3557

Public Exploit

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.

Category

5.0
CVSS
Severity: Medium
CVSS 2.0 •
EPSS 3.50% Top 15%
Vendor Advisory marc.info Vendor Advisory mandriva.com Vendor Advisory apple.com Vendor Advisory mandriva.com Vendor Advisory mandriva.com Vendor Advisory secunia.com Vendor Advisory php.net Vendor Advisory php.net
Affected: n/a n/a
Published at:
Updated at:

References

Link Tags
http://www.openwall.com/lists/oss-security/2009/11/20/3 mailing list patch
http://www.php.net/releases/5_2_12.php
http://secunia.com/advisories/40262 third party advisory
http://securityreason.com/securityalert/6601 third party advisory exploit
http://news.php.net/php.announce/79 mailing list
http://marc.info/?l=bugtraq&m=127680701405735&w=2 vendor advisory
http://www.mandriva.com/security/advisories?name=MDVSA-2009:285 vendor advisory
http://secunia.com/advisories/37821 third party advisory
http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html vendor advisory
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/standard/file.c?view=log
http://www.php.net/ChangeLog-5.php patch vendor advisory
http://support.apple.com/kb/HT4077
http://www.openwall.com/lists/oss-security/2009/11/20/2 mailing list patch
http://www.php.net/releases/5_3_1.php patch vendor advisory
http://www.vupen.com/english/advisories/2009/3593 vdb entry
http://www.openwall.com/lists/oss-security/2009/11/20/5 mailing list patch
http://secunia.com/advisories/37412 third party advisory vendor advisory
http://www.mandriva.com/security/advisories?name=MDVSA-2009:302 vendor advisory
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7396 vdb entry signature
http://svn.php.net/viewvc?view=revision&revision=288945
http://www.mandriva.com/security/advisories?name=MDVSA-2009:303 vendor advisory
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/standard/file.c?view=log

Frequently Asked Questions

What is the severity of CVE-2009-3557?
CVE-2009-3557 has been scored as a medium severity vulnerability.
How to fix CVE-2009-3557?
To fix CVE-2009-3557, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2009-3557 being actively exploited in the wild?
It is possible that CVE-2009-3557 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~4% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. 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.
© 2025 Under My Watch. All Rights Reserved.