Skip to content
Fencer Vulns
medium 5.5

CVE-2022-28506 json

There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.

published 2022-04-25 4 y ago modified 2026-07-30 3 mo ago also EUVD-2022-32948 , JLSEC-2026-817

cvss
5.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.3%
EPSS 1.3% chance of exploitation in 30 days, percentile 69%
public exploits
0
none known

Summary

There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.

Patch / fix

  • julia Giflib_jll 5.2.2+0
  • giflib Debian 14, Debian 13 5.2.2-1

debian advisories DEBIAN-CVE-2022-28506

  • giflib Ubuntu 20.04 LTS 5.1.9-1ubuntu0.1
  • giflib Ubuntu 22.04 LTS 5.1.9-2ubuntu0.1
  • giflib Ubuntu Pro 16.04 LTS 5.1.4-0.3~16.04.1+esm1
  • giflib Ubuntu Pro 18.04 LTS 5.1.4-2ubuntu0.1+esm1

ubuntu advisories UBUNTU-CVE-2022-28506

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • giflib SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 5.0.5-13.6.1
  • giflib SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES for SAP 15 SP2 +12 more 5.2.2-150000.4.13.1

suse advisories SUSE-SU-2024:2607-1SUSE-SU-2024:0786-1

  • giflib Alpine 3.24, Alpine 3.23, Alpine 3.22 +5 more 5.2.1-r2

alpine advisories ALPINE-CVE-2022-28506

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • giflib CBL-Mariner 2.0, Azure Linux 3.0 5.2.1-7

azure linux advisories AZL-10305AZL-34727

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-28506 updated cvss 5.5

giflib: buffer overflow in function DumpScreen2RGB()

  • Red Hat Enterprise Linux 6 giflib, giflib-utils Red Hat Enterprise Linux 7 giflib, giflib-utils
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 giflib Red Hat Enterprise Linux 9 giflib
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.25% chance of exploitation in the next 30 days, higher than 69% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/verf1sh/Poc/blob/master/giflib_poc referenced PoC, tagged "exploit" by a source, unverified
  • github.com https://github.com/verf1sh/Poc/blob/master/asan_report_giflib.png referenced PoC, tagged "exploit" by a source, unverified
  • sourceforge.net https://sourceforge.net/p/giflib/bugs/159/ referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:P/I:N/A:N
OSV 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
julia Giflib_jll
>=5.2.1+0, <5.2.2+0
5.2.2+0

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.