cve.bz

CVE-2023-34241 Use After Free

7.1 highExploit referenceEPSS 1.4%Fix available

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

On this page
OpenPrinting CUPS is a standards-based, open source printing system for Linux and other Unix-like operating systems. Starting in version 2.0.0 and prior to version 2.4.6, CUPS logs data of free memory to the logging service AFTER the connection has been closed, when it should have logged the data right before. This is a use-after-free bug that impacts the entire cupsd process. The exact cause of this issue is the function `httpClose(con->http)` being called in `scheduler/client.c`. The problem is that httpClose always, provided its argument is not null, frees the pointer at the end of the call, only for cupsdLogClient to pass the pointer to httpGetHostname. This issue happens in function `cupsdAcceptClient` if LogLevel is warn or higher and in two scenarios: there is a double-lookup for the IP Address (HostNameLookups Double is set in `cupsd.conf`) which fails to resolve, or if CUPS is compiled with TCP wrappers and the connection is refused by rules from `/etc/hosts.allow` and `/etc/hosts.deny`. Version 2.4.6 has a patch for this issue.

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
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 73rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2024-12-10. 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-416 Use After Free
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-34241 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-34241?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-34241?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-34241 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
openprinting:cupsfrom 2.2.0 before 2.4.6
fedoraproject:fedora37
fedoraproject:fedora38
debian:debian_linux10.0
apple:macosbefore 11.7.9
apple:macosfrom 12.0.0 before 12.6.8
apple:macosfrom 13.0 before 13.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10cups2.2.10-6+deb10u8DLA-3476-1
Debian12cups2.4.2-3+deb12u1DEBIAN-CVE-2023-34241
Debian13, 14cups2.4.2-5DEBIAN-CVE-2023-34241
Ubuntu20.04:LTScups2.3.1-9ubuntu1.4UBUNTU-CVE-2023-34241 USN-6184-1
Ubuntu22.04:LTScups2.4.1op1-1ubuntu4.4UBUNTU-CVE-2023-34241 USN-6184-1
UbuntuPro:16.04:LTScups2.1.3-4ubuntu0.11+esm3UBUNTU-CVE-2023-34241 USN-6184-2
UbuntuPro:18.04:LTScups2.2.7-1ubuntu2.10+esm1UBUNTU-CVE-2023-34241 USN-6184-2
Red Hatenterprise_linux:8::appstreamcups, cups-lpd, cups-devel and 9 more1:2.2.6-54.el8_9RHSA-2023:7165
Red Hatenterprise_linux:8::baseoscups, cups-libs, cups-debuginfo and 5 more1:2.2.6-54.el8_9RHSA-2023:7165
Red Hatenterprise_linux:9::appstreamcups, cups-lpd, cups-devel and 11 more1:2.3.3op2-21.el9RHSA-2023:6596
Red Hatenterprise_linux:9::baseoscups, cups-libs, cups-debuginfo and 6 more1:2.3.3op2-21.el9RHSA-2023:6596
Red Hatrhel_eus:8.6::appstreamcups, cups-lpd, cups-devel and 9 more1:2.2.6-45.el8_6.4RHSA-2024:1101
Red Hatrhel_eus:8.6::baseoscups, cups-libs, cups-debuginfo and 5 more1:2.2.6-45.el8_6.4RHSA-2024:1101
Red Hatrhel_eus:8.8::appstreamcups, cups-lpd, cups-devel and 9 more1:2.2.6-51.el8_8.3RHSA-2024:1409
Red Hatrhel_eus:8.8::baseoscups, cups-libs, cups-debuginfo and 5 more1:2.2.6-51.el8_8.3RHSA-2024:1409
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP1-LTSS and 20 morecups2.2.7-150000.3.46.1SUSE-SU-2023:2616-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP4-ESPOS, Linux Enterprise Server 12 SP4-LTSS and 6 morecups1.7.5-20.46.1SUSE-SU-2023:3706-1
SUSELinux Micro 6.0cups2.4.11-1.1SUSE-SU-2025:20090-1
openSUSELeap 15.4, Leap 15.5, Leap Micro 5.3cups2.2.7-150000.3.46.1SUSE-SU-2023:2616-1
openSUSETumbleweedcups2.4.2-6.1openSUSE-SU-2024:13017-1
AlmaLinux8cups, cups-lpd, cups-libs and 4 more1:2.2.6-54.el8_9ALSA-2023:7165
AlmaLinux9cups, cups-lpd, cups-libs and 5 more1:2.3.3op2-21.el9ALSA-2023:6596
Alpinev3.15cups2.3.3-r8ALPINE-CVE-2023-34241
Alpinev3.16cups2.4.2-r2ALPINE-CVE-2023-34241
Alpinev3.17cups2.4.2-r3ALPINE-CVE-2023-34241
Azure Linux2cups2.3.3op2-7AZL-37074
Azure Linux3cups2.4.10-1AZL-37099

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

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8cups-1:2.2.6-54.el8_9Fixed 2023-11-14RHSA-2023:7165
Red Hat Enterprise Linux 8.6 Extended Update Supportcups-1:2.2.6-45.el8_6.4Fixed 2024-03-05RHSA-2024:1101
Red Hat Enterprise Linux 8.8 Extended Update Supportcups-1:2.2.6-51.el8_8.3Fixed 2024-03-19RHSA-2024:1409
Red Hat Enterprise Linux 9cups-1:2.3.3op2-21.el9Fixed 2023-11-07RHSA-2023:6596
Red Hat Enterprise Linux 6cupsOut of support scope
Red Hat Enterprise Linux 7cupsOut of support scope

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-34241.

References

Check your stackJSON