Bug 1456725 - multiple security issues on bundled oniguruma
Summary: multiple security issues on bundled oniguruma
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: php
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Remi Collet
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-30 08:49 UTC by Mamoru TASAKA
Modified: 2017-06-11 16:17 UTC (History)
2 users (show)

Fixed In Version: php-7.1.6-1.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-11 16:17:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Mamoru TASAKA 2017-05-30 08:49:36 UTC
Description of problem:

php-mbstring bundles oniguruma:
https://github.com/php/php-src/tree/master/ext/mbstring/oniguruma
so first of all, php-mbstring rpm must contain bundled(oniguruma) (seems = 6.1.2 on rawhide php 7.1.6 RC1):
https://fedoraproject.org/wiki/Bundled_Libraries?rd=Packaging:Bundled_Libraries

Recently multiple security issues were found on oniguruma:
CVE-2017-9226 https://github.com/kkos/oniguruma/issues/55
CVE-2017-9225 https://github.com/kkos/oniguruma/issues/56
CVE-2017-9224 https://github.com/kkos/oniguruma/issues/57
CVE-2017-9227 https://github.com/kkos/oniguruma/issues/58
CVE-2017-9229 https://github.com/kkos/oniguruma/issues/59
CVE-2017-9228 https://github.com/kkos/oniguruma/issues/60
, all of them are fixed in 6.3.0:
https://github.com/kkos/oniguruma/releases

Looks like oniguruma bundled in rawhide php is affected by all of them.

Note that F-25 ships oniguruma 6.1.3, and today I've applied fixes for the above :
http://pkgs.fedoraproject.org/cgit/rpms/oniguruma.git/commit/?h=f25&id=31ddb4bfb4451f89060d47e937f43ab6afda07aa

Version-Release number of selected component (if applicable):
php-7.1.6~RC1-1.fc27
and php on older branches may also be affected.

Additional info:
It is preferable that php-mbstring is linked against system oniguruma.

Comment 1 Remi Collet 2017-05-30 12:22:08 UTC
All PHP versions 5.6, 7.0, 7.1 use bundled version 5.9.6

PHP version 7.2 (master) used bundled version 6.1.2, 
which I have updated to 6.3.0

Comment 2 Mamoru TASAKA 2017-05-30 13:02:09 UTC
oniguruma 5.9.6 is affected by CVE-2017-922{4,6,7,8,9} (CVE-2017-9225 is not affected as far as I have inspected). 

ref:
http://pkgs.fedoraproject.org/cgit/rpms/oniguruma.git/commit/?h=f24&id=033caa9c1864f37b6dafa893280ffda7b39d5490

Comment 4 Fedora Update System 2017-06-07 10:01:32 UTC
php-7.1.6-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-e097be7a47

Comment 5 Remi Collet 2017-06-07 10:05:12 UTC
Fixed upstream (will be in 7.0.21 and 7.1.7)
PHP 7.2.0alpha1 use bundled onigurama 6.3

Fedora 27 will use system library (when updated to 7.2, later, probably  this summer), have bundled(oniguruma) for now
Fedora 26 (7.1.6-1) have upstream patches
Fedora 25 (7.0.20-1) have upstream patches

Comment 6 Fedora Update System 2017-06-07 23:11:17 UTC
php-7.1.6-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-e097be7a47

Comment 7 Fedora Update System 2017-06-11 16:17:17 UTC
php-7.1.6-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.


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