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
Fixed in Fedora: php-5.6.20-1.fc23 php-5.6.20-1.fc24 php-5.6.20-1.fc22
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.
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
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