Bug 1004648 - (CVE-2013-4298) CVE-2013-4298 ImageMagick: One-byte heap-based buffer overflow when decoding certain GIF images
CVE-2013-4298 ImageMagick: One-byte heap-based buffer overflow when decoding ...
Status: CLOSED NOTABUG
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
high Severity high
: ---
: ---
Assigned To: Red Hat Product Security
impact=important,public=20130829,repo...
: Security
Depends On:
Blocks: 1002835
  Show dependency treegraph
 
Reported: 2013-09-05 02:58 EDT by Huzaifa S. Sidhpurwala
Modified: 2016-03-04 07:55 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-09-05 03:05:54 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Huzaifa S. Sidhpurwala 2013-09-05 02:58:56 EDT
A heap-based buffer overflow was reported in ImageMagick, when decoding certain GIF images, with specially crafted blocks. A remote attacker could provide a specially-crafted GIF image format file, that when processed by ImageMagick would lead to crash or, potentially, arbitrary code execution.

References:

https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1218248
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=721273
https://launchpadlibrarian.net/148688866/Fix-gif-comments.patch

Upstream patch:

http://trac.imagemagick.org/changeset/8770/ImageMagick/trunk/coders/gif.c
Comment 1 Huzaifa S. Sidhpurwala 2013-09-05 03:01:46 EDT
Looking at the source, it seems like this flaw was introduced by the following commit:

http://trac.imagemagick.org/changeset/8002/ImageMagick/trunk/coders/gif.c

versions of ImageMagick shipped with rhel-5,rhel-6,rhel-7 and fedora are not vulnerable.
Comment 2 Huzaifa S. Sidhpurwala 2013-09-05 03:04:33 EDT
Statement:

Not Vulnerable. This issue does not affect the version of ImageMagick as shipped with Red Hat Enterprise Linux 5 and 6.
Comment 3 Huzaifa S. Sidhpurwala 2013-09-05 03:05:54 EDT
This issue does not affect the version of ImageMagick as shipped with Fedora 18 and Fedora 19.

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