Skip to main content
Public proof of conceptFix available

CVE-2023-34241

A public proof of concept exists; no exploitation attested.

  • Published2023-06-22
  • Fixed in13.5 · 12.6.8 · 11.7.9
  • WeaknessCWE-416

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2023-06-2223:15CVE publishedNVD

Versions per branch

NVD
Apple macos
BranchAffectedFixed in
13.x≥ 13.0, < 13.513.5
12.x≥ 12.0.0, < 12.6.812.6.8
11.7< 11.7.911.7.9
Fedoraproject fedora
BranchAffectedFixed in
37.x= 37no fix published
38.x= 38no fix published
Debian debian linux
BranchAffectedFixed in
10.0= 10.0no fix published

1 more product in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • OpenPrinting cups
    Affected
    • = >= 2.0.0, < 2.4.6no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2023-07-28

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • cupsUbuntu:Pro:18.04:LTSall versions · fixed in 2.2.7-1ubuntu2.10+esm1
  • cupsUbuntu:Pro:16.04:LTSall versions · fixed in 2.1.3-4ubuntu0.11+esm3
  • cupsUbuntu:22.04:LTSall versions · fixed in 2.4.1op1-1ubuntu4.4
  • cupsUbuntu:20.04:LTSall versions · fixed in 2.3.1-9ubuntu1.4
  • cupsTuxCare:Ubuntu:18.04all versions · fixed in 2.2.7-1ubuntu2.10+tuxcare.els1and 15 other packages
  • cupsTuxCare:Ubuntu:16.04all versions · fixed in 2.1.3-4ubuntu0.11+tuxcare.els3and 18 other packages
  • cupsTuxCare:CentOS:8.5all versions · fixed in 1:2.2.6-40.el8.tuxcare.els2and 6 other packages
  • cupsTuxCare:CentOS:8.4all versions · fixed in 1:2.2.6-40.el8.tuxcare.els2and 6 other packages

63 more package ranges on OSV.dev

Vendor advisories

  • CVE-2023-34241 Red Hat Product Security366 products fixed · 14 known affected

    cups: use-after-free in cupsdAcceptClient() in scheduler/client.c

    cups as a component of Red Hat Enterprise Linux 6 · cups-devel as a component of Red Hat Enterprise Linux 6 · cups-libs as a component of Red Hat Enterprise Linux 6 · +11 more

  • RHSA-2024:1409 Red Hat Product Security88 products fixed

    Red Hat Security Advisory: cups security update

  • RHSA-2024:1101 Red Hat Product Security88 products fixed

    Red Hat Security Advisory: cups security update

  • RHSA-2023:7165 Red Hat Product Security88 products fixed

    Red Hat Security Advisory: cups security and bug fix update

  • RHSA-2023:6596 Red Hat Product Security102 products fixed

    Red Hat Security Advisory: cups security and bug fix update

Full record on NVD

Fix

  1. Update Apple macos to 13.5 · 12.6.8 · 11.7.9
  2. Vendor fix Red Hat Product Security RHSA-2024:1409 · 88 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 After installing this update, the cupsd service will be restarted automatically.
  3. No fix planned, says the vendor Red Hat Product Security CVE-2023-34241 · 14 productsOut of support scope

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2024-12-10
  • CNACVSS 3.15.3known since 2026-10-23
  • NVDCVSS 3.17.1read 2026-10-23
  • CNAweakness (CWE)CWE-416known since 2026-10-23
  • FIRST EPSSEPSS score1.4 %2026-11-18
  • OSVaffected packages—

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Published
2023-06-22
Last Modified
2026-06-17
NVD status
Modified

Frequently asked questions

What is CVE-2023-34241?

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.

Is CVE-2023-34241 actively exploited?

A proof-of-concept exploit exists for CVE-2023-34241, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2023-34241?

CVE-2023-34241 has a CVSS v3 base score of 7.1 (HIGH severity), with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H.

Running cups? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record