Bug 1702246 (CVE-2019-11035) - CVE-2019-11035 php: Heap buffer overflow in function exif_iif_add_value()
Summary: CVE-2019-11035 php: Heap buffer overflow in function exif_iif_add_value()
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2019-11035
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1705720 1702259 1705719 1705721 1705722 1705733
Blocks: 1702258
TreeView+ depends on / blocked
 
Reported: 2019-04-23 10:14 UTC by Dhananjay Arunesh
Modified: 2019-11-14 11:44 UTC (History)
6 users (show)

Fixed In Version: php 7.1.28, php 7.2.17, php 7.3.4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-19 08:47:59 UTC


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:3727 None None None 2019-11-06 10:12:41 UTC
Red Hat Product Errata RHSA-2019:2519 None None None 2019-08-19 08:42:56 UTC
Red Hat Product Errata RHSA-2019:3299 None None None 2019-11-01 13:00:57 UTC

Description Dhananjay Arunesh 2019-04-23 10:14:13 UTC
When processing certain files, PHP EXIF extension in versions 7.1.x below 7.1.28, 7.2.x below 7.2.17 and 7.3.x below 7.3.4 can be caused to read past allocated buffer in exif_iif_add_value function. This may lead to information disclosure or crash.

Reference:
https://bugs.php.net/bug.php?id=77831

Upstream Commit:
http://git.php.net/?p=php-src.git;a=commit;h=887a7b571407f7a49a5e7cf1e612d21ef83fedb4
http://git.php.net/?p=php-src.git;a=commit;h=330f1716df49c0d3474c18b6dcd370a9dcf57422

Comment 1 Dhananjay Arunesh 2019-04-23 10:45:45 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1702259]

Comment 3 Marco Benatto 2019-05-02 19:35:46 UTC
Upstream patch for this issue:

http://git.php.net/?p=php-src.git;a=commit;h=887a7b571407f7a49a5e7cf1e612d21ef83fedb4

Comment 7 Marco Benatto 2019-05-03 14:06:52 UTC
Statement:

This issue affects the versions of php as shipped with Red Hat Enterprise Linux 5, 6 and 7 . Red Hat Product Security has rated this issue as having a security impact of Low. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/. 

Red Hat Enterprise Linux 6 is now in Maintenance Support 2 Phase of the support and maintenance life cycle. This has been rated as having a
security impact of Low, and is not currently planned to be addressed in future updates. For additional information, refer to the
Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.

Red Hat Enterprise Linux 5 is now in Extended Life Phase of the support and maintenance life cycle. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.

This issue did affect the versions of php as shipped with Red Hat Software Collections.

Comment 8 Marco Benatto 2019-05-03 14:23:53 UTC
Currently EXIF module from php package doesn't properly validate de number of components read from EXIF header.
A well crafted image with malicious EXIF header may lead to a heap buffer overflow and improper read of previous
allocated data in function exif_iif_add_value()

Comment 9 errata-xmlrpc 2019-08-19 08:42:55 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.4 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS

Via RHSA-2019:2519 https://access.redhat.com/errata/RHSA-2019:2519

Comment 10 Product Security DevOps Team 2019-08-19 08:47:59 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2019-11035

Comment 11 errata-xmlrpc 2019-11-01 13:00:56 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.5 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS

Via RHSA-2019:3299 https://access.redhat.com/errata/RHSA-2019:3299


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