Live threats

All CVEs / Php

CVE-2009-3557Php

Medium 5.0 No auth needed

Priority
45
CVSS 2.0
5.0
EPSS
2.1%
probability of exploitation in 30 days · percentile 82
Auth required
No
Published
Nov 23, 2009
Updated
Jun 16, 2026
Category
Web application · Cross-platform
Weakness (CWE)
CWE-264
Vector
AV:N/AC:L/Au:N/C:N/I:P/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Php.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
phpphp≤ 5.2.11
phpphp1.0
phpphp2.0
phpphp2.0b10
phpphp3.0
phpphp3.0.1
phpphp3.0.2
phpphp3.0.3
phpphp3.0.4
phpphp3.0.5
phpphp3.0.6
phpphp3.0.7
phpphp3.0.8
phpphp3.0.9
phpphp3.0.10
phpphp3.0.11
phpphp3.0.12
phpphp3.0.13
phpphp3.0.14
phpphp3.0.15
phpphp3.0.16
phpphp3.0.17
phpphp3.0.18
phpphp4.0
phpphp4.0
phpphp4.0
phpphp4.0
phpphp4.0
phpphp4.0
phpphp4.0.0
phpphp4.0.1
phpphp4.0.2
phpphp4.0.3
phpphp4.0.4
phpphp4.0.5
phpphp4.0.6
phpphp4.0.7
phpphp4.1.0
phpphp4.1.1
phpphp4.1.2
phpphp4.2.0
phpphp4.2.1
phpphp4.2.2
phpphp4.2.3
phpphp4.3.0
phpphp4.3.1
phpphp4.3.2
phpphp4.3.7
phpphp4.3.10
phpphp4.3.11
phpphp4.4.2
phpphp4.4.7
phpphp4.4.8
phpphp4.4.9
phpphp5.0.0
phpphp5.0.0
phpphp5.0.3
phpphp5.1.1
phpphp5.2.1
phpphp5.2.5

and 3 more in the JSON

Official sources

References

Links published by the sources. Open them with care.