CVE-2011-2202 Path traversal in n/a
Remote attackers can exploit a path traversal flaw in PHP's multipart form handling to create or overwrite arbitrary files, potentially leading to code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2011-2202?
CVE-2011-2202 is a medium-severity path traversal vulnerability in Php Php, published on 16 Jun 2011. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The rfc1867_post_handler function in main/rfc1867.c in PHP before 5.3.7 does not properly restrict filenames in multipart/form-data POST requests, which allows remote attackers to conduct absolute path traversal attacks, and possibly create or overwrite arbitrary files, via a crafted upload request, related to a "file path injection vulnerability."
Weakness: CWE-264
Which versions are affected by CVE-2011-2202?
It affects 1 product.
Products include Php Php.
How do I fix CVE-2011-2202?
Upgrade to a fixed version.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2011-2202 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2011-2202 exists.
Public exploit code: 1 Exploit-DB entry.
Other vulnerabilities in Php Php
Sources
Also known as GHSA-6qfq-jp45-c2jc.