Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1380450 (CVE-2016-7568) - CVE-2016-7568 gd, php: Integer overflow in gdImageWebpCtx
Summary: CVE-2016-7568 gd, php: Integer overflow in gdImageWebpCtx
Alias: CVE-2016-7568
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1380452 1380453
TreeView+ depends on / blocked
Reported: 2016-09-29 16:00 UTC by Adam Mariš
Modified: 2019-09-29 13:57 UTC (History)
18 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
An integer overflow flaw, leading to a heap-based buffer overflow, was found in gd. A specially crafted image, when converted to webp, could cause the application to crash or potentially execute arbitrary code.
Clone Of:
Last Closed: 2016-09-30 04:08:01 UTC

Attachments (Terms of Use)

Description Adam Mariš 2016-09-29 16:00:19 UTC
An integer overflow vulnerability was found in function gdImageWebpCtx of file gd_webp.c in libgd. It could lead to heap buffer overflow. Both PHP 7.0.10 and libgd 2.2.3 were affected.

PHP bug:

PHP patch:

libgd bug:

libgd patch:

CVE assignment:

Comment 1 Adam Mariš 2016-09-29 16:04:26 UTC
Created gd tracking bugs for this issue:

Affects: fedora-all [bug 1380453]

Comment 2 Adam Mariš 2016-09-29 16:04:37 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1380452]

Comment 3 Doran Moppert 2016-09-30 03:44:40 UTC
This vulnerability is only present if gd is build against libwebp.  Fedora does so, but no Red Hat Enterprise Linux versions of gd do.

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