CVE-2012-3438
published 2012-08-07CVE-2012-3438: The Magick_png_malloc function in coders/png.c in GraphicsMagick 6.7.8-6 does not use the proper variable type for the allocation size, which might allow…
PriorityP416medium4.3CVSS 2.0
AVNACMAuNCNINAP
EPSS
2.47%
82.8th percentile
The Magick_png_malloc function in coders/png.c in GraphicsMagick 6.7.8-6 does not use the proper variable type for the allocation size, which might allow remote attackers to cause a denial of service (crash) via a crafted PNG file that triggers incorrect memory allocation.
Affected
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | graphicsmagick | < graphicsmagick 1.3.16-1.1 (bookworm) | graphicsmagick 1.3.16-1.1 (bookworm) |
| graphicsmagick | graphicsmagick | — | — |
| graphicsmagick | graphicsmagick | >= 0 < 1.3.16-1.1 | 1.3.16-1.1 |
| graphicsmagick | graphicsmagick | >= 0 < 1.3.16-1.1 | 1.3.16-1.1 |
| graphicsmagick | graphicsmagick | >= 0 < 1.3.16-1.1 | 1.3.16-1.1 |
| graphicsmagick | graphicsmagick | >= 0 < 1.3.16-1.1 | 1.3.16-1.1 |
CVSS provenance
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:N/A:P
osv4.3MEDIUM
vendor_debian4.3LOW
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-9cj3-p33g-x9hg: The Magick_png_malloc function in coders/png
ghsa_unreviewed·2022-05-17
CVE-2012-3438 [MEDIUM] CWE-119 GHSA-9cj3-p33g-x9hg: The Magick_png_malloc function in coders/png
The Magick_png_malloc function in coders/png.c in GraphicsMagick 6.7.8-6 does not use the proper variable type for the allocation size, which might allow remote attackers to cause a denial of service (crash) via a crafted PNG file that triggers incorrect memory allocation.
OSV
CVE-2012-3438: The Magick_png_malloc function in coders/png
osv·2012-08-07·CVSS 4.3
CVE-2012-3438 [MEDIUM] CVE-2012-3438: The Magick_png_malloc function in coders/png
The Magick_png_malloc function in coders/png.c in GraphicsMagick 6.7.8-6 does not use the proper variable type for the allocation size, which might allow remote attackers to cause a denial of service (crash) via a crafted PNG file that triggers incorrect memory allocation.
Debian
CVE-2012-3438: graphicsmagick - The Magick_png_malloc function in coders/png.c in GraphicsMagick 6.7.8-6 does no...
vendor_debian·2012·CVSS 4.3
CVE-2012-3438 [MEDIUM] CVE-2012-3438: graphicsmagick - The Magick_png_malloc function in coders/png.c in GraphicsMagick 6.7.8-6 does no...
The Magick_png_malloc function in coders/png.c in GraphicsMagick 6.7.8-6 does not use the proper variable type for the allocation size, which might allow remote attackers to cause a denial of service (crash) via a crafted PNG file that triggers incorrect memory allocation.
Scope: local
bookworm: resolved (fixed in 1.3.16-1.1)
bullseye: resolved (fixed in 1.3.16-1.1)
forky: resolved (fixed in 1.3.16-1.1)
sid: resolved (fixed in 1.3.16-1.1)
trixie: resolved (fixed in 1.3.16-1.1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2012-3438 GraphicsMagick: png_IM_malloc() size argument [fedora-all]
bugzilla·2012-07-28·CVSS 4.3
CVE-2012-3438 [MEDIUM] CVE-2012-3438 GraphicsMagick: png_IM_malloc() size argument [fedora-all]
CVE-2012-3438 GraphicsMagick: png_IM_malloc() size argument [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected Fedora
versions.
For comments that are specific to the vulnerability please use bugs filed
against "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When creating a Bodhi update request, please include this bug ID and the
bug IDs of this bug's parent bugs filed against the "Security Response"
product (the top-level CVE bugs). Please mention the CVE IDs being fixed
in the RPM changelog when available.
Bodhi update submission link:
https://admin.fedoraproject.org/updates/new/?type_=security&bu
Bugzilla
CVE-2012-3438 GraphicsMagick: png_IM_malloc() size argument
bugzilla·2012-07-28·CVSS 6.8
CVE-2012-3438 [MEDIUM] CVE-2012-3438 GraphicsMagick: png_IM_malloc() size argument
CVE-2012-3438 GraphicsMagick: png_IM_malloc() size argument
Tom Lane ([email protected]) found an issue in ImageMagick that is also present
in GraphicsMagick. Basically CVE-2011-3026 deals with libpng memory
allocation, limitations have been added so that a bad PNG can't cause the
system to allocate a lot of memory causing a denial of service. However on
further investigation of ImageMagick Tom Lane found that PNG malloc
function (Magick_png_malloc) in turn calls AcquireMagickMemory with an
improper size argument:
#ifdef PNG_USER_MEM_SUPPORTED
static png_voidp Magick_png_malloc(png_structp png_ptr,png_uint_32 size)
{
(void) png_ptr;
return((png_voidp) AcquireMagickMemory((size_t) size));
}
Similar code is present in GraphicsMagick:
#ifdef PNG_USER_MEM_SUPPORTED
static png_voidp png_IM_mal
Bugzilla
CVE-2012-3438 GraphicsMagick: png_IM_malloc() size argument [epel-all]
bugzilla·2012-07-28·CVSS 4.3
CVE-2012-3438 [MEDIUM] CVE-2012-3438 GraphicsMagick: png_IM_malloc() size argument [epel-all]
CVE-2012-3438 GraphicsMagick: png_IM_malloc() size argument [epel-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected Fedora
versions.
For comments that are specific to the vulnerability please use bugs filed
against "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When creating a Bodhi update request, please include this bug ID and the
bug IDs of this bug's parent bugs filed against the "Security Response"
product (the top-level CVE bugs). Please mention the CVE IDs being fixed
in the RPM changelog when available.
Bodhi update submission link:
https://admin.fedoraproject.org/updates/new/?type_=security&bugs
http://graphicsmagick.hg.sourceforge.net/hgweb/graphicsmagick/graphicsmagick/rev/d6e469d02cd2http://lists.opensuse.org/opensuse-updates/2013-03/msg00102.htmlhttp://secunia.com/advisories/50090http://www.mandriva.com/security/advisories?name=MDVSA-2012:165http://www.securityfocus.com/bid/54716https://bugzilla.redhat.com/show_bug.cgi?id=844105https://exchange.xforce.ibmcloud.com/vulnerabilities/77259http://graphicsmagick.hg.sourceforge.net/hgweb/graphicsmagick/graphicsmagick/rev/d6e469d02cd2http://lists.opensuse.org/opensuse-updates/2013-03/msg00102.htmlhttp://secunia.com/advisories/50090http://www.mandriva.com/security/advisories?name=MDVSA-2012:165http://www.securityfocus.com/bid/54716https://bugzilla.redhat.com/show_bug.cgi?id=844105https://exchange.xforce.ibmcloud.com/vulnerabilities/77259
2012-08-07
Published