CVE-2009-3557 Security feature bypass in n/a

Medium 5.0 Published Updated

Attackers can bypass PHP safe_mode restrictions to create files in writable directories via tempnam arguments, requiring safe_mode to be enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2009-3557?

CVE-2009-3557 is a medium-severity vulnerability in Php Php, published on 23 Nov 2009. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-264

Which versions are affected by CVE-2009-3557?

It affects 1 product.

Products include Php Php.

How do I fix CVE-2009-3557?

No fix has been published for CVE-2009-3557 yet. Limit exposure of the affected software until one is available.

Is CVE-2009-3557 being exploited?

There is no known exploitation of CVE-2009-3557 in the wild and no public exploit code.

All Php Php vulnerabilities

Sources

Also known as GHSA-6p2r-x9m6-65cq.

Is CVE-2009-3557 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free