Bug 1187225 (CVE-2015-8382) - CVE-2015-8382 php: Regular Expression Uninitialized Pointer Information Disclosure Vulnerability (ZDI-CAN-2547)
Summary: CVE-2015-8382 php: Regular Expression Uninitialized Pointer Information Discl...
Alias: CVE-2015-8382
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1161587 1249905 1249906
Blocks: 1161143
TreeView+ depends on / blocked
Reported: 2015-01-29 15:14 UTC by Vasyl Kaigorodov
Modified: 2019-09-29 13:27 UTC (History)
21 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-08-04 06:31:32 UTC

Attachments (Terms of Use)

Description Vasyl Kaigorodov 2015-01-29 15:14:32 UTC
It was reported that pcre_exec in PHP pcre extension partially initialize a buffer when an invalid regex is processed, which can information disclosure.

A mitigation fix have been applied in PHP 5.4+

Upstream bug report (with a patch proposal):

Comment 2 Huzaifa S. Sidhpurwala 2015-08-04 05:39:16 UTC
The upstream PCRE bug contains detailed description of the issue along with a possible way to reproduce this way:


From the analysis it seems that the maximum impact of this flaw is memory disclosure, which could be an issue specially when pcre is used in web browsers or other similar products, specially when the disclosed memory is recoverable by the attackers.

This patch has been committed upstream via:


And is a part of upstream release pcre-8.37

CVE Request:

Comment 3 Huzaifa S. Sidhpurwala 2015-08-04 06:25:19 UTC

This flaw is related to bad regex code and does not require malicious user-input to trigger.

Comment 4 Huzaifa S. Sidhpurwala 2015-08-04 06:28:00 UTC
Created mingw-pcre tracking bugs for this issue:

Affects: fedora-all [bug 1249905]

Comment 5 Huzaifa S. Sidhpurwala 2015-08-04 06:28:34 UTC
Created pcre tracking bugs for this issue:

Affects: fedora-21 [bug 1249906]

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