ID CVE-2012-3438
Summary 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.
References
Vulnerable Configurations
  • GraphicsMagick 1.3.16
    cpe:2.3:a:graphicsmagick:graphicsmagick:1.3.16
CVSS
Base: 4.3 (as of 08-08-2012 - 13:22)
Impact:
Exploitability:
CWE CWE-119
CAPEC
  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
  • Overflow Binary Resource File
    An attack of this type exploits a buffer overflow vulnerability in the handling of binary resources. Binary resources may include music files like MP3, image files like JPEG files, and any other binary file. These attacks may pass unnoticed to the client machine through normal usage of files, such as a browser loading a seemingly innocent JPEG file. This can allow the attacker access to the execution stack and execute arbitrary code in the target process. This attack pattern is a variant of standard buffer overflow attacks using an unexpected vector (binary files) to wrap its attack and open up a new attack vector. The attacker is required to either directly serve the binary content to the victim, or place it in a locale like a MP3 sharing application, for the victim to download. The attacker then is notified upon the download or otherwise locates the vulnerability opened up by the buffer overflow.
  • Buffer Overflow via Symbolic Links
    This type of attack leverages the use of symbolic links to cause buffer overflows. An attacker can try to create or manipulate a symbolic link file such that its contents result in out of bounds data. When the target software processes the symbolic link file, it could potentially overflow internal buffers with insufficient bounds checking.
  • Overflow Variables and Tags
    This type of attack leverages the use of tags or variables from a formatted configuration data to cause buffer overflow. The attacker crafts a malicious HTML page or configuration file that includes oversized strings, thus causing an overflow.
  • Buffer Overflow via Parameter Expansion
    In this attack, the target software is given input that the attacker knows will be modified and expanded in size during processing. This attack relies on the target software failing to anticipate that the expanded data may exceed some internal limit, thereby creating a buffer overflow.
  • Buffer Overflow in an API Call
    This attack targets libraries or shared code modules which are vulnerable to buffer overflow attacks. An attacker who has access to an API may try to embed malicious code in the API function call and exploit a buffer overflow vulnerability in the function's implementation. All clients that make use of the code library thus become vulnerable by association. This has a very broad effect on security across a system, usually affecting more than one software process.
  • Buffer Overflow in Local Command-Line Utilities
    This attack targets command-line utilities available in a number of shells. An attacker can leverage a vulnerability found in a command-line utility to escalate privilege to root.
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
NONE NONE PARTIAL
nessus via4
  • NASL family Mandriva Local Security Checks
    NASL id MANDRIVA_MDVSA-2012-165.NASL
    description A vulnerability has been found and corrected in graphicsmagick : 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 (CVE-2012-3438). The updated packages have been patched to correct this issue.
    last seen 2019-01-16
    modified 2018-07-19
    plugin id 62540
    published 2012-10-15
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=62540
    title Mandriva Linux Security Advisory : graphicsmagick (MDVSA-2012:165)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2012-12366.NASL
    description This update : - addresses a potential memory allocation issue with png images - fixes a -devel multilib conflict - builds against lcms2 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-01-16
    modified 2015-10-20
    plugin id 62018
    published 2012-09-10
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=62018
    title Fedora 16 : GraphicsMagick-1.3.16-5.fc16 (2012-12366)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_IMAGEMAGICK-8512.NASL
    description ImageMagick has been updated to fix an integer overflow. (CVE-2012-3438)
    last seen 2018-09-02
    modified 2013-05-08
    plugin id 66345
    published 2013-05-08
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=66345
    title SuSE 10 Security Update : ImageMagick (ZYPP Patch Number 8512)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_IMAGEMAGICK-130320.NASL
    description ImageMagick has been updated to fix an integer overflow. (CVE-2012-3438) Also a slowness in 'convert' when resizing JPEG images has been addressed. (bnc#754481)
    last seen 2019-01-16
    modified 2013-10-25
    plugin id 66343
    published 2013-05-08
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=66343
    title SuSE 11.2 Security Update : ImageMagick (SAT Patch Number 7520)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2012-12333.NASL
    description This update : - addresses a potential memory allocation issue with png images - fixes a -devel multilib conflict - builds against lcms2 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-01-16
    modified 2015-10-20
    plugin id 62136
    published 2012-09-18
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=62136
    title Fedora 18 : GraphicsMagick-1.3.16-5.fc18 (2012-12333)
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2013-252.NASL
    description GraphicsMagick was updated to fix integer overflows in the _png_malloc functions (CVE-2012-3438).
    last seen 2019-01-16
    modified 2018-11-10
    plugin id 74944
    published 2014-06-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=74944
    title openSUSE Security Update : GraphicsMagick (openSUSE-SU-2013:0536-1)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2012-12352.NASL
    description This update : - addresses a potential memory allocation issue with png images - fixes a -devel multilib conflict - builds against lcms2 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-01-16
    modified 2015-10-20
    plugin id 62017
    published 2012-09-10
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=62017
    title Fedora 17 : GraphicsMagick-1.3.16-5.fc17 (2012-12352)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_SU-2013-0756-1.NASL
    description ImageMagick has been updated to fix an integer overflow (CVE-2012-3438). Note that Tenable Network Security has extracted the preceding description block directly from the SUSE security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-01-16
    modified 2015-05-20
    plugin id 83582
    published 2015-05-20
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=83582
    title SUSE SLED10 Security Update : ImageMagick (SUSE-SU-2013:0756-1)
  • NASL family FreeBSD Local Security Checks
    NASL id FREEBSD_PKG_98690C45036111E2A391000C29033C32.NASL
    description Kurt Seifried reports : There is an issue in ImageMagick that is also present in GraphicsMagick. CVE-2011-3026 deals with libpng memory allocation, and limitations have been added so that a bad PNG can't cause the system to allocate a lot of memory and 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.
    last seen 2019-01-16
    modified 2019-01-02
    plugin id 62298
    published 2012-09-26
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=62298
    title FreeBSD : ImageMagick and GraphicsMagick -- DoS via specially crafted PNG file (98690c45-0361-11e2-a391-000c29033c32)
refmap via4
bid 54716
confirm http://graphicsmagick.hg.sourceforge.net/hgweb/graphicsmagick/graphicsmagick/rev/d6e469d02cd2
mandriva MDVSA-2012:165
misc https://bugzilla.redhat.com/show_bug.cgi?id=844105
secunia 50090
suse openSUSE-SU-2013:0536
xf graphicsmagick-png-dos(77259)
Last major update 04-06-2013 - 23:35
Published 07-08-2012 - 17:55
Last modified 28-08-2017 - 21:31
Back to Top