Buffer overflow in GraphicsMagick - CVE-2016-8683
Published: February 15, 2017 / Updated: August 3, 2020
Vulnerability details
The vulnerability allows a local non-authenticated attacker to execute arbitrary code.
The ReadPCXImage function in coders/pcx.c in GraphicsMagick 1.3.25 allows remote attackers to have unspecified impact via a crafted image, which triggers a memory allocation failure and a "file truncation error for corrupt file."
Affected software
Amazon Linux AMI
Fedora
graphicsmagick (Alpine package)
GraphicsMagick
How to mitigate CVE-2016-8683
GraphicsMagick - addressed in versions 1.3.25-6.el6, 1.3.25-6.el7, 1.3.25-6.fc24, 1.3.25-6.fc25
External References
- http://hg.code.sf.net/p/graphicsmagick/code/rev/b9edafd479b9
- http://lists.opensuse.org/opensuse-updates/2016-10/msg00094.html
- http://www.debian.org/security/2016/dsa-3746
- http://www.openwall.com/lists/oss-security/2016/10/16/7
- http://www.securityfocus.com/bid/93600
- https://blogs.gentoo.org/ago/2016/09/15/graphicsmagick-memory-allocation-failure-in-readpcximage-pcx-c/
- https://bugzilla.redhat.com/show_bug.cgi?id=1385583