CVE-2006-7243
PHP before 5.3.4 accepts the \0 character in a pathname, which might allow context-dependent attackers to bypass intended access…
Description
PHP before 5.3.4 accepts the \0 character in a pathname, which might allow context-dependent attackers to bypass intended access restrictions by placing a safe file extension after this character, as demonstrated by .php\0.jpg at the end of the argument to the file_exists function.
Exploitation
EPSS 5.36%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 93.4% of all scored CVEs. Scores of 26 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2006-7243 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2006-7243RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2006-7243Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2006-7243
trivy image --scanners vuln IMAGE | grep CVE-2006-7243
PatchBrief makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Install the agent.
References
Advisories
- http://svn.php.net/viewvc?view=revision&revision=305412 svn.php.net
- HPSBOV02763 marc.info · vendor advisory
- http://www.php.net/releases/5_3_4.php php.net
- http://svn.php.net/viewvc?view=revision&revision=305507 svn.php.net
- 55078 secunia.com · third party advisory
- APPLE-SA-2011-03-21-1 lists.apple.com · vendor advisory
- http://bugs.php.net/39863 bugs.php.net
- http://www.php.net/ChangeLog-5.php php.net
- RHSA-2013:1307 rhn.redhat.com · vendor advisory
- MDVSA-2010:254 mandriva.com · vendor advisory
- RHSA-2013:1615 rhn.redhat.com · vendor advisory
- http://www.php.net/archive/2010.php#id2010-12-10-1 php.net
6 more
- SSRT100728 marc.info · vendor advisory
- RHSA-2014:0311 rhn.redhat.com · vendor advisory
- FEDORA-2015-8383 lists.fedoraproject.org · vendor advisory
- FEDORA-2015-8281 lists.fedoraproject.org · vendor advisory
- FEDORA-2015-8370 lists.fedoraproject.org · vendor advisory
- http://support.apple.com/kb/HT4581 support.apple.com
Other references
- 44951 securityfocus.com · vdb entry
- [oss-security] 20101118 Re: NULL byte poisoning fix in php 5.3.4+ openwall.com · mailing list
- [oss-security] 20101209 Re: Re: NULL byte poisoning fix in php 5.3.4+ openwall.com · mailing list
- http://www.madirish.net/?article=436 madirish.net
- [oss-security] 20101209 Re: Re: NULL byte poisoning fix in php 5.3.4+ openwall.com · mailing list
- [oss-security] 20101118 NULL byte poisoning fix in php 5.3.4+ openwall.com · mailing list
- oval:org.mitre.oval:def:12569 oval.cisecurity.org · vdb entry, signature
- [oss-security] 20101209 Re: Re: NULL byte poisoning fix in php 5.3.4+ openwall.com · mailing list
Source: the record CVE-2006-7243 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.