Bug 1660525 (CVE-2018-19935)

Summary: CVE-2018-19935 php: NULL pointer dereference in ext/imap/php_imap.c resulting in a denial of service
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: fedora, hhorak, jorton, rcollet
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php 5.6.39, php 7.0.33, php 7.3.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-27 03:21:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1660526, 1660864    
Bug Blocks: 1660528    

Description Andrej Nemec 2018-12-18 14:42:51 UTC
ext/imap/php_imap.c in PHP 5.x and 7.x before 7.3.0 allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) via an empty string in the message argument to the imap_mail function.

Upstream issue:

https://bugs.php.net/bug.php?id=77020

Upstream patch:

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

Comment 1 Andrej Nemec 2018-12-18 14:42:59 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1660526]

Comment 2 Tomas Hoger 2018-12-18 21:29:51 UTC
This can not affect PHP packages provided for Red Hat Enterprise Linux 7, either directly via Red Hat Enterprise Linux 7, or via Red Hat Software Collections for Red Hat Enterprise Linux 7, as those packages do not include the affected imap extension.

In Red Hat Enterprise Linux 6, the php-imap package providing the imap extension is only distributed via the unsupported Optional repository.  The php-imap packages included in the Red Hat Software Collections for Red Hat Enterprise Linux 6 depend on the libc-client packages, which is only distributed via the unsupported Optional repository.