Permissions, Privileges, and Access Controls in PHP - CVE-2011-2202

 

Permissions, Privileges, and Access Controls in PHP - CVE-2011-2202

Published: June 17, 2011 / Updated: August 11, 2020


Vulnerability identifier: #VU44946
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2011-2202
CWE-ID: CWE-264
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to manipulate or delete data.

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


Affected software

PHP
Gentoo Linux
Slackware Linux
dev-lang/php
php

How to mitigate CVE-2011-2202

Install update from vendor's website.

dev-lang/php - update to 5.3.8
php - update to 5.3.8

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins