CVE-2012-3437
published 2012-08-07CVE-2012-3437: The Magick_png_malloc function in coders/png.c in ImageMagick 6.7.8 and earlier does not use the proper variable type for the allocation size, which might…
PriorityP417medium4.3CVSS 2.0
AVNACMAuNCNINAP
EPSS
2.75%
84.7th percentile
The Magick_png_malloc function in coders/png.c in ImageMagick 6.7.8 and earlier 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 | imagemagick | < imagemagick 8:6.7.7.10-3 (bookworm) | imagemagick 8:6.7.7.10-3 (bookworm) |
| imagemagick | imagemagick | — | — |
| imagemagick | imagemagick | >= 0 < 8:6.7.7.10-3 | 8:6.7.7.10-3 |
| imagemagick | imagemagick | >= 0 < 8:6.7.7.10-3 | 8:6.7.7.10-3 |
| imagemagick | imagemagick | >= 0 < 8:6.7.7.10-3 | 8:6.7.7.10-3 |
| imagemagick | imagemagick | >= 0 < 8:6.7.7.10-3 | 8:6.7.7.10-3 |
CVSS provenance
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:N/A:P
osv4.3MEDIUM
vendor_debian4.3LOW
vendor_redhat4.3MEDIUM
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.
Ubuntu
ImageMagick vulnerability
vendor_ubuntu·2012-08-22
CVE-2012-3437 ImageMagick vulnerability
Title: ImageMagick vulnerability
Summary: ImageMagick could be made to crash or run programs as your login if it
opened a specially crafted file.
Tom Lane discovered that ImageMagick would not always properly allocate
memory. If a user or automated system using ImageMagick were tricked into
opening a specially crafted PNG image, an attacker could exploit this to
cause a denial of service or possibly execute code with the privileges of
the user invoking the program.
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
ImageMagick: Magick_png_malloc() size argument
vendor_redhat·2012-07-27·CVSS 4.3
CVE-2012-3437 [MEDIUM] ImageMagick: Magick_png_malloc() size argument
ImageMagick: Magick_png_malloc() size argument
The Magick_png_malloc function in coders/png.c in ImageMagick 6.7.8 and earlier 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.
Statement: Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Package: ImageMagick (Red Hat Enterprise Linux 5) - Will not fix
Package: ImageMagick (Red Hat Enterprise Linux 6) - Will not fix
Debian
CVE-2012-3437: imagemagick - The Magick_png_malloc function in coders/png.c in ImageMagick 6.7.8 and earlier ...
vendor_debian·2012·CVSS 4.3
CVE-2012-3437 [MEDIUM] CVE-2012-3437: imagemagick - The Magick_png_malloc function in coders/png.c in ImageMagick 6.7.8 and earlier ...
The Magick_png_malloc function in coders/png.c in ImageMagick 6.7.8 and earlier 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 8:6.7.7.10-3)
bullseye: resolved (fixed in 8:6.7.7.10-3)
forky: resolved (fixed in 8:6.7.7.10-3)
sid: resolved (fixed in 8:6.7.7.10-3)
trixie: resolved (fixed in 8:6.7.7.10-3)
GHSA
GHSA-f7f6-4j5g-969q: The Magick_png_malloc function in coders/png
ghsa_unreviewed·2022-05-17
CVE-2012-3437 [MEDIUM] GHSA-f7f6-4j5g-969q: The Magick_png_malloc function in coders/png
The Magick_png_malloc function in coders/png.c in ImageMagick 6.7.8 and earlier 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-3437: The Magick_png_malloc function in coders/png
osv·2012-08-07·CVSS 4.3
CVE-2012-3437 [MEDIUM] CVE-2012-3437: The Magick_png_malloc function in coders/png
The Magick_png_malloc function in coders/png.c in ImageMagick 6.7.8 and earlier 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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2012-3437 ImageMagick: Magick_png_malloc() size argument
bugzilla·2012-07-28·CVSS 6.8
CVE-2012-3437 [MEDIUM] CVE-2012-3437 ImageMagick: Magick_png_malloc() size argument
CVE-2012-3437 ImageMagick: Magick_png_malloc() size argument
Tom Lane ([email protected]) found an issue in ImageMagick. 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));
}
This is incorrect, the size argument should be declared png_alloc_size_t
according to 1.5, or png_size_t according to 1.2.
"As this functi
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-3437 ImageMagick: Magick_png_malloc() size argument [fedora-all]
bugzilla·2012-07-28·CVSS 4.3
CVE-2012-3437 [MEDIUM] CVE-2012-3437 ImageMagick: Magick_png_malloc() size argument [fedora-all]
CVE-2012-3437 ImageMagick: Magick_png_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&b
http://lists.opensuse.org/opensuse-updates/2013-03/msg00101.htmlhttp://secunia.com/advisories/50091http://secunia.com/advisories/50398http://www.mandriva.com/security/advisories?name=MDVSA-2012:160http://www.mandriva.com/security/advisories?name=MDVSA-2013:092http://www.securityfocus.com/bid/54714http://www.securitytracker.com/id?1027321http://www.ubuntu.com/usn/USN-1544-1https://bugzilla.redhat.com/show_bug.cgi?id=844101https://exchange.xforce.ibmcloud.com/vulnerabilities/77260https://wiki.mageia.org/en/Support/Advisories/MGASA-2012-0243http://lists.opensuse.org/opensuse-updates/2013-03/msg00101.htmlhttp://secunia.com/advisories/50091http://secunia.com/advisories/50398http://www.mandriva.com/security/advisories?name=MDVSA-2012:160http://www.mandriva.com/security/advisories?name=MDVSA-2013:092http://www.securityfocus.com/bid/54714http://www.securitytracker.com/id?1027321http://www.ubuntu.com/usn/USN-1544-1https://bugzilla.redhat.com/show_bug.cgi?id=844101https://exchange.xforce.ibmcloud.com/vulnerabilities/77260https://wiki.mageia.org/en/Support/Advisories/MGASA-2012-0243
2012-08-07
Published