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


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Mature
EPSS
2.18% (90th 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-2335634
  • published12 Jan 2022
  • disclosed29 Nov 2009
  • creditUnknown

Introduced: 29 Nov 2009

CVE-2009-4018  (opens in a new tab)
CWE-264  (opens in a new tab)

How to fix?

Upgrade php to version 5.2.11 or higher.

Overview

Affected versions of this package are vulnerable to Access Restriction Bypass. The proc_open function in ext/standard/proc_open.c in PHP before 5.2.11 and 5.3.x before 5.3.1 does not enforce the (1) safe_mode_allowed_env_vars and (2) safe_mode_protected_env_vars directives, which allows context-dependent attackers to execute programs with an arbitrary environment via the env parameter, as demonstrated by a crafted value of the LD_LIBRARY_PATH environment variable.

CVSS Scores

version 3.1