CVE-2019-6978

The GD Graphics Library (aka LibGD) 2.2.5 has a double free in the gdImage*Ptr() functions in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c

published January 28, 2019

CVSS
โ€”
EPSS
4%
Percentile
91.4
In the wild
Unconfirmed
What it is

โš ๏ธ A double free vulnerability lurks in the GD Graphics Library (LibGD) 2.2.5, like a chef accidentally tossing the same ingredient twice into the pot! ๐Ÿฒ This is like a restaurant where the chef mistakenly puts the same order back into the kitchen for the same table โ€” too much of the same ingredient can spoil the dish, leading to unexpected outcomes. While this vulnerability might not be actively exploited yet, it leaves the door open for potential issues in certain applications using LibGD. An attacker could cause erratic behavior or crashes in the system, making it an interesting but manageable concern for developers.

Put simply

This is like a restaurant where the chef mistakenly puts the same order back into the kitchen for the same table โ€” too much of the same ingredient can spoil the dish, leading to unexpected outcomes. The flaw exists due to a double free in the gdImage*Ptr() functions located in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c, which can lead to memory corruption or instability when managing image resources.

What to do

While this vulnerability might not be actively exploited yet, it leaves the door open for potential issues in certain applications using LibGD. An attacker could cause erratic behavior or crashes in the system, making it an interesting but manageable concern for developers. To mitigate this vulnerability, consider upgrading to the latest version of LibGD. Even though PHP is unaffected, reviewing your image processing setups and libraries for any related components or updates is a smart move. You've got this! By staying proactive and patching up, you can keep your projects running smoothly! ๐Ÿ›ก๏ธ

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.04452 ยท 91.4th percentile
Published
2019-01-28T07:00Z
EPSS history
Timeline
  • 28 JAN 07:00Z
    The GD Graphics Library (aka LibGD) 2.2.5 has a double free in the gdImage*Ptr() functions in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c
    cvelistv5