cve.bz

CVE-2023-48161 giflib project giflib: Out-of-bounds Write

7.1 highExploit referenceEPSS 0.4%

High (7.1) in giflib project giflib. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
Buffer Overflow vulnerability in GifLib Project GifLib v.5.2.1 allows a local attacker to obtain sensitive information via the DumpSCreen2RGB function in gif2rgb.c

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 37th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-48161 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-48161?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-48161?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-48161 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
giflib_project:giflib5.2.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12giflibno fix listedDEBIAN-CVE-2023-48161
Debian13, 14giflib5.2.2-1DEBIAN-CVE-2023-48161
Red Hatenterprise_linux:8::appstreamjava-21-openjdk, java-21-openjdk-src, java-21-openjdk-demo and 10 more1:21.0.5.0.10-3.el8RHSA-2024:8127
Red Hatenterprise_linux:8::appstream, rhel_eus:8.8::appstreamjava-1.8.0-openjdk, java-1.8.0-openjdk-src, java-1.8.0-openjdk-demo and 10 more1:1.8.0.432.b06-2.el8RHSA-2024:8117
Red Hatenterprise_linux:8::appstream, rhel_eus:8.8::appstreamjava-11-openjdk, java-11-openjdk-src, java-11-openjdk-demo and 10 more1:11.0.25.0.9-2.el8RHSA-2024:8121
Red Hatenterprise_linux:8::appstream, rhel_eus:8.8::appstreamjava-17-openjdk, java-17-openjdk-src, java-17-openjdk-demo and 10 more1:17.0.13.0.11-3.el8RHSA-2024:8124
Red Hatenterprise_linux:8::crbjava-21-openjdk-debuginfo, java-21-openjdk-fastdebug, java-21-openjdk-slowdebug and 21 more1:21.0.5.0.10-3.el8RHSA-2024:8127
Red Hatenterprise_linux:8::crb, rhel_eus:8.8::crbjava-1.8.0-openjdk-debuginfo, java-1.8.0-openjdk-fastdebug, java-1.8.0-openjdk-slowdebug and 22 more1:1.8.0.432.b06-2.el8RHSA-2024:8117
Red Hatenterprise_linux:8::crb, rhel_eus:8.8::crbjava-11-openjdk-debuginfo, java-11-openjdk-fastdebug, java-11-openjdk-slowdebug and 21 more1:11.0.25.0.9-2.el8RHSA-2024:8121
Red Hatenterprise_linux:8::crb, rhel_eus:8.8::crbjava-17-openjdk-debuginfo, java-17-openjdk-fastdebug, java-17-openjdk-slowdebug and 21 more1:17.0.13.0.11-3.el8RHSA-2024:8124
Red Hatenterprise_linux:9::appstreamjava-21-openjdk, java-21-openjdk-src, java-21-openjdk-demo and 10 more1:21.0.5.0.10-3.el9RHSA-2024:8127
Red Hatenterprise_linux:9::appstream, rhel_eus:9.2::appstreamjava-1.8.0-openjdk, java-1.8.0-openjdk-src, java-1.8.0-openjdk-demo and 9 more1:1.8.0.432.b06-2.el9RHSA-2024:8117
Red Hatenterprise_linux:9::appstream, rhel_eus:9.2::appstreamjava-11-openjdk, java-11-openjdk-src, java-11-openjdk-demo and 10 more1:11.0.25.0.9-2.el9RHSA-2024:8121
Red Hatenterprise_linux:9::appstream, rhel_eus:9.2::appstreamjava-17-openjdk, java-17-openjdk-src, java-17-openjdk-demo and 10 more1:17.0.13.0.11-3.el9RHSA-2024:8124
18 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 11 moregiflib5.2.2-150000.4.13.1SUSE-SU-2024:0786-1
openSUSELeap 15.5giflib5.2.2-150000.4.13.1SUSE-SU-2024:0786-1
openSUSETumbleweedgiflib5.2.2-1.1openSUSE-SU-2024:13723-1
AlmaLinux8java-1.8.0-openjdk, java-1.8.0-openjdk-src, java-1.8.0-openjdk-demo and 17 more1:1.8.0.432.b06-2.el8ALSA-2024:8117
AlmaLinux8java-11-openjdk, java-11-openjdk-src, java-11-openjdk-demo and 20 more1:11.0.25.0.9-2.el8ALSA-2024:8121
AlmaLinux8java-17-openjdk, java-17-openjdk-src, java-17-openjdk-demo and 20 more1:17.0.13.0.11-3.el8ALSA-2024:8124
AlmaLinux8java-21-openjdk, java-21-openjdk-src, java-21-openjdk-demo and 20 more1:21.0.5.0.10-3.el8.alma.1ALSA-2024:8127
AlmaLinux9java-1.8.0-openjdk, java-1.8.0-openjdk-src, java-1.8.0-openjdk-demo and 14 more1:1.8.0.432.b06-2.el9ALSA-2024:8117
AlmaLinux9java-11-openjdk, java-11-openjdk-src, java-11-openjdk-demo and 20 more1:11.0.25.0.9-2.el9ALSA-2024:8121
AlmaLinux9java-17-openjdk, java-17-openjdk-src, java-17-openjdk-demo and 20 more1:17.0.13.0.11-3.el9.alma.1ALSA-2024:8124
AlmaLinux9java-21-openjdk, java-21-openjdk-src, java-21-openjdk-demo and 20 more1:21.0.5.0.10-3.el9.alma.1ALSA-2024:8127
Rocky Linux8java-1.8.0-openjdk1:1.8.0.432.b06-2.el8RLSA-2024:8117
Rocky Linux8java-11-openjdk1:11.0.25.0.9-2.el8RLSA-2024:8121
Rocky Linux8java-17-openjdk1:17.0.13.0.11-3.el8RLSA-2024:8124
Rocky Linux8java-21-openjdk1:21.0.5.0.10-3.el8RLSA-2024:8127
Rocky Linux9java-1.8.0-openjdk1:1.8.0.432.b06-2.el9RLSA-2024:8117
Rocky Linux9java-11-openjdk1:11.0.25.0.9-2.el9RLSA-2024:8121
Rocky Linux9java-17-openjdk1:17.0.13.0.11-3.el9RLSA-2024:8124
Rocky Linux9java-21-openjdk1:21.0.5.0.10-3.el9RLSA-2024:8127
Alpinev3.17, v3.18, v3.19 and 5 moregiflib5.2.2-r0ALPINE-CVE-2023-48161
Azure Linux2giflib5.2.1-7AZL-32035
Azure Linux3giflib5.2.1-7AZL-34729
Alpaquita23, streamgiflib5.2.2-r0BELL-CVE-2023-48161

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The CVE-2023-48161 vulnerability in GifLib presents a Moderate severity issue rather than an Important one due to several factors. Firstly, while the vulnerability allows for a heap buffer overflow in the DumpScreen2RGB function of gif2rgb.c, exploitation requires specific conditions, such as handling a specially crafted GIF during the image-saving process. This limits the attack surface and reduces the likelihood of exploitation in typical usage scenarios. Additionally, the vulnerability does not grant immediate remote code execution or privilege escalation capabilities, further mitigating its severity. Furthermore, effective mitigation measures, such as implementing input validation and proper error handling, can reduce the risk of exploitation.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Build of OpenJDK 11.0.25Fixed 2024-10-16RHSA-2024:8122
Red Hat Build of OpenJDK 11.0.25Fixed 2024-10-16RHSA-2024:8123
Red Hat Build of OpenJDK 17.0.13Fixed 2024-10-16RHSA-2024:8125
Red Hat Build of OpenJDK 17.0.13Fixed 2024-10-16RHSA-2024:8126
Red Hat Build of OpenJDK 21.0.4Fixed 2024-10-16RHSA-2024:8129
Red Hat Build of OpenJDK 21.0.5Fixed 2024-10-16RHSA-2024:8128
Red Hat Build of OpenJDK 8u432Fixed 2024-10-16RHSA-2024:8118
Red Hat Build of OpenJDK 8u432Fixed 2024-10-16RHSA-2024:8119
Red Hat Enterprise Linux 7 Extended Lifecycle Supportjava-1.8.0-openjdk-1:1.8.0.432.b06-1.el7_9Fixed 2024-10-17RHSA-2024:8116
Red Hat Enterprise Linux 7 Extended Lifecycle Supportjava-11-openjdk-1:11.0.25.0.9-1.el7_9Fixed 2024-10-16RHSA-2024:8120
Red Hat build of OpenJDK 11java-11-openjdk-portableWill not fix
Red Hat build of OpenJDK 11java-17-openjdk-portableAffected
Red Hat build of OpenJDK 11java-1.8.0-openjdk-portableWill not fix
Red Hat build of OpenJDK 17java-11-openjdk-portableAffected
Red Hat build of OpenJDK 17java-17-openjdk-portableNot affected
Red Hat build of OpenJDK 17java-1.8.0-openjdk-portableAffected
Red Hat build of OpenJDK 1.8java-11-openjdk-portableWill not fix
Red Hat build of OpenJDK 1.8java-17-openjdk-portableWill not fix
Red Hat build of OpenJDK 1.8java-1.8.0-openjdk-portableWill not fix
Red Hat Enterprise Linux 6giflibOut of support scope
41 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-48161.

References

Check your stackJSON