CVE-2023-34241Openprinting Cups
High 7.1
Follow: this CVE · Openprinting · Openprinting Cups We alert you by email or Slack (account required).
- Priority
- 43
- CVSS 3.1
- 7.1
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 72
- Auth required
- Yes
- Published
- Jun 22, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-416
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Cups.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| openprinting | cups | ≥ 2.2.0 < 2.4.6 |
| fedoraproject | fedora | 37 |
| fedoraproject | fedora | 38 |
| debian | debian_linux | 10.0 |
| apple | macos | < 11.7.9 |
| apple | macos | ≥ 12.0.0 < 12.6.8 |
| apple | macos | ≥ 13.0 < 13.5 |
Official sources
References
Links published by the sources. Open them with care.
- www.openwall.com Mailing List Third Party Advisory
- www.openwall.com Mailing List Third Party Advisory
- github.com Patch
- github.com Release Notes
- github.com Exploit Patch Vendor Advisory
- lists.debian.org Mailing List
- lists.fedoraproject.org Mailing List
- lists.fedoraproject.org Mailing List Third Party Advisory
- support.apple.com Third Party Advisory
- support.apple.com Third Party Advisory
- support.apple.com Third Party Advisory