# 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 writeindexes.

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.54%, higher than 75% of CVEs (2026-12-02)
- Published: 2020-12-26T02:01:49.000Z
- Modified: 2026-06-17T03:11:15.423Z
- Weaknesses: CWE-835
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gnome gdk-pixbuf: from >2.39.2 before 2.42.2
- canonical ubuntu_linux: 20.04; 20.10
- fedoraproject fedora: 33; 34

## Every score

- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/blob/master/NEWS> (release-notes, vendor-advisory)
- <https://security.gentoo.org/glsa/202012-15> (third-party-advisory)
- <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977166> (issue-tracking, third-party-advisory)
- <https://ubuntu.com/security/CVE-2020-29385> (patch, third-party-advisory)
- <https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/issues/164> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EANWYODLOJDFLMBH6WEKJJMQ5PKLEWML/> (mailing-list, third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B5H3GNVWMZTYZR3JBYCK57PF7PFMQBNP/> (mailing-list, third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BGZVCTH5O7WBJLYXZ2UOKLYNIFPVR55D/> (mailing-list, third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2020-29385](https://www.cve.org/CVERecord?id=CVE-2020-29385), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-29385](https://nvd.nist.gov/vuln/detail/CVE-2020-29385), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-29385 · Whole record: https://cve.day/CVE-2020-29385.json · Rebuilt by cve.day 2026-11-25T22:57:56.425Z
