Bug 1330418 (CVE-2015-8866) - CVE-2015-8866 php: libxml_disable_entity_loader setting is shared between threads
Summary: CVE-2015-8866 php: libxml_disable_entity_loader setting is shared between thr...
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2015-8866
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1323121
TreeView+ depends on / blocked
 
Reported: 2016-04-26 08:11 UTC by Martin Prpič
Modified: 2019-09-29 13:48 UTC (History)
15 users (show)

Fixed In Version: php 5.5.34, php 5.6.20, php 7.0.5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-23 11:04:04 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:2750 0 normal SHIPPED_LIVE Moderate: rh-php56 security, bug fix, and enhancement update 2016-11-15 16:40:02 UTC

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


Note You need to log in before you can comment on or make changes to this bug.