CVE-2023-34241
NixOS vulnerability analysis and mitigation

Overview

CVE-2023-34241 affects OpenPrinting CUPS (Common Unix Printing System), a standards-based, open source printing system for Linux and other Unix-like operating systems. The vulnerability was discovered in versions 2.0.0 through 2.4.6, where 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 (GHSA Advisory).

Technical details

The vulnerability is a use-after-free bug in the cupsdAcceptClient() function within scheduler/client.c. The issue occurs when the function httpClose(con->http) is called before cupsdLogClient attempts to use the freed pointer with httpGetHostname. This happens when LogLevel is set to warn or higher and either 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. The vulnerability has been assigned a CVSS v3.1 base score of 7.1 (HIGH) (NVD).

Impact

The vulnerability impacts the entire cupsd process and could allow a local unprivileged attacker to exfiltrate private keys and sensitive information from a privileged cups daemon. Additionally, it could be exploited to cause a denial-of-service condition by making the process crash (GHSA Advisory).

Mitigation and workarounds

The vulnerability has been patched in CUPS version 2.4.6. Users are advised to upgrade to this version or apply the available security patches. The fix involves modifying the code to log data before closing the connection (CUPS Release). Multiple vendors have released updates to address this vulnerability, including Red Hat, Debian, Fedora, and Apple in their respective products (Debian Advisory, Fedora Update).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-14330CRITICAL9.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox:*:*:*:*:esr:*:*:*
NoYesDec 09, 2025
CVE-2025-14329HIGH8.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox_esr
NoYesDec 09, 2025
CVE-2025-14333HIGH8.1
  • NixOSNixOS
  • firefox-esr
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • thunderbird
NoYesDec 09, 2025
CVE-2025-14331MEDIUM6.5
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management