-Infinity
0

Vendor Risk Score

See how libgd compares to other vendors in security performance

View Risk Score →
Severity
4.3
AV:N/AC:M/Au:N/C:N/I:N/A:P

Description of problem: PHP 5.2.3 release: http://www.php.net/releases/523.php

Fixed possible infinite loop in imagecreatefrompng. (by Xavier Roche, CVE-2007-2756)

1 / 2
Source: Red Hat
First published (updated )
Severity
5.5
Input Validation
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

The gdImageCreate function in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (system hang) via an oversized image.

First published (updated )
Severity
8.8
Integer Overflow, Buffer Overflow
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Fixed bug (Integer Overflow in gd2GetHeader() resulting in heap overflow). (CVE-2016-5766)

1 / 3
Source: PHP
First published (updated )
Severity
5.3
Infoleak
AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N

Fixed bug (Uninitialized read in gdImageCreateFromXbm) (CVE-2019-11038).

1 / 4
Source: PHP
First published (updated )
Severity
7.5
Double Free
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

DISPUTED gdImageGd2Ptr in gdgd2.c in the GD Graphics Library (aka LibGD) through 2.3.2 has a double free. NOTE: the vendor's position is "The GD2 image format is a proprietary image format of libgd. It has to be regarded as being obsolete, and should only be used for development and testing purposes."

1 / 2
First published (updated )
Severity
6.5
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

readheadertga in gdtga.c in the GD Graphics Library (aka LibGD) through 2.3.2 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file.

First published (updated )
Severity
9.8
Double Free, Use After Free
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Last updated 25 August 2025

1 / 3
Source: Ubuntu
First published (updated )
Severity
8.8
Buffer Overflow
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Fixed bug (imagecolormatch Out Of Bounds Write on Heap). (CVE-2019-6977)

1 / 4
Source: PHP
First published (updated )
Severity
7.5
Null Pointer Dereference, Buffer Overflow
AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H

A flaw was found in gd as shipped with Fedora. Cloning a image with style "attached", triggers a NULL pointer dereference in 'gdImageClone' leading to denial of service.

Affected versions: gd-2.2.5 gd-2.2.4 gd-2.2.3 gd-2.2.2 gd-2.2.1 gd-2.2.0 gd-2.1.1 gd-2.1.0 gd-2.1.0-rc2

References:

https://bugzilla.redhat.com/showbug.cgi?id=1599032

1 / 3
Source: Red Hat
First published (updated )
Severity
8.8
Double Free
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Last updated 25 August 2025

1 / 2
Source: Ubuntu
First published (updated )
Severity
8.1
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H

DISPUTED In the GD Graphics Library (aka LibGD) through 2.2.5, there is a heap-based buffer over-read in tiffWriter in gdtiff.c. NOTE: the vendor says "In my opinion this issue should not have a CVE, since the GD and GD2 formats are documented to be 'obsolete, and should only be used for development and testing purposes.'"

1 / 2
First published (updated )
Severity
7
Buffer Overflow

A flaw was found in libgd. Processing a specially crafted GIF file allows a remote attacker to trigger a buffer overflow, resulting in an application crash and a denial of service. Arbitrary code execution is possible in theory, but considered highly unlikely because standard image decompression and pixel manipulation generally destroy the exploit payload.

First published (updated )
Severity
9.8
Integer Overflow, Integer Underflow, Use After Free
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L

An unsigned integer overflow vulnerability was found in gdContributionsAlloc function.

Upstream patch:

https://github.com/libgd/libgd/commit/60bfb401ad5a4a8ae995dcd36372fe15c71e1a35

CVE assignment:

http://www.openwall.com/lists/oss-security/2017/01/28/6

1 / 3
Source: Red Hat
First published (updated )
Severity
6.5
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Last updated 15 November 2024

1 / 2
Source: Ubuntu
First published (updated )
Severity
7.5
Buffer Overflow
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Fixed bug (imagefilltoborder stackoverflow on truecolor images). (CVE-2016-9933)

1 / 3
Source: PHP
First published (updated )
Severity
6.5
Integer Overflow, Buffer Overflow
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

An integer overflow vulnerability was found in gdContributionsAlloc() function in gdinterpolation.c that can lead to out-of-bounds write.

PHP bug:

https://bugs.php.net/bug.php?id=72558

PHP fix:

https://git.php.net/?p=php-src.git;a=commit;h=8fa9d1ce28f3a894b104979df30d0b65e0f21107

1 / 3
Source: Red Hat
First published (updated )
Severity
7.5
Input Validation
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

It was found that libgd did not properly handle invalid color index, which could lead to a denial of service against applications using the libgd library.

Upstream patches:

https://github.com/libgd/libgd/compare/3fe0a7128bac5000fdcfab888bd2a75ec0c9447d...fd623025505e87bba7ec8555eeb72dae4fb0afd

CVE assignment:

http://seclists.org/oss-sec/2016/q2/627

1 / 2
Source: Red Hat
First published (updated )
Severity
8.8
Buffer Overflow, Integer Overflow
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Fixed bug (Integer Overflow in gdImagePaletteToTrueColor() resulting in heap overflow). (CVE-2016-5767)

1 / 3
Source: PHP
First published (updated )
Severity
9.8
Buffer Overflow
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

A signedness vulnerability was found in libgd 2.1.1 which may result into heap overflow when processing maliciously crafted .gd2 files.

1 / 3
Source: Red Hat
First published (updated )
Severity
7.8
Integer Overflow
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

An integer overflow in gdio.c was found.

Upstream patch:

https://github.com/libgd/libgd/commit/69d2fd2c597ffc0c217de1238b9bf4d4bceba8e6

PHP bug:

https://bugs.php.net/bug.php?id=73869

CVE assignment:

http://www.openwall.com/lists/oss-security/2017/01/28/6

1 / 3
Source: Red Hat
First published (updated )
Severity
5.5
Input Validation
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Fixed bug (DOS vulnerability in gdImageCreateFromGd2Ctx()). (CVE-2016-10167)

1 / 3
Source: PHP
First published (updated )
Severity
5
Buffer Overflow
AV:N/AC:L/Au:N/C:N/I:N/A:P

Possible buffer read overflow was fixed upstream [1]. This was also reported against PHP: https://bugs.php.net/bug.php?id=68601 (bug is private, fixed in PHP 5.6.5)

[1]: https://bitbucket.org/libgd/gd-libgd/commits/47eb44b2e90ca88a08dca9f9a1aa9041e9587f43

1 / 2
First published (updated )
Severity
7.6
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H

An out-of-bounds read in imagescale function was found that can cause crash of application.

Upstream bug (php):

https://bugs.php.net/bug.php?id=72227

Upstream patch:

libgd: https://github.com/libgd/libgd/commit/4f65a3e4eedaffa1efcf9ee1eb08f0b504fbc31a php: https://git.php.net/?p=php-src.git;a=commit;h=7a1aac3343af85b4af4df5f8844946eaa27394ab

CVE assignment:

http://seclists.org/oss-sec/2016/q2/412

1 / 3
Source: Red Hat
First published (updated )
Severity
9.3
Buffer Overflow
AV:N/AC:M/Au:N/C:C/I:C/A:C

The gdGetColors function in gdgd.c in PHP 5.2.11 and 5.3.x before 5.3.1, and the GD Graphics Library 2.x, does not properly verify a certain colorsTotal structure member, which might allow remote attackers to conduct buffer overflow or buffer over-read attacks via a crafted GD file, a different vulnerability than CVE-2009-3293. NOTE: some of these details are obtained from third party information.

1 / 2
Source: MITRE
First published (updated )
Severity
4.3
Integer Overflow
AV:N/AC:M/Au:N/C:N/I:N/A:P

Common Vulnerabilities and Exposures assigned an identifier CVE-2007-3472 to the following vulnerability:

Integer overflow in gdImageCreateTrueColor function in the GD Graphics Library (libgd) before 2.0.35 allows user-assisted remote attackers has unspecified attack vectors and impact.

References:

http://bugs.libgd.org/?do=details&taskid=89

1 / 2
Source: Red Hat
First published (updated )
Severity
4.3
AV:N/AC:M/Au:N/C:N/I:N/A:P

Common Vulnerabilities and Exposures assigned an identifier CVE-2007-3473 to the following vulnerability:

The gdImageCreateXbm function in the GD Graphics Library (libgd) before 2.0.35 allows user-assisted remote attackers to cause a denial of service (crash) via unspecified vectors involving a gdImageCreate failure.

References:

http://bugs.libgd.org/?do=details&taskid=94 http://www.libgd.org/ReleaseNote020035 http://news.php.net/php.gd.cvs/235

1 / 2
Source: Red Hat
First published (updated )
Severity
9.8
Double Free
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Double free vulnerability in the gdImageWebPtr function in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via large width and height values.

First published (updated )
Severity
5.5
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

The dynamicGetbuf function in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TIFF image.

First published (updated )
Severity
2.6
AV:N/AC:H/Au:N/C:N/I:N/A:P

Multiple unspecified vulnerabilities in the GIF reader in the GD Graphics Library (libgd) before 2.0.35 have unspecified impact and user-assisted remote attack vectors.

First published (updated )
Severity
5
AV:N/AC:L/Au:N/C:N/I:N/A:P

The (a) imagearc and (b) imagefilledarc functions in GD Graphics Library (libgd) before 2.0.35 allow attackers to cause a denial of service (CPU consumption) via a large (1) start or (2) end angle degree value.

First published (updated )

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203