CIS Logo
tagline: Confidence in the Connected World
HomeResourcesAdvisoriesMultiple Vulnerabilities in PHP Could Allow for Arbitrary Code Execution

Multiple Vulnerabilities in PHP Could Allow for Arbitrary Code Execution

MS-ISAC ADVISORY NUMBER:

2017-116

DATE(S) ISSUED:

11/29/2017

OVERVIEW:

Multiple vulnerabilities have been discovered in PHP, the most severe of which could allow an attacker to execute arbitrary code. PHP is a programming language originally designed for use in web-based applications with HTML content. PHP supports a wide variety of platforms and is used by numerous web-based software applications. Successfully exploiting the most severe of these vulnerabilities could allow for arbitrary code execution in the context of the affected application. Depending on the privileges associated with the application, an attacker could install programs; view, change, or delete data; or create new accounts with full user rights. Failed exploitation could result in a denial-of-service condition.

THREAT INTELLIGENCE:

There are currently no reports of these vulnerabilities being exploited in the wild.

SYSTEMS AFFECTED:

  • PHP 7.1 prior to 7.1.12
  • PHP 7.0 prior to 7.0.26

RISK:

Government:
  • Large and medium government entities: HIGH
  • Small government entities: HIGH
Businesses:
  • Large and medium business entities: HIGH
  • Small business entities: HIGH
Home Users:
LOW

TECHNICAL SUMMARY:

Multiple vulnerabilities have been discovered in PHP, the most severe of which could allow an attacker to execute arbitrary code. Details of these vulnerabilities are as below:

Version 7.1.12

  • Bug #53070 (enchant_broker_get_path crashes if no path is set).
  • Bug #65148 (imagerotate may alter image dimensions).
  • Bug #75287 (Builtin webserver crash after chdir in a shutdown function).
  • Bug #75299 (Wrong reflection on inflateinit and inflateadd).
  • Bug #75301 (Exif extension has built in revision version).
  • Bug #75307 (Wrong reflection for opensslopen function).
  • Bug #75317 (UConverter::setDestinationEncoding changes source instead of destination).
  • Bug #75363 (opensslx509parse leaks memory).
  • Bug #75365 (Enchant still reports version 1.1.0).
  • Bug #75368 (mmap/munmap trashing on unlucky allocations).
  • Bug #75373 (Warning Internal error: wrong size calculation).
  • Bug #75419 (Default link incorrectly cleared/linked by pgclose()).
  • Bug #75420 (Crash when modifing property name in isset for BPVARIS).
  • Bug #75434 (Wrong reflection for mysqlifetchall function).
  • Bug #75437 (Wrong reflection on imagewebp).
  • Bug #75453 (Incorrect reflection for ibase[p]connect).
  • Bug #75464 (Wrong reflection on SoapClient::setSoapHeaders).
  • valgrind issue fixed.***

Version 7.0.26

  • Bug #53070 (enchantbrokergetpath crashes if no path is set).
  • Bug #65148 (imagerotate may alter image dimensions).
  • Bug #75287 (Builtin webserver crash after chdir in a shutdown function).
  • Bug #75299 (Wrong reflection on inflateinit and inflateadd).
  • Bug #75301 (Exif extension has built in revision version).
  • Bug #75307 (Wrong reflection for opensslopen function).
  • Bug #75317 (UConverter::setDestinationEncoding changes source instead of destination).
  • Bug #75363 (opensslx509parse leaks memory).
  • Bug #75365 (Enchant still reports version 1.1.0).
  • Bug #75368 (mmap/munmap trashing on unlucky allocations).
  • Bug #75373 (Warning Internal error: wrong size calculation).
  • Bug #75419 (Default link incorrectly cleared/linked by pgclose()).
  • Bug #75420 (Crash when modifing property name in isset for BPVARIS).
  • Bug #75434 (Wrong reflection for mysqlifetchall function).
  • Bug #75437 (Wrong reflection on imagewebp).
  • Bug #75453 (Incorrect reflection for ibase[p]connect).
  • Bug #75464 (Wrong reflection on SoapClient::setSoapHeaders).
  • valgrind issue fixed.***

Successfully exploiting the most severe of these vulnerabilities could allow for arbitrary code execution in the context of the affected application. Depending on the privileges associated with the application, an attacker could install programs; view, change, or delete data; or create new accounts with full user rights. Failed exploitation could result in a denial-of-service condition.

RECOMENDATIONS:

We recommend the following actions be taken:

  • Upgrade to the latest version of PHP immediately, after appropriate testing.
  • Verify no unauthorized system modifications have occurred on system before applying patch.
  • Apply the principle of Least Privilege to all systems and services.
  • Remind users not to visit websites or follow links provided by unknown or untrusted sources.

REFERENCES:

Get Email Updates When Cyber Threats Like This Arise

Arrow Subscribe to Advisories

Protect Your Systems from Cyber Threats Like This

CIS Controls That Help Avoid This Issue Arrow CIS Control 3: Continuous Vulnerability Assessment and Remediation Arrow CIS Control 18: Application Software Security