Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Vulnerabilities

PHP 5 Updates Fix Several Vulnerabilities

Several security vulnerabilities affecting PHP were addressed last week with the release of versions 5.6.5, 5.5.21 and 5.4.37.

One of the flaws, an out-of-bounds read (CVE-2014-9427) that crashes php-cgi, was reported by Brian Carpenter.

Several security vulnerabilities affecting PHP were addressed last week with the release of versions 5.6.5, 5.5.21 and 5.4.37.

One of the flaws, an out-of-bounds read (CVE-2014-9427) that crashes php-cgi, was reported by Brian Carpenter.

“sapi/cgi/cgi_main.c in the CGI component in PHP through 5.4.36, 5.5.x through 5.5.20, and 5.6.x through 5.6.4, when mmap is used to read a .php file, does not properly consider the mapping’s length during processing of an invalid file that begins with a # character and lacks a newline character, which causes an out-of-bounds read,” reads a description of the issue in the National Vulnerability Database.

The NVD advisory notes that a remote attacker could exploit the vulnerability to “obtain sensitive information from php-cgi process memory by leveraging the ability to upload a .php file or trigger unexpected code execution if a valid PHP script is present in memory locations adjacent to the mapping.”

Another issue fixed in PHP 5.6.5, 5.5.21 and 5.4.37 is a use-after-free vulnerability in the unserialize() function that can be exploited by remote attackers to execute arbitrary code via a specially crafted unserialize call.

This security hole was reported in early December by German researcher Stefan Esser. The expert also provided a patch for the vulnerability (CVE-2014-8142). However, PHP developers made some changes to the patch submitted by Esser before integrating it in an update released in mid-December.

The researcher later discovered that the changes made the patch incomplete. The issue, to which a second CVE identifier has been assigned (CVE-2015-0231), has been properly addressed with the release of PHP 5.6.5, 5.5.21 and 5.4.37.

The latest version of PHP also fixes CVE-2015-0232, a security bug reported by Alex Eubanks.

Advertisement. Scroll to continue reading.

According to SecurityTracker, “a user can create a JPEG file with a specially crafted EXIF tag that, when processed by the PHP application, will free an uninitialized pointer and potentially execute arbitrary code.”

PHP users are advised to install the latest versions as soon as possible. Additional details on the improvements and fixes in PHP 5.6.5, 5.5.21 and 5.4.37 are available in the changelog.

Written By

Eduard Kovacs (@EduardKovacs) is a managing editor at SecurityWeek. He worked as a high school IT teacher for two years before starting a career in journalism as Softpedia’s security news reporter. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.

Click to comment

Trending

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Learn how the LOtL threat landscape has evolved, why traditional endpoint hardening methods fall short, and how adaptive, user-aware approaches can reduce risk.

Watch Now

Join the summit to explore critical threats to public cloud infrastructure, APIs, and identity systems through discussions, case studies, and insights into emerging technologies like AI and LLMs.

Register

People on the Move

Jessica Newman has joined Sophos as General Manager of Global Cyber Insurance.

Breach and attack simulation solutions provider AttackIQ has appointed Pete Luban as Field Chief Information Security Officer.

Matthew Cowell has assumed the role of VP of Strategic Alliances at Nozomi Networks. He previously served in the same role at Dragos.

More People On The Move

Expert Insights

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest cybersecurity news, threats, and expert insights. Unsubscribe at any time.