Skip to content
Heist/ feed
Back to feed
MediumFix available

gdk-pixbuf — security advisory

Type: advisorySources: OSVAdvisory ID: ALPINE-CVE-2020-29385

GNOME gdk-pixbuf (aka GdkPixbuf) before 2.42.2 allows a denial of service (infinite loop) in lzw.c in the function write_indexes. if c->self_code equals 10, self->code_table[10].extends will assign the value 11 to c. The next execution in the loop will assign self->code_table[11].extends to c, which will give the value of 10. This will make the loop run infinitely. This bug can, for example, be triggered by calling this function with a GIF image with LZW compression that is crafted in a special way.

Products
gdk-pixbuf
Affected versions
Not specified
Fixed versions
2.40.0-r2, 2.40.0-r4, 2.42.2-r0
CVEs
CVE-2020-29385
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 12:09 UTC · Revision 1

Source evidence

ALPINE-CVE-2020-29385

core-osv · Original source

Published 26 Dec 2020, 02:15 UTC

GNOME gdk-pixbuf (aka GdkPixbuf) before 2.42.2 allows a denial of service (infinite loop) in lzw.c in the function write_indexes. if c->self_code equals 10, self->code_table[10].extends will assign the value 11 to c. The next execution in the loop will assign self->code_table[11].extends to c, which will give the value of 10. This will make the loop run infinitely. This bug can, for example, be triggered by calling this function with a GIF image with LZW compression that is crafted in a special way.

osv:ALPINE-CVE-2020-29385

gdk-pixbuf

Fixed versions: 2.40.0-r2

gdk-pixbuf

Fixed versions: 2.40.0-r4

gdk-pixbuf

Fixed versions: 2.42.2-r0

gdk-pixbuf

Fixed versions: 2.42.2-r0

gdk-pixbuf

Fixed versions: 2.42.2-r0

gdk-pixbuf

Fixed versions: 2.42.2-r0

gdk-pixbuf

Fixed versions: 2.42.2-r0

gdk-pixbuf

Fixed versions: 2.42.2-r0

gdk-pixbuf

Fixed versions: 2.42.2-r0

gdk-pixbuf

Fixed versions: 2.42.2-r0

gdk-pixbuf

Fixed versions: 2.42.2-r0

gdk-pixbuf

Fixed versions: 2.42.2-r0

gdk-pixbuf

Fixed versions: 2.42.2-r0

Complete source record
{
  "id": "07b17a42467d2eacb3beac7f749b9c80c2e84c8b02d8eecd550027d3bda961e8",
  "url": "https://osv.dev/vulnerability/ALPINE-CVE-2020-29385",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ALPINE-CVE-2020-29385",
    "summary": "GNOME gdk-pixbuf (aka GdkPixbuf) before 2.42.2 allows a denial of service (infinite loop) in lzw.c in the function write_indexes. if c->self_code equals 10, self->code_table[10].extends will assign the value 11 to c. The next execution in the loop will assign self->code_table[11].extends to c, which will give the value of 10. This will make the loop run infinitely. This bug can, for example, be triggered by calling this function with a GIF image with LZW compression that is crafted in a special way.",
    "evidence": "osv:ALPINE-CVE-2020-29385",
    "products": [
      {
        "name": {
          "value": "gdk-pixbuf",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.40.0-r2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gdk-pixbuf",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.40.0-r4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gdk-pixbuf",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.42.2-r0",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gdk-pixbuf",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.42.2-r0",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gdk-pixbuf",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.42.2-r0",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gdk-pixbuf",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.42.2-r0",
            "evidence": "/affected/5/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gdk-pixbuf",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.42.2-r0",
            "evidence": "/affected/6/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gdk-pixbuf",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.42.2-r0",
            "evidence": "/affected/7/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gdk-pixbuf",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.42.2-r0",
            "evidence": "/affected/8/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gdk-pixbuf",
          "evidence": "/affected/9/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.42.2-r0",
            "evidence": "/affected/9/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gdk-pixbuf",
          "evidence": "/affected/10/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.42.2-r0",
            "evidence": "/affected/10/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gdk-pixbuf",
          "evidence": "/affected/11/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.42.2-r0",
            "evidence": "/affected/11/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gdk-pixbuf",
          "evidence": "/affected/12/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.42.2-r0",
            "evidence": "/affected/12/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "ALPINE-CVE-2020-29385",
      "aliases": [
        "ALPINE-CVE-2020-29385"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.40.0-r2"
                }
              ]
            }
          ],
          "package": {
            "name": "gdk-pixbuf",
            "purl": "pkg:apk/alpine/gdk-pixbuf?arch=source",
            "ecosystem": "Alpine:v3.11"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-29385.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.40.0-r4"
                }
              ]
            }
          ],
          "package": {
            "name": "gdk-pixbuf",
            "purl": "pkg:apk/alpine/gdk-pixbuf?arch=source",
            "ecosystem": "Alpine:v3.12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-29385.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.42.2-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "gdk-pixbuf",
            "purl": "pkg:apk/alpine/gdk-pixbuf?arch=source",
            "ecosystem": "Alpine:v3.13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-29385.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.42.2-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "gdk-pixbuf",
            "purl": "pkg:apk/alpine/gdk-pixbuf?arch=source",
            "ecosystem": "Alpine:v3.14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-29385.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.42.2-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "gdk-pixbuf",
            "purl": "pkg:apk/alpine/gdk-pixbuf?arch=source",
            "ecosystem": "Alpine:v3.15"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-29385.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.42.2-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "gdk-pixbuf",
            "purl": "pkg:apk/alpine/gdk-pixbuf?arch=source",
            "ecosystem": "Alpine:v3.16"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-29385.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.42.2-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "gdk-pixbuf",
            "purl": "pkg:apk/alpine/gdk-pixbuf?arch=source",
            "ecosystem": "Alpine:v3.17"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-29385.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.42.2-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "gdk-pixbuf",
            "purl": "pkg:apk/alpine/gdk-pixbuf?arch=source",
            "ecosystem": "Alpine:v3.18"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-29385.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.42.2-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "gdk-pixbuf",
            "purl": "pkg:apk/alpine/gdk-pixbuf?arch=source",
            "ecosystem": "Alpine:v3.19"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-29385.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.42.2-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "gdk-pixbuf",
            "purl": "pkg:apk/alpine/gdk-pixbuf?arch=source",
            "ecosystem": "Alpine:v3.20"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-29385.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.42.2-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "gdk-pixbuf",
            "purl": "pkg:apk/alpine/gdk-pixbuf?arch=source",
            "ecosystem": "Alpine:v3.21"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-29385.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.42.2-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "gdk-pixbuf",
            "purl": "pkg:apk/alpine/gdk-pixbuf?arch=source",
            "ecosystem": "Alpine:v3.22"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-29385.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.42.2-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "gdk-pixbuf",
            "purl": "pkg:apk/alpine/gdk-pixbuf?arch=source",
            "ecosystem": "Alpine:v3.23"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-29385.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-26T11:17:55.167245269Z",
      "provider": "osv",
      "upstream": [
        "CVE-2020-29385"
      ],
      "references": [
        "https://security.alpinelinux.org/vuln/CVE-2020-29385"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2020-29385",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 450602,
  "published_at": "2020-12-26T02:15:12.807+00:00"
}