Bug 1330418 (CVE-2015-8866)

Summary: CVE-2015-8866 php: libxml_disable_entity_loader setting is shared between threads
Product: [Other] Security Response Reporter: Martin Prpič <mprpic>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: abhgupta, anatoly, dmcphers, fedora, hhorak, jialiu, jokerman, jorton, kseifried, lmeyer, mmaslano, mmccomas, rcollet, tiwillia, webstack-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php 5.5.34, php 5.6.20, php 7.0.5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-23 11:04:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1323121    

Description Martin Prpič 2016-04-26 08:11:03 UTC
It was discovered that the PHP libxml_disable_entity_loader() setting was shared between threads. When running under PHP-FPM, this could result in XML external entity injection and entity expansion issues.

Upstream bug:

https://bugs.php.net/bug.php?id=64938

Upstream patch:

https://git.php.net/?p=php-src.git;a=commit;h=de31324c221c1791b26350ba106cc26bad23ace9

Comment 1 Martin Prpič 2016-04-26 08:12:34 UTC
Fixed in Fedora:

php-5.6.20-1.fc23
php-5.6.20-1.fc24
php-5.6.20-1.fc22

Comment 2 Remi Collet 2016-04-26 09:26:38 UTC
Notice: this bug is fixed since 5.5.22 / 5.6.6

Default value is entity_loader_disabled=0, which means external entity is enabled by default.

Because of this bug it can be wrongly set to disabled between various request.

So, I don't think this is a "security" issue.

Comment 3 errata-xmlrpc 2016-11-15 11:51:11 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS

Via RHSA-2016:2750 https://rhn.redhat.com/errata/RHSA-2016-2750.html

Comment 4 Remi Collet 2017-11-29 14:42:44 UTC
Notice that this issue was not fixed for FPM.

See https://bugs.php.net/bug.php?id=64938

The fix will be in upcoming 7.0.27 / 7.1.13 / 7.2.1