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?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2023-06-2223:15CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 13.x | ≥ 13.0, < 13.5 | 13.5 | NVD |
| 12.x | ≥ 12.0.0, < 12.6.8 | 12.6.8 | NVD |
| 11.7 | < 11.7.9 | 11.7.9 | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 37.x | = 37 | no fix published | NVD |
| 38.x | = 38 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 10.0 | = 10.0 | no fix published | NVD |
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 cupsAffected
- = >= 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
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
Red Hat Security Advisory: cups security update
Red Hat Security Advisory: cups security update
Red Hat Security Advisory: cups security and bug fix update
Red Hat Security Advisory: cups security and bug fix update
Fix
- Update Apple macos to 13.5 · 12.6.8 · 11.7.9
- 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.
- No fix planned, says the vendor Red Hat Product Security CVE-2023-34241 · 14 productsOut of support scope
Advisories and patches
- github.comPatch
- github.comRelease Notes
- github.comPatch · Vendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2024-12-10
- PoC-in-GitHubno public repository identifiedread 2026-11-19
- Metasploit modules
- none listed Metasploit Framework
Sources
Identifiers
- AZL-37074same flawAzure Linux · MIT
- AZL-37099same flawAzure Linux · MIT
- EUVD-2023-38329same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- ALSA-2023:6596advisory covering several CVEsAlmaLinux · MIT
- ALSA-2023:7165advisory covering several CVEsAlmaLinux · MIT
- DLA-3476-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2023-0223advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2023-1410advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2024:13017-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2023:6596advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:7165advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:1101advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:1409advisory covering several CVEsRed Hat · CC-BY-4.0
- SUSE-SU-2023:2616-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3706-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:20090-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-6184-1advisory covering several CVEsUbuntu
- USN-6184-2advisory covering several CVEsUbuntu
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?
Is CVE-2023-34241 actively exploited?
What is the CVSS score for CVE-2023-34241?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2024-47175same product
- CVE-2024-35235same product
- CVE-2026-34980same productOpenPrinting CUPS: Shared PostScript queue lets anonymous Print-Job requests reach `lp` code execution over the network
- CVE-2023-32324same product
- CVE-2025-58364same product
- CVE-2020-10001same product
- CVE-2025-58060same product
- CVE-2023-4504same product
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0