Description

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.

INFO

Published Date :

Oct. 10, 2006, 4:06 a.m.

Last Modified :

Nov. 21, 2024, 12:18 a.m.

Remotely Exploitable :

No

Impact Score :

10.0

Exploitability Score :

1.9
Public PoC/Exploit Available at Github

CVE-2006-5178 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2006-5178 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Php php
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2006-5178.

URL Resource
http://lists.grok.org.uk/pipermail/full-disclosure/2006-October/049850.html Exploit
http://secunia.com/advisories/22235 Exploit Vendor Advisory
http://secunia.com/advisories/22424
http://securityreason.com/securityalert/1692
http://securitytracker.com/id?1016977 Exploit
http://www.hardened-php.net/advisory_082006.132.html Exploit Vendor Advisory
http://www.mandriva.com/security/advisories?name=MDKSA-2006:185
http://www.neosecurityteam.net/index.php?action=advisories&id=26
http://www.securityfocus.com/archive/1/447649/100/0/threaded
http://www.securityfocus.com/archive/1/448020/100/0/threaded
http://www.securityfocus.com/archive/1/448953/100/0/threaded
http://www.securityfocus.com/bid/20326 Exploit
http://www.turbolinux.com/security/2006/TLSA-2006-38.txt
http://www.vupen.com/english/advisories/2006/3901
https://exchange.xforce.ibmcloud.com/vulnerabilities/29340
http://lists.grok.org.uk/pipermail/full-disclosure/2006-October/049850.html Exploit
http://secunia.com/advisories/22235 Exploit Vendor Advisory
http://secunia.com/advisories/22424
http://securityreason.com/securityalert/1692
http://securitytracker.com/id?1016977 Exploit
http://www.hardened-php.net/advisory_082006.132.html Exploit Vendor Advisory
http://www.mandriva.com/security/advisories?name=MDKSA-2006:185
http://www.neosecurityteam.net/index.php?action=advisories&id=26
http://www.securityfocus.com/archive/1/447649/100/0/threaded
http://www.securityfocus.com/archive/1/448020/100/0/threaded
http://www.securityfocus.com/archive/1/448953/100/0/threaded
http://www.securityfocus.com/bid/20326 Exploit
http://www.turbolinux.com/security/2006/TLSA-2006-38.txt
http://www.vupen.com/english/advisories/2006/3901
https://exchange.xforce.ibmcloud.com/vulnerabilities/29340

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

When PHP's open_basedir restriction is set, PHP disables the realpath cache for security reasons. This may hurt your application performance. The realpath_turbo PHP extension re-enables the realpath cache. Warning: This could be a security problem in your environment! Please read the README for further information.

Shell C M4 PHP

Updated: 4 months, 1 week ago
45 stars 11 fork 11 watcher
Born at : June 1, 2014, 2:32 p.m. This repo has been linked 1 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2006-5178 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2006-5178 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CPE Deprecation Remap by [email protected]

    Oct. 30, 2018

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:php:php:5.1:*:*:*:*:*:*:* OR *cpe:2.3:a:php:php:5.1.0:*:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Oct. 30, 2018

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:php:php:4.3:*:*:*:*:*:*:* OR *cpe:2.3:a:php:php:4.3.0:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Oct. 17, 2018

    Action Type Old Value New Value
    Removed Reference http://www.securityfocus.com/archive/1/archive/1/447649/100/0/threaded [Exploit, Vendor Advisory]
    Removed Reference http://www.securityfocus.com/archive/1/archive/1/448953/100/0/threaded [No Types Assigned]
    Removed Reference http://www.securityfocus.com/archive/1/archive/1/448020/100/0/threaded [No Types Assigned]
    Added Reference http://www.securityfocus.com/archive/1/448953/100/0/threaded [No Types Assigned]
    Added Reference http://www.securityfocus.com/archive/1/448020/100/0/threaded [No Types Assigned]
    Added Reference http://www.securityfocus.com/archive/1/447649/100/0/threaded [No Types Assigned]
  • CVE Modified by [email protected]

    Jul. 20, 2017

    Action Type Old Value New Value
    Removed Reference http://xforce.iss.net/xforce/xfdb/29340 [Exploit]
    Added Reference https://exchange.xforce.ibmcloud.com/vulnerabilities/29340 [No Types Assigned]
  • Initial Analysis by [email protected]

    Oct. 10, 2006

    Action Type Old Value New Value
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2006-5178 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2006-5178 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.05 }} 0.00%

score

0.20929

percentile

CVSS2 - Vulnerability Scoring System
Access Vector
Access Complexity
Authentication
Confidentiality
Integrity
Availability