Security mailing lists by PureSourceCode

CVE-2009-3557

MEDIUM 5.0CVSS 2.0

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.

Published
23 Nov 2009
Last modified
16 Jun 2026
Assigned by
secalert@redhat.com
NVD status
Modified
Weakness
CWE-264
Sources
NVDJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.0 AV:N/AC:L/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD php php
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
<= 5.2.11
NVD php php
cpe:2.3:a:php:php:1.0:*:*:*:*:*:*:*
= 1.0
NVD php php
cpe:2.3:a:php:php:2.0:*:*:*:*:*:*:*
= 2.0
NVD php php
cpe:2.3:a:php:php:2.0b10:*:*:*:*:*:*:*
= 2.0b10
NVD php php
cpe:2.3:a:php:php:3.0:*:*:*:*:*:*:*
= 3.0
NVD php php
cpe:2.3:a:php:php:3.0.1:*:*:*:*:*:*:*
= 3.0.1
NVD php php
cpe:2.3:a:php:php:3.0.2:*:*:*:*:*:*:*
= 3.0.2
NVD php php
cpe:2.3:a:php:php:3.0.3:*:*:*:*:*:*:*
= 3.0.3
NVD php php
cpe:2.3:a:php:php:3.0.4:*:*:*:*:*:*:*
= 3.0.4
NVD php php
cpe:2.3:a:php:php:3.0.5:*:*:*:*:*:*:*
= 3.0.5
NVD php php
cpe:2.3:a:php:php:3.0.6:*:*:*:*:*:*:*
= 3.0.6
NVD php php
cpe:2.3:a:php:php:3.0.7:*:*:*:*:*:*:*
= 3.0.7
NVD php php
cpe:2.3:a:php:php:3.0.8:*:*:*:*:*:*:*
= 3.0.8
NVD php php
cpe:2.3:a:php:php:3.0.9:*:*:*:*:*:*:*
= 3.0.9
NVD php php
cpe:2.3:a:php:php:3.0.10:*:*:*:*:*:*:*
= 3.0.10
NVD php php
cpe:2.3:a:php:php:3.0.11:*:*:*:*:*:*:*
= 3.0.11
NVD php php
cpe:2.3:a:php:php:3.0.12:*:*:*:*:*:*:*
= 3.0.12
NVD php php
cpe:2.3:a:php:php:3.0.13:*:*:*:*:*:*:*
= 3.0.13
NVD php php
cpe:2.3:a:php:php:3.0.14:*:*:*:*:*:*:*
= 3.0.14
NVD php php
cpe:2.3:a:php:php:3.0.15:*:*:*:*:*:*:*
= 3.0.15
NVD php php
cpe:2.3:a:php:php:3.0.16:*:*:*:*:*:*:*
= 3.0.16
NVD php php
cpe:2.3:a:php:php:3.0.17:*:*:*:*:*:*:*
= 3.0.17
NVD php php
cpe:2.3:a:php:php:3.0.18:*:*:*:*:*:*:*
= 3.0.18
NVD php php
cpe:2.3:a:php:php:4.0:*:*:*:*:*:*:*
= 4.0
NVD php php
cpe:2.3:a:php:php:4.0:beta_4_patch1:*:*:*:*:*:*
= 4.0
NVD php php
cpe:2.3:a:php:php:4.0:beta1:*:*:*:*:*:*
= 4.0
NVD php php
cpe:2.3:a:php:php:4.0:beta2:*:*:*:*:*:*
= 4.0
NVD php php
cpe:2.3:a:php:php:4.0:beta3:*:*:*:*:*:*
= 4.0
NVD php php
cpe:2.3:a:php:php:4.0:beta4:*:*:*:*:*:*
= 4.0
NVD php php
cpe:2.3:a:php:php:4.0.0:*:*:*:*:*:*:*
= 4.0.0
NVD php php
cpe:2.3:a:php:php:4.0.1:*:*:*:*:*:*:*
= 4.0.1
NVD php php
cpe:2.3:a:php:php:4.0.2:*:*:*:*:*:*:*
= 4.0.2
NVD php php
cpe:2.3:a:php:php:4.0.3:*:*:*:*:*:*:*
= 4.0.3
NVD php php
cpe:2.3:a:php:php:4.0.4:*:*:*:*:*:*:*
= 4.0.4
NVD php php
cpe:2.3:a:php:php:4.0.5:*:*:*:*:*:*:*
= 4.0.5
NVD php php
cpe:2.3:a:php:php:4.0.6:*:*:*:*:*:*:*
= 4.0.6
NVD php php
cpe:2.3:a:php:php:4.0.7:*:*:*:*:*:*:*
= 4.0.7
NVD php php
cpe:2.3:a:php:php:4.1.0:*:*:*:*:*:*:*
= 4.1.0
NVD php php
cpe:2.3:a:php:php:4.1.1:*:*:*:*:*:*:*
= 4.1.1
NVD php php
cpe:2.3:a:php:php:4.1.2:*:*:*:*:*:*:*
= 4.1.2
NVD php php
cpe:2.3:a:php:php:4.2.0:*:*:*:*:*:*:*
= 4.2.0
NVD php php
cpe:2.3:a:php:php:4.2.1:*:*:*:*:*:*:*
= 4.2.1
NVD php php
cpe:2.3:a:php:php:4.2.2:*:*:*:*:*:*:*
= 4.2.2
NVD php php
cpe:2.3:a:php:php:4.2.3:*:*:*:*:*:*:*
= 4.2.3
NVD php php
cpe:2.3:a:php:php:4.3.0:*:*:*:*:*:*:*
= 4.3.0
NVD php php
cpe:2.3:a:php:php:4.3.1:*:*:*:*:*:*:*
= 4.3.1
NVD php php
cpe:2.3:a:php:php:4.3.2:*:*:*:*:*:*:*
= 4.3.2
NVD php php
cpe:2.3:a:php:php:4.3.7:*:*:*:*:*:*:*
= 4.3.7
NVD php php
cpe:2.3:a:php:php:4.3.10:*:*:*:*:*:*:*
= 4.3.10
NVD php php
cpe:2.3:a:php:php:4.3.11:*:*:*:*:*:*:*
= 4.3.11
NVD php php
cpe:2.3:a:php:php:4.4.2:*:*:*:*:*:*:*
= 4.4.2
NVD php php
cpe:2.3:a:php:php:4.4.7:*:*:*:*:*:*:*
= 4.4.7
NVD php php
cpe:2.3:a:php:php:4.4.8:*:*:*:*:*:*:*
= 4.4.8
NVD php php
cpe:2.3:a:php:php:4.4.9:*:*:*:*:*:*:*
= 4.4.9
NVD php php
cpe:2.3:a:php:php:5.0.0:*:*:*:*:*:*:*
= 5.0.0
NVD php php
cpe:2.3:a:php:php:5.0.0:beta4:*:*:*:*:*:*
= 5.0.0
NVD php php
cpe:2.3:a:php:php:5.0.3:*:*:*:*:*:*:*
= 5.0.3
NVD php php
cpe:2.3:a:php:php:5.1.1:*:*:*:*:*:*:*
= 5.1.1
NVD php php
cpe:2.3:a:php:php:5.2.1:*:*:*:*:*:*:*
= 5.2.1
NVD php php
cpe:2.3:a:php:php:5.2.5:*:*:*:*:*:*:*
= 5.2.5
NVD php php
cpe:2.3:a:php:php:5.2.6:*:*:*:*:*:*:*
= 5.2.6
NVD php php
cpe:2.3:a:php:php:5.2.10:*:*:*:*:*:*:*
= 5.2.10
NVD php php
cpe:2.3:a:php:php:5.3.0:*:*:*:*:*:*:*
= 5.3.0

References

History

  • 25 Nov 2026 20:15 UTC · NVD: first stored (published 23 Nov 2009)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.