Race Condition Affecting php package, versions [,5.2.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (24th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-PHP-2335348
  • published12 Jan 2022
  • disclosed10 Oct 2006
  • creditUnknown

Introduced: 10 Oct 2006

CVE-2006-5178  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade php to version 5.2.0 or higher.

Overview

Affected versions of this package are vulnerable to Race Condition. 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.

References

CVSS Scores

version 3.1