CVE-2009-3557: PHP
Medium severity, CVSS 5.0. EPSS: 2.1% chance of exploitation in the next 30 days.
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.
Affected products
- PHP PHP: up to and including 5.2.11; version 1.0 only; version 2.0 only; version 2.0b10 only; version 3.0 only; version 3.0.1 only; …
Published 2009-11-23. Last modified 2026-06-16.