Bug 1223422 (CVE-2015-4026) - CVE-2015-4026 php: pcntl_exec() accepts paths with NUL character
Summary: CVE-2015-4026 php: pcntl_exec() accepts paths with NUL character
Status: CLOSED ERRATA
Alias: CVE-2015-4026
Product: Security Response
Classification: Other
Component: vulnerability   
(Show other bugs)
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard: impact=low,public=20150514,reported=2...
Keywords: Security
Depends On: 1223447 1228052 1228053 1228054 1228055 1228056 1228057 1228058 1228059 1228060 1228061
Blocks: 1222994
TreeView+ depends on / blocked
 
Reported: 2015-05-20 13:29 UTC by Vasyl Kaigorodov
Modified: 2015-11-25 10:35 UTC (History)
16 users (show)

Fixed In Version: php 5.4.41, php 5.5.25, php 5.6.9
Doc Type: Bug Fix
Doc Text:
It was found that certain PHP functions did not properly handle file names containing a NULL character. A remote attacker could possibly use this flaw to make a PHP script access unexpected files and bypass intended file system access restrictions.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-07-09 21:50:11 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1135 normal SHIPPED_LIVE Important: php security and bug fix update 2015-06-23 12:11:40 UTC
Red Hat Product Errata RHSA-2015:1186 normal SHIPPED_LIVE Important: php55-php security update 2015-06-25 12:31:54 UTC
Red Hat Product Errata RHSA-2015:1187 normal SHIPPED_LIVE Important: rh-php56-php security update 2015-06-25 12:43:17 UTC
Red Hat Product Errata RHSA-2015:1218 normal SHIPPED_LIVE Moderate: php security update 2015-07-09 21:01:41 UTC
Red Hat Product Errata RHSA-2015:1219 normal SHIPPED_LIVE Moderate: php54-php security update 2015-07-09 22:53:28 UTC

Description Vasyl Kaigorodov 2015-05-20 13:29:21 UTC
It was reported that pcntl_exec() function does not check path validity, which may lead to information disclosure, or denial of service attack under certain circumstances.

Upstream report:
https://bugs.php.net/bug.php?id=68598

Upstream fix:
http://git.php.net/?p=php-src.git;a=commitdiff;h=be9b2a95adb504abd5acdc092d770444ad6f6854

CVE request:
http://seclists.org/oss-sec/2015/q2/479

Comment 1 Vasyl Kaigorodov 2015-05-20 14:12:57 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1223447]

Comment 2 Fedora Update System 2015-05-26 03:40:37 UTC
php-5.6.9-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 3 Tomas Hoger 2015-05-26 21:47:05 UTC
This is another CVE-2006-7243 (see bug 662707) like issue.  Fixed as part of the commit that addressed CVE-2015-4025 (bug 1223408 comment 2).

In case of pcntl_exec(), function argument is a command to be executed, hence is unlikely to be from an untrusted source.  Considering this a Low impact issue.

Comment 6 Fedora Update System 2015-05-27 16:13:12 UTC
php-5.6.9-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2015-05-27 16:23:30 UTC
php-5.5.25-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 errata-xmlrpc 2015-06-23 08:13:31 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2015:1135 https://rhn.redhat.com/errata/RHSA-2015-1135.html

Comment 13 errata-xmlrpc 2015-06-25 08:32:39 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS

Via RHSA-2015:1186 https://rhn.redhat.com/errata/RHSA-2015-1186.html

Comment 14 errata-xmlrpc 2015-06-25 08:43:59 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS

Via RHSA-2015:1187 https://rhn.redhat.com/errata/RHSA-2015-1187.html

Comment 15 errata-xmlrpc 2015-07-09 17:07:58 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2015:1218 https://rhn.redhat.com/errata/RHSA-2015-1218.html

Comment 16 errata-xmlrpc 2015-07-09 18:53:52 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS

Via RHSA-2015:1219 https://rhn.redhat.com/errata/RHSA-2015-1219.html


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