CVE-2015-3412 Path traversal in n/a

Medium 5.3 Published Updated

Remote attackers can read arbitrary files by exploiting null byte injection in PHP's stream resolution, bypassing extension restrictions.

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

What is CVE-2015-3412?

CVE-2015-3412 is a medium-severity path traversal vulnerability in Php Php, published on 16 May 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

PHP before 5.4.40, 5.5.x before 5.5.24, and 5.6.x before 5.6.8 does not ensure that pathnames lack %00 sequences, which might allow remote attackers to read arbitrary files via crafted input to an application that calls the stream_resolve_include_path function in ext/standard/streamsfuncs.c, as demonstrated by a filename\0.extension attack that bypasses an intended configuration in which client users may read files with only one specific extension.

Weakness: CWE-254, CWE-200

Which versions are affected by CVE-2015-3412?

It affects 8 products.

Products include Php Php, Redhat Enterprise Linux, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Hpc Node, Redhat Enterprise Linux Hpc Node Eus, Redhat Enterprise Linux Server and 2 more.

How do I fix CVE-2015-3412?

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-2015-3412 being exploited?

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

All Php Php vulnerabilities

Sources

Also known as GHSA-25q8-485x-mwx9, UBUNTU-CVE-2015-3412.

Is CVE-2015-3412 in your software?

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

Check your SBOMs for free