# CVE-2023-34241: CUPS vulnerable to use-after-free in cupsdAcceptClient()

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-06-22 · Modified: 2025-02-13
- Aliases: ALPINE-CVE-2023-34241, MGASA-2023-0223, SUSE-SU-2023:2616-1, UBUNTU-CVE-2023-34241, USN-6184-1, USN-6184-2, DEBIAN-CVE-2023-34241, DLA-3476-1, openSUSE-SU-2024:13017-1
- Record: https://cvemate.com/vulnerability/CVE-2023-34241 · JSON: https://cvemate.com/vulnerability/CVE-2023-34241/json

## Description

```text
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.
```

## Signals

- CVSS: 7.1 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- EPSS: 1.383%, percentile 73.121%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 35)

- alpine cups (Alpine Linux): ≥ 2.2.0, \< 2.3.3-r8 \| ≥ 2.2.0, \< 2.4.2-r2 \| ≥ 2.2.0, \< 2.4.2-r3
- apple macos: \< 11.7.9 \| ≥ 12.0.0, \< 12.6.8 \| ≥ 13.0, \< 13.5
- debian cups (Debian): \< 2.4.2-3+deb12u1 \| \< 2.4.2-5 \| \< 2.2.10-6+deb10u8
- ubuntu cups (Ubuntu): \< 2.1.3-4ubuntu0.11+esm3 \| \< 2.2.7-1ubuntu2.10+esm1 \| \< 2.3.1-9ubuntu1.4 \| \< 2.4.1op1-1ubuntu4.4
- debian debian\_linux: 10.0
- fedoraproject fedora: 37 \| 38
- mageia cups (Mageia): \< 2.3.3op2-1.3.mga8
- openprinting cups: ≥ 2.0.0, \< 2.4.6 \| ≥ 2.2.0, \< 2.4.6
- opensuse cups&distro=openSUSE Leap 15.4 (openSUSE): \< 2.2.7-150000.3.46.1
- opensuse cups&distro=openSUSE Leap 15.5 (openSUSE): \< 2.2.7-150000.3.46.1
- opensuse cups&distro=openSUSE Leap Micro 5.3 (openSUSE): \< 2.2.7-150000.3.46.1
- opensuse cups&distro=openSUSE Tumbleweed (openSUSE): \< 2.4.2-6.1
- suse cups&distro=SUSE Enterprise Storage 7 (SUSE Linux Enterprise): \< 2.2.7-150000.3.46.1
- suse cups&distro=SUSE Enterprise Storage 7.1 (SUSE Linux Enterprise): \< 2.2.7-150000.3.46.1
- suse cups&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS (SUSE Linux Enterprise): \< 2.2.7-150000.3.46.1
- suse cups&distro=SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS (SUSE Linux Enterprise): \< 2.2.7-150000.3.46.1
- suse cups&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS (SUSE Linux Enterprise): \< 2.2.7-150000.3.46.1
- suse cups&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS (SUSE Linux Enterprise): \< 2.2.7-150000.3.46.1
- suse cups&distro=SUSE Linux Enterprise Micro 5.2 (SUSE Linux Enterprise): \< 2.2.7-150000.3.46.1
- suse cups&distro=SUSE Linux Enterprise Micro 5.3 (SUSE Linux Enterprise): \< 2.2.7-150000.3.46.1

## References (first 20 of 24)

- <https://github.com/OpenPrinting/cups/security/advisories/GHSA-qjgh-5hcq-5f25>
- <https://github.com/OpenPrinting/cups/commit/9809947a959e18409dcf562a3466ef246cb90cb2>
- <https://github.com/OpenPrinting/cups/releases/tag/v2.4.6>
- <http://www.openwall.com/lists/oss-security/2023/06/23/10>
- <http://www.openwall.com/lists/oss-security/2023/06/26/1>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TBIYKDS3UG3W4Z7YOHTR2AWFNBRYPNYY/>
- <https://lists.debian.org/debian-lts-announce/2023/06/msg00038.html>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7I7DWGYGEMBNLZF5UQBMF3SONR37YUBN/>
- <https://support.apple.com/kb/HT213843>
- <https://support.apple.com/kb/HT213844>
- <https://support.apple.com/kb/HT213845>
- <https://security.alpinelinux.org/vuln/CVE-2023-34241>
- <https://advisories.mageia.org/MGASA-2023-0223.html>
- <https://bugs.mageia.org/show_bug.cgi?id=32040>
- <https://www.openwall.com/lists/oss-security/2023/06/22/4>
- <https://ubuntu.com/security/notices/USN-6184-1>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20232616-1/>
- <https://bugzilla.suse.com/1212230>
- <https://www.suse.com/security/cve/CVE-2023-34241>
- <https://ubuntu.com/security/CVE-2023-34241>

---

Data as of 2026-12-05T03:08:53.296Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
