CVE-2015-8994

Severity

68%

Complexity

86%

Confidentiality

106%

An issue was discovered in PHP 5.x and 7.x, when the configuration uses apache2handler/mod_php or php-fpm with OpCache enabled. With 5.x after 5.6.28 or 7.x after 7.0.13, the issue is resolved in a non-default configuration with the opcache.validate_permission=1 setting. The vulnerability details are as follows. In PHP SAPIs where PHP interpreters share a common parent process, Zend OpCache creates a shared memory object owned by the common parent during initialization. Child PHP processes inherit the SHM descriptor, using it to cache and retrieve compiled script bytecode ("opcode" in PHP jargon). Cache keys vary depending on configuration, but filename is a central key component, and compiled opcode can generally be run if a script's filename is known or can be guessed. Many common shared-hosting configurations change EUID in child processes to enforce privilege separation among hosted users (for example using mod_ruid2 for the Apache HTTP Server, or php-fpm user settings). In these scenarios, the default Zend OpCache behavior defeats script file permissions by sharing a single SHM cache among all child PHP processes. PHP scripts often contain sensitive information: Think of CMS configurations where reading or running another user's script usually means gaining privileges to the CMS database.

An issue was discovered in PHP 5.x and 7.x, when the configuration uses apache2handler/mod_php or php-fpm with OpCache enabled. With 5.x after 5.6.28 or 7.x after 7.0.13, the issue is resolved in a non-default configuration with the opcache.validate_permission=1 setting. The vulnerability details are as follows. In PHP SAPIs where PHP interpreters share a common parent process, Zend OpCache creates a shared memory object owned by the common parent during initialization. Child PHP processes inherit the SHM descriptor, using it to cache and retrieve compiled script bytecode ("opcode" in PHP jargon). Cache keys vary depending on configuration, but filename is a central key component, and compiled opcode can generally be run if a script's filename is known or can be guessed. Many common shared-hosting configurations change EUID in child processes to enforce privilege separation among hosted users (for example using mod_ruid2 for the Apache HTTP Server, or php-fpm user settings). In these scenarios, the default Zend OpCache behavior defeats script file permissions by sharing a single SHM cache among all child PHP processes. PHP scripts often contain sensitive information: Think of CMS configurations where reading or running another user's script usually means gaining privileges to the CMS database.

CVSS 3.0 Base Score 7.5. CVSS Attack Vector: network. CVSS Attack Complexity: high. CVSS Vector: (CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H).

CVSS 2.0 Base Score 6.8. CVSS Attack Vector: network. CVSS Attack Complexity: medium. CVSS Vector: (AV:N/AC:M/Au:N/C:P/I:P/A:P).

Overview

Type

PHP

First reported 7 years ago

2017-03-02 06:59:00

Last updated 7 years ago

2017-03-16 14:40:00

Affected Software

PHP PHP 5.0.0

5.0.0

PHP PHP 5.0.0 Beta1

5.0.0

PHP PHP 5.0.0 Beta2

5.0.0

PHP PHP 5.0.0 Beta3

5.0.0

PHP PHP 5.0.0 Beta4

5.0.0

PHP PHP 5.0.0 RC1

5.0.0

PHP PHP 5.0.0 RC2

5.0.0

PHP PHP 5.0.0 RC3

5.0.0

PHP PHP 5.0.1

5.0.1

PHP PHP 5.0.2

5.0.2

PHP PHP 5.0.3

5.0.3

PHP PHP 5.0.4

5.0.4

PHP PHP 5.0.5

5.0.5

PHP PHP 5.1.0

5.1.0

PHP PHP 5.1.1

5.1.1

PHP PHP 5.1.2

5.1.2

PHP PHP 5.1.3

5.1.3

PHP 5.1.4

5.1.4

PHP PHP 5.1.5

5.1.5

PHP PHP 5.1.6

5.1.6

PHP 5.2.0

5.2.0

PHP 5.2.1

5.2.1

PHP 5.2.2

5.2.2

PHP 5.2.3

5.2.3

PHP 5.2.4

5.2.4

PHP 5.2.5

5.2.5

PHP 5.2.6

5.2.6

PHP 5.2.7

5.2.7

PHP 5.2.8

5.2.8

PHP 5.2.9

5.2.9

PHP 5.2.10

5.2.10

PHP 5.2.11

5.2.11

PHP 5.2.12

5.2.12

PHP 5.2.13

5.2.13

PHP 5.2.14

5.2.14

PHP 5.2.15

5.2.15

PHP 5.2.16

5.2.16

PHP 5.2.17

5.2.17

PHP 5.3.0

5.3.0

PHP 5.3.1

5.3.1

PHP 5.3.2

5.3.2

PHP 5.3.3

5.3.3

PHP 5.3.4

5.3.4

PHP 5.3.5

5.3.5

PHP 5.3.6

5.3.6

PHP 5.3.7

5.3.7

PHP 5.3.8

5.3.8

PHP 5.3.9

5.3.9

PHP 5.3.10

5.3.10

PHP 5.3.11

5.3.11

PHP 5.3.12

5.3.12

PHP 5.3.13

5.3.13

PHP 5.3.14

5.3.14

PHP 5.3.15

5.3.15

PHP 5.3.16

5.3.16

PHP 5.3.17

5.3.17

PHP 5.3.18

5.3.18

PHP 5.3.19

5.3.19

PHP 5.3.20

5.3.20

PHP 5.3.21

5.3.21

PHP 5.3.22

5.3.22

PHP 5.3.23

5.3.23

PHP 5.3.24

5.3.24

PHP 5.3.25

5.3.25

PHP 5.3.26

5.3.26

PHP 5.3.27

5.3.27

PHP 5.3.28

5.3.28

PHP 5.4.0

5.4.0

PHP 5.4.1

5.4.1

PHP 5.4.2

5.4.2

PHP 5.4.3

5.4.3

PHP 5.4.4

5.4.4

PHP 5.4.5

5.4.5

PHP 5.4.6

5.4.6

PHP 5.4.7

5.4.7

PHP 5.4.8

5.4.8

PHP 5.4.9

5.4.9

PHP 5.4.10

5.4.10

PHP 5.4.11

5.4.11

PHP 5.4.12

5.4.12

PHP 5.4.12 release candidate 1

5.4.12

PHP 5.4.12 release candidate 2

5.4.12

PHP 5.4.13

5.4.13

PHP 5.4.13 release candidate 1

5.4.13

PHP 5.4.14

5.4.14

PHP 5.4.14 release candidate 1

5.4.14

PHP 5.4.15 release candidate 1

5.4.15

PHP 5.4.16 release candidate 1

5.4.16

PHP 5.4.17

5.4.17

PHP 5.4.18

5.4.18

PHP 5.4.19

5.4.19

PHP 5.4.20

5.4.20

PHP 5.4.21

5.4.21

PHP 5.4.22

5.4.22

PHP 5.4.23

5.4.23

PHP 5.4.24

5.4.24

PHP 5.4.25

5.4.25

PHP 5.4.26

5.4.26

PHP 5.4.27

5.4.27

PHP 5.4.28

5.4.28

PHP 5.4.29

5.4.29

PHP 5.4.30

5.4.30

PHP PHP 5.4.34

5.4.34

PHP 5.4.35

5.4.35

PHP 5.4.37

5.4.37

PHP 5.4.38

5.4.38

PHP 5.4.39

5.4.39

PHP 5.4.41

5.4.41

PHP 5.4.42

5.4.42

PHP 5.4.43

5.4.43

PHP 5.4.44

5.4.44

PHP 5.4.45

5.4.45

PHP 5.5.0

5.5.0

PHP 5.5.0 alpha1

5.5.0

PHP 5.5.0 alpha2

5.5.0

PHP 5.5.0 alpha3

5.5.0

PHP 5.5.0 alpha4

5.5.0

PHP 5.5.0 alpha5

5.5.0

PHP 5.5.0 alpha6

5.5.0

PHP 5.5.0 beta1

5.5.0

PHP 5.5.0 beta2

5.5.0

PHP 5.5.0 beta3

5.5.0

PHP 5.5.0 beta4

5.5.0

PHP 5.5.0 release candidate 1

5.5.0

PHP 5.5.0 release candidate 2

5.5.0

PHP 5.5.1

5.5.1

PHP 5.5.2

5.5.2

PHP 5.5.3

5.5.3

PHP 5.5.4

5.5.4

PHP 5.5.5

5.5.5

PHP 5.5.6

5.5.6

PHP 5.5.7

5.5.7

PHP 5.5.8

5.5.8

PHP 5.5.9

5.5.9

PHP 5.5.10

5.5.10

PHP 5.5.11

5.5.11

PHP 5.5.12

5.5.12

PHP 5.5.13

5.5.13

PHP 5.5.14

5.5.14

PHP 5.5.18

5.5.18

PHP 5.5.19

5.5.19

PHP 5.5.20

5.5.20

PHP 5.5.21

5.5.21

PHP 5.5.22

5.5.22

PHP 5.5.23

5.5.23

PHP 5.5.24

5.5.24

PHP 5.5.25

5.5.25

PHP 5.5.26

5.5.26

PHP 5.5.27

5.5.27

PHP 5.5.28

5.5.28

PHP PHP 5.5.29

5.5.29

PHP 5.5.30

5.5.30

PHP 5.5.31

5.5.31

PHP 5.5.32

5.5.32

PHP 5.5.33

5.5.33

PHP 5.5.34

5.5.34

PHP 5.5.35

5.5.35

PHP 5.5.36

5.5.36

PHP 5.5.37

5.5.37

PHP 5.6.0 alpha1

5.6.0

PHP 5.6.0 alpha2

5.6.0

PHP 5.6.0 alpha3

5.6.0

PHP 5.6.0 alpha4

5.6.0

PHP 5.6.0 alpha5

5.6.0

PHP 5.6.0 beta1

5.6.0

PHP 5.6.0 beta2

5.6.0

PHP 5.6.0 beta3

5.6.0

PHP 5.6.0 beta4

5.6.0

PHP PHP 5.6.1

5.6.1

PHP 5.6.2

5.6.2

PHP 5.6.3

5.6.3

PHP 5.6.4

5.6.4

PHP 5.6.5

5.6.5

PHP 5.6.6

5.6.6

PHP 5.6.7

5.6.7

PHP PHP 5.6.8

5.6.8

PHP PHP 5.6.9

5.6.9

PHP PHP 5.6.10

5.6.10

PHP PHP 5.6.11

5.6.11

PHP PHP 5.6.12

5.6.12

PHP PHP 5.6.13

5.6.13

PHP 5.6.14

5.6.14

PHP 5.6.15

5.6.15

PHP 5.6.16

5.6.16

PHP 5.6.17

5.6.17

PHP 5.6.18

5.6.18

PHP 5.6.19

5.6.19

PHP 5.6.20

5.6.20

PHP 5.6.21

5.6.21

PHP 5.6.22

5.6.22

PHP 5.6.23

5.6.23

PHP 5.6.24

5.6.24

PHP 5.6.25

5.6.25

PHP 5.6.26

5.6.26

PHP 5.6.27

5.6.27

PHP 5.6.28

5.6.28

PHP 5.6.29

5.6.29

PHP 7.0.0

7.0.0

PHP 7.0.1

7.0.1

PHP 7.0.2

7.0.2

PHP 7.0.3

7.0.3

PHP 7.0.4

7.0.4

PHP 7.0.5

7.0.5

PHP 7.0.6

7.0.6

PHP 7.0.7

7.0.7

PHP 7.0.8

7.0.8

PHP 7.0.9

7.0.9

PHP 7.0.10

7.0.10

PHP 7.0.11

7.0.11

PHP 7.0.12

7.0.12

PHP 7.0.14

7.0.14

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.