Vulnerability in Php

CVE-2006-5178

Race condition in the symlink function in PHP 5.1.6 and earlier allows local users to bypass the open_basedir restriction by using a combination of symlink, mkdir, and unlink functions to change the file path after the open_basedir check and before the file is opened by the underlying system, as demonstrated by symlinking a symlink into a subdirectory, to point to a parent directory via .. (dot dot) sequences, and then unlinking the resulting symlink.

Vulnerability class: Race Condition

EPSS: 0.007 (48.6th percentile) — read the EPSS interpretation.

Affected products

  • Php — versions 4.0, 4.0.1, 4.0.2
  • N/a — versions n/a

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2006-5178?
CVE-2006-5178 is a vulnerability in Php, classified under Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition). Published 2006-10-10.
Is CVE-2006-5178 known to be exploited?
2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.