CVE-2020-29385
GNOME gdk-pixbuf (aka GdkPixbuf) before 2.42.2 allows a denial of service (infinite loop) in lzw...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
5.5
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.
- Record
CVE-2020-29385- 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 - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-835
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2020-29385- Updated
- 2026-11-02
EUVDEUVD-2020-21758 No score
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.
- Record
EUVD-2020-21758- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-wf85-g3p6-xf4h
5.5
GNOME gdk-pixbuf (aka GdkPixbuf) before 2.42.2 allows a denial of service (infinite loop) in lzw...
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.
- Record
GHSA-wf85-g3p6-xf4h- 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 - Weakness
- CWE-835
- Updated
- 2026-11-02
OSVALPINE-CVE-2020-29385
5.5
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.
- Record
ALPINE-CVE-2020-29385- 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 - Updated
- 2026-11-03
OSVBELL-CVE-2020-29385
5.5
CVE-2020-29385 does not affect BellSoft software
- Record
BELL-CVE-2020-29385- 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 - Updated
- 2026-11-02
Show 8 moreShow less
OSV
5.5
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.
- Record
CVE-2020-29385- 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 - Updated
- 2026-11-04
OSVDEBIAN-CVE-2020-29385
5.5
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.
- Record
DEBIAN-CVE-2020-29385- 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 - Updated
- 2026-11-02
OSVOESA-2022-1762
8.8
gdk-pixbuf2 security update
gdk is written in C but has been designed from the ground up to support a wide range of languages. It provide a complete set of widgets,and suitable for projects ranging from small one-off tools to complete application suites.
Security Fix(es):
A flaw was found in gdk-pixbuf in versions before 2.42.0. An integer wraparound leading to an out of bounds write can occur when a crafted GIF image is loaded. An attacker may cause applications to crash or could potentially execute code on the victim system. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.(CVE-2021-20240)
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.(CVE-2020-29385)
- Record
OESA-2022-1762- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2020-29385
5.5
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.
- Record
UBUNTU-CVE-2020-29385- 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 - Updated
- 2026-11-02
OSVopenSUSE-SU-2021:0150-1 No score
Security update for gdk-pixbuf
This update for gdk-pixbuf fixes the following issues:
- CVE-2020-29385: Fixed an infinite loop in lzw.c in the function write_indexes (bsc#1180393).
- Fixed an integer underflow in the GIF loader (bsc#1174307).
This update was imported from the SUSE:SLE-15-SP2:Update update project.
- Record
openSUSE-SU-2021:0150-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10779-1 No score
gdk-pixbuf-devel-2.42.6-3.2 on GA media
These are all security issues fixed in the gdk-pixbuf-devel-2.42.6-3.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10779-1- Updated
- 2026-11-02
OSVSUSE-SU-2021:0184-1 No score
Security update for gdk-pixbuf
This update for gdk-pixbuf fixes the following issues:
- CVE-2020-29385: Fixed an infinite loop in lzw.c in the function write_indexes (bsc#1180393).
- Fixed an integer underflow in the GIF loader (bsc#1174307).
- Record
SUSE-SU-2021:0184-1- Updated
- 2026-11-02
OSVUSN-4663-1 No score
gdk-pixbuf vulnerability
Melvin Kool discovered that the GDK-PixBuf library did not properly handle certain GIF images. If an user or automated system were tricked into opening a specially crafted GIF file, a remote attacker could use this flaw to cause GDK-PixBuf to hang, resulting in a denial of service.
- Record
USN-4663-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
gdk-pixbufAlpine:v3.11 |
before 2.40.0-r2 | 2.40.0-r2 |
gdk-pixbufAlpine:v3.12 |
before 2.40.0-r4 | 2.40.0-r4 |
gdk-pixbufAlpine:v3.13 |
before 2.42.2-r0 | 2.42.2-r0 |
gdk-pixbufAlpine:v3.14 |
before 2.42.2-r0 | 2.42.2-r0 |
gdk-pixbufAlpine:v3.15 |
before 2.42.2-r0 | 2.42.2-r0 |
gdk-pixbufAlpine:v3.16 |
before 2.42.2-r0 | 2.42.2-r0 |
gdk-pixbufAlpine:v3.17 |
before 2.42.2-r0 | 2.42.2-r0 |
gdk-pixbufAlpine:v3.18 |
before 2.42.2-r0 | 2.42.2-r0 |
gdk-pixbufAlpine:v3.19 |
before 2.42.2-r0 | 2.42.2-r0 |
gdk-pixbufAlpine:v3.20 |
before 2.42.2-r0 | 2.42.2-r0 |
Show 13 moreShow less
| Package | Affected | Fixed |
|---|---|---|
gdk-pixbufAlpine:v3.21 |
before 2.42.2-r0 | 2.42.2-r0 |
gdk-pixbufAlpine:v3.22 |
before 2.42.2-r0 | 2.42.2-r0 |
gdk-pixbufAlpine:v3.23 |
before 2.42.2-r0 | 2.42.2-r0 |
gdk-pixbufAlpine:v3.24 |
before 2.42.2-r0 | 2.42.2-r0 |
gdk-pixbufDebian:12 |
before 2.42.2+dfsg-1 | 2.42.2+dfsg-1 |
gdk-pixbufDebian:13 |
before 2.42.2+dfsg-1 | 2.42.2+dfsg-1 |
gdk-pixbufDebian:14 |
before 2.42.2+dfsg-1 | 2.42.2+dfsg-1 |
gdk-pixbuf2openEuler:20.03-LTS-SP3 From an advisory covering 2 CVEs |
before 2.40.0-2.oe1 | 2.40.0-2.oe1 |
gdk-pixbufSUSE:Linux Enterprise Module for Basesystem 15 SP2 |
before 2.40.0-3.3.1 | 2.40.0-3.3.1 |
gdk-pixbufSUSE:Linux Enterprise Module for Desktop Applications 15 SP2 |
before 2.40.0-3.3.1 | 2.40.0-3.3.1 |
gdk-pixbufUbuntu:20.04:LTS |
before 2.40.0+dfsg-3ubuntu0.1, plus listed versions 2.40.0+dfsg-1build12.40.0+dfsg-1ubuntu12.40.0+dfsg-22.40.0+dfsg-3 |
2.40.0+dfsg-3ubuntu0.1 |
gdk-pixbufopenSUSE:Leap 15.2 |
before 2.40.0-lp152.2.3.1 | 2.40.0-lp152.2.3.1 |
gdk-pixbufopenSUSE:Tumbleweed From an advisory covering 5 CVEs |
before 2.42.6-3.2 | 2.42.6-3.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| facts | OSV | |
| affected | OSV | |
| aliases | EUVD, OSV | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2020-29385 is a medium vulnerability (CVSS 5.5) in Gnome Gdk-pixbuf, published December 8, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.54%, the 75th percentile. Fixed in gdk-pixbuf 2.40.0-r2.
References
gitlab.gnome.org/GNOME/gdk-pixbuf/-/blob/master/NEWS
security.gentoo.org/glsa/202012-15
bugs.debian.org/cgi-bin/bugreport.cgi?bug=977166
ubuntu.com/security/CVE-2020-29385
gitlab.gnome.org/GNOME/gdk-pixbuf/-/issues/164
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EANWYODLOJDFLMBH6WEKJJMQ5PKLEWML
Show 24 moreShow less
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B5H3GNVWMZTYZR3JBYCK57PF7PFMQBNP
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BGZVCTH5O7WBJLYXZ2UOKLYNIFPVR55D
nvd.nist.gov/vuln/detail/CVE-2020-29385
lists.fedoraproject.org/archives/list/[email protected]/message/B5H3GNVWMZTYZR3JBYCK57PF7PFMQBNP
lists.fedoraproject.org/archives/list/[email protected]/message/BGZVCTH5O7WBJLYXZ2UOKLYNIFPVR55D
lists.fedoraproject.org/archives/list/[email protected]/message/EANWYODLOJDFLMBH6WEKJJMQ5PKLEWML
github.com/advisories/GHSA-wf85-g3p6-xf4h
security.alpinelinux.org/vuln/CVE-2020-29385
docs.bell-sw.com/security/cves/CVE-2020-29385
security-tracker.debian.org/tracker/CVE-2020-29385
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1762
nvd.nist.gov/vuln/detail/CVE-2021-20240
suse.com/support/update/announcement/2021/suse-su-20210184-1
bugzilla.suse.com/1174307
bugzilla.suse.com/1180393
suse.com/security/cve/CVE-2020-29385
mail.gnome.org/archives/distributor-list/2020-December/msg00000.html
ubuntu.com/security/notices/USN-4663-1
cve.org/CVERecord?id=CVE-2020-29385
lists.opensuse.org/archives/list/[email protected]/thread/Z47MEXBMS3R7XMG63LBJMBIYUX3ZTEJI
suse.com/security/cve/CVE-2017-2862
suse.com/security/cve/CVE-2017-2870
suse.com/security/cve/CVE-2017-6312
suse.com/security/cve/CVE-2017-6313