CVE-2015-2348 File upload in n/a
Remote attackers can bypass file extension restrictions in PHP's move_uploaded_file function to create files with unexpected names via null byte injection.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2015-2348?
CVE-2015-2348 is a medium-severity vulnerability in Apple Mac Os X, published on 30 Mar 2015. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
The move_uploaded_file implementation in ext/standard/basic_functions.c in PHP before 5.4.39, 5.5.x before 5.5.23, and 5.6.x before 5.6.7 truncates a pathname upon encountering a \x00 character, which allows remote attackers to bypass intended extension restrictions and create files with unexpected names via a crafted second argument. NOTE: this vulnerability exists because of an incomplete fix for CVE-2006-7243.
Weakness: CWE-264
Which versions are affected by CVE-2015-2348?
It affects 9 products.
Products include Apple Mac Os X, Opensuse Opensuse, Php Php, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Hpc Node, Redhat Enterprise Linux Hpc Node Eus and 3 more.
How do I fix CVE-2015-2348?
Upgrade to a fixed version.
Is CVE-2015-2348 being exploited?
There is no known exploitation of CVE-2015-2348 in the wild and no public exploit code.
Other vulnerabilities in Apple Mac Os X
Sources
Also known as GHSA-x58x-2jp5-xfv7, UBUNTU-CVE-2015-2348.