Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: 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
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-29385
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 08:46 UTC · Revision 1

Source evidence

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:CVE-2020-29385
Complete source record
{
  "id": "a9e55374f7fec8dfb1d35f0dcc3678cdf44c5f6e97955f60f3ff8a9149e6d30c",
  "url": "https://osv.dev/vulnerability/CVE-2020-29385",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "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:CVE-2020-29385",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2020-29385",
      "aliases": [
        "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": [
            {
              "repo": "https://github.com/gnome/gdk-pixbuf",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2518a6817c2b076cdde1d3cc26beb9269a59d725"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gnome:gdk-pixbuf:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.42.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.42.0",
            "2.40.0",
            "2.39.2",
            "2.38.0",
            "2.37.92",
            "2.37.0",
            "2.36.12",
            "2.36.11",
            "2.36.10",
            "2.36.9",
            "2.36.8",
            "2.36.7",
            "2.36.6",
            "2.36.5",
            "2.36.4",
            "2.36.3",
            "2.36.2",
            "2.36.1",
            "2.36.0",
            "2.35.5",
            "2.35.4",
            "2.35.3",
            "2.35.2",
            "2.35.1",
            "2.34.0",
            "2.33.2",
            "2.33.1",
            "2.32.1",
            "2.32.0",
            "2.31.7",
            "2.31.6",
            "2.31.5",
            "2.31.4",
            "2.31.3",
            "2.31.2",
            "2.31.1",
            "2.31.0",
            "2.30.8",
            "2.30.7",
            "2.30.6",
            "2.30.5",
            "2.30.4",
            "2.30.3",
            "2.30.2",
            "2.30.1",
            "2.30.0",
            "2.29.3",
            "2.29.2",
            "2.29.1",
            "2.29.0",
            "2.28.0",
            "2.27.3",
            "2.27.2",
            "2.27.1",
            "2.27.0",
            "2.26.5",
            "2.26.4",
            "2.26.3",
            "2.26.2",
            "2.26.1",
            "2.26.0",
            "2.25.2",
            "2.25.0",
            "2.24.0",
            "2.23.5",
            "2.23.4",
            "2.23.3",
            "2.23.2",
            "2.23.1",
            "2.23.0",
            "2.22.1",
            "2.22.0",
            "2.21.7",
            "2.21.6",
            "2.21.4",
            "2.21.3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-29385.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://gitlab.gnome.org/gnome/gdk-pixbuf",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2518a6817c2b076cdde1d3cc26beb9269a59d725"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gnome:gdk-pixbuf:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.42.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.42.0",
            "2.40.0",
            "2.39.2",
            "2.38.0",
            "2.37.92",
            "2.37.0",
            "2.36.12",
            "2.36.11",
            "2.36.10",
            "2.36.9",
            "2.36.8",
            "2.36.7",
            "2.36.6",
            "2.36.5",
            "2.36.4",
            "2.36.3",
            "2.36.2",
            "2.36.1",
            "2.36.0",
            "2.35.5",
            "2.35.4",
            "2.35.3",
            "2.35.2",
            "2.35.1",
            "2.34.0",
            "2.33.2",
            "2.33.1",
            "2.32.1",
            "2.32.0",
            "2.31.7",
            "2.31.6",
            "2.31.5",
            "2.31.4",
            "2.31.3",
            "2.31.2",
            "2.31.1",
            "2.31.0",
            "2.30.8",
            "2.30.7",
            "2.30.6",
            "2.30.5",
            "2.30.4",
            "2.30.3",
            "2.30.2",
            "2.30.1",
            "2.30.0",
            "2.29.3",
            "2.29.2",
            "2.29.1",
            "2.29.0",
            "2.28.0",
            "2.27.3",
            "2.27.2",
            "2.27.1",
            "2.27.0",
            "2.26.5",
            "2.26.4",
            "2.26.3",
            "2.26.2",
            "2.26.1",
            "2.26.0",
            "2.25.2",
            "2.25.0",
            "2.24.0",
            "2.23.5",
            "2.23.4",
            "2.23.3",
            "2.23.2",
            "2.23.1",
            "2.23.0",
            "2.22.1",
            "2.22.0",
            "2.21.7",
            "2.21.6",
            "2.21.4",
            "2.21.3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-29385.json"
          }
        }
      ],
      "modified": "2026-10-24T10:50:06.101284558Z",
      "provider": "osv",
      "references": [
        "https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/blob/master/NEWS",
        "https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/issues/164",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B5H3GNVWMZTYZR3JBYCK57PF7PFMQBNP/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BGZVCTH5O7WBJLYXZ2UOKLYNIFPVR55D/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EANWYODLOJDFLMBH6WEKJJMQ5PKLEWML/",
        "https://security.gentoo.org/glsa/202012-15",
        "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977166",
        "https://ubuntu.com/security/CVE-2020-29385"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:20.10:*:*:*:*:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "20.04"
                  },
                  {
                    "last_affected": "20.04"
                  },
                  {
                    "introduced": "20.10"
                  },
                  {
                    "last_affected": "20.10"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "33"
                  },
                  {
                    "last_affected": "33"
                  },
                  {
                    "introduced": "34"
                  },
                  {
                    "last_affected": "34"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2020-29385",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 441953,
  "published_at": "2020-12-26T02:15:12.807+00:00"
}