Access Restriction Bypass Affecting php package, versions [,5.2.3)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
1.85% (89th 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 IDSNYK-UNMANAGED-PHP-2335584
  • published12 Jan 2022
  • disclosed4 Jun 2007
  • creditUnknown

Introduced: 4 Jun 2007

CVE-2007-3007  (opens in a new tab)
CWE-264  (opens in a new tab)

How to fix?

Upgrade php to version 5.2.3 or higher.

Overview

Affected versions of this package are vulnerable to Access Restriction Bypass. PHP 5 before 5.2.3 does not enforce the open_basedir or safe_mode restriction in certain cases, which allows context-dependent attackers to determine the existence of arbitrary files by checking if the readfile function returns a string. NOTE: this issue might also involve the realpath function.

References

CVSS Scores

version 3.1