Bug 1351193 (CVE-2016-5873) - CVE-2016-5873 php-pecl-http: Buffer overflow in HTTP url parsing functions
Summary: CVE-2016-5873 php-pecl-http: Buffer overflow in HTTP url parsing functions
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2016-5873
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1351194 1351195
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-29 12:24 UTC by Andrej Nemec
Modified: 2019-09-29 13:52 UTC (History)
2 users (show)

Fixed In Version: php_pecl_http 3.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-08 02:56:06 UTC
Embargoed:


Attachments (Terms of Use)

Description Andrej Nemec 2016-06-29 12:24:06 UTC
The url parsing functions of the PECL HTTP extension allow overflowing a buffer with data originating from an arbitrary HTTP request. Affected are the parse_*() functions in php_http_url.c that are called from within php_http_url_parse(). Other parsing functions were not tested but might be affected as well.

The problem occurs when non-printable characters contained in an URL are converted into percent-encoding. The state->offset used in these functions is incremented without sufficient checks regarding the size of the allocated state->buffer.

Upstream bug:

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

Upstream patch:

https://github.com/m6w6/ext-http/commit/3724cd76a28be1d6049b5537232e97ac567ae1f5

CVE assignment:

http://seclists.org/oss-sec/2016/q2/622

Comment 1 Andrej Nemec 2016-06-29 12:25:03 UTC
Created php-pecl-http tracking bugs for this issue:

Affects: fedora-all [bug 1351194]
Affects: epel-all [bug 1351195]

Comment 2 Product Security DevOps Team 2019-06-08 02:56:06 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.


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