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.
Severity
Medium 5.0
Published
23 Nov 2009
Last changed
16 Jun 2026
Added to UpHeron
14 Oct 2026
Exploit chance
2.1% in the next 30 daysHigher than 81% of CVEs. EPSS by FIRST, 12 Nov 2026