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

Exp

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.

公開: 2023-06-22 最終更新: 2026-06-17 Assigner: [email protected] ソース: [email protected]

総合評価: CVE-2023-34241 は悪用リスクが高い(60.4/100)。CVSS 深刻度は中。悪用される可能性が高い(EPSS 1.40%、69 パーセンタイル) 根拠: 公開エクスプロイトが 1 件参照されています(Exploit-DB)。 推奨対応: 公開エクスプロイトが確認されています。影響範囲の確認、緩和策の適用、パッチ適用を優先してください。

リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。

CVE-2023-34241 に関する公開 exploit 参照(Exploit-DB)

EDB-ID ソース 種別 公開 リンク
nvd_ref exploit_tag Exploit-DB ↗

CVE-2023-34241 の EPSS(Exploit Prediction Scoring System)スコア

EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。

# 日付 旧 EPSS スコア 新 EPSS スコア Δ(新 − 旧)
1 2026-06-23 1.34% 1.40% +0.05%
2 2026-06-15 0.06% 1.34% +1.29%
3 2026-05-06 0.06%

EPSS の全履歴 (全 18 件)

CVE-2023-34241 の CVSS(Common Vulnerability Scoring System)指標

この CVE の CVSS 指標。

ベーススコア バージョン 深刻度 ベクトル 悪用しやすさ 影響 スコアの出典
5.3 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L クリックして展開
攻撃ベクター (AV:N)
インターネットなど、ルーティングされたネットワーク越しに遠隔から悪用しうる。端末の前にいる必要はない。
攻撃の複雑さ (AC:L)
攻撃者が条件を満たせば、レース条件や珍しい構成に依存せずに再現しやすい。
必要な権限 (PR:N)
事前のログインや昇格は不要で、匿名アクセスのまま踏み台にしうる。
ユーザーの関与 (UI:N)
メールのリンクを開く、マクロを有効にするなど、被害者の協力がなくても成立しうる。
スコープ (S:U)
影響は脆弱コンポーネントと同一のセキュリティ権限・信頼境界の内側に収まる。
機密性への影響 (C:N)
機微情報の漏えいは想定しにくい。
完全性への影響 (I:N)
改ざん・なりすましによる信頼毀損は軽微か、想定されない。
可用性への影響 (A:L)
遅延や一部機能の停止、断続的な障害など、運用で吸収しうる範囲。
3.9 1.4 [email protected]
7.1 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H クリックして展開
攻撃ベクター (AV:L)
対象ホスト上でコードを実行できること、または別ユーザーの誤操作・悪意ある操作が前提になる。
攻撃の複雑さ (AC:L)
攻撃者が条件を満たせば、レース条件や珍しい構成に依存せずに再現しやすい。
必要な権限 (PR:L)
一般ユーザー権限があれば足り、管理者(root 相当)は不要。
ユーザーの関与 (UI:N)
メールのリンクを開く、マクロを有効にするなど、被害者の協力がなくても成立しうる。
スコープ (S:U)
影響は脆弱コンポーネントと同一のセキュリティ権限・信頼境界の内側に収まる。
機密性への影響 (C:H)
広範な機微データの読み取りや持ち出しが現実的。
完全性への影響 (I:N)
改ざん・なりすましによる信頼毀損は軽微か、想定されない。
可用性への影響 (A:H)
長時間のサービス停止、データ損壊による復旧不能に近い状態など、利用者に著しい不便を与えうる。
1.8 5.2 [email protected]

CVE-2023-34241 の弱点分類(列挙)

CVE-2023-34241 の OS トラッカー

vendor priority summary link
alpine high CVE-2023-34241: 1 source package rows (cups); 36 state rows across 6 repos (3.17-main, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 1, open 35. https://security.alpinelinux.org/vuln/CVE-2023-34241
debian not yet assigned CVE-2023-34241 not yet assigned priority: Debian including 1 source packages (cups), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2023-34241
gentoo high CVE-2023-34241: 1 GLSA(s) (202402-17), 1 atom(s) (net-print/cups); latest impact high. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2023-34241
redhat medium https://access.redhat.com/security/cve/CVE-2023-34241
suse high CVE-2023-34241 severity important: SUSE including 304 source package names (6.0-baremetal:glibc-2.38-slfo.1.1_4.1, 6.0-base:glibc-2.38-slfo.1.1_4.1, …), 1002 product×package rows across 263 product lines (Container rancher/elemental-channel/sl-micro, Container suse/kiosk/firefox-esr, … (263 product lines)): Fixed 832, Known Affected 160, Known Not Affected 10. https://www.suse.com/security/cve/CVE-2023-34241/
ubuntu medium CVE-2023-34241 medium priority: Ubuntu including 1 source packages (cups), 8 status rows across 8 suites (bionic, focal, jammy, kinetic, lunar, trusty, upstream, xenial): released 6, ignored 1, needs-triage 1. https://ubuntu.com/security/CVE-2023-34241

CVE-2023-34241 の影響を受けるソフトウェア/構成

ベンダー 製品 バージョン 生の CPE
openprinting cups >= 2.2.0, < 2.4.6 cpe:2.3:a:openprinting:cups:*:*:*:*:*:*:*:*
fedoraproject fedora 37 cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
fedoraproject fedora 38 cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*
debian debian_linux 10.0 cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
apple macos < 11.7.9 cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:*
apple macos >= 12.0.0, < 12.6.8 cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:*
apple macos >= 13.0, < 13.5 cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:*

CVE-2023-34241 の参考情報

URL タグ
http://www.openwall.com/lists/oss-security/2023/06/23/10 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2023/06/26/1 Mailing List Third Party Advisory
https://github.com/OpenPrinting/cups/commit/9809947a959e18409dcf562a3466ef246cb90cb2 Patch
https://github.com/OpenPrinting/cups/releases/tag/v2.4.6 Release Notes
https://github.com/OpenPrinting/cups/security/advisories/GHSA-qjgh-5hcq-5f25 Exploit Patch Vendor Advisory
https://lists.debian.org/debian-lts-announce/2023/06/msg00038.html Mailing List
https://lists.fedoraproject.org/archives/list/[email protected]/message/7I7DWGYGEMBNLZF5UQBMF3SONR37YUBN/ Mailing List
https://lists.fedoraproject.org/archives/list/[email protected]/message/TBIYKDS3UG3W4Z7YOHTR2AWFNBRYPNYY/ Mailing List Third Party Advisory
https://support.apple.com/kb/HT213843 Third Party Advisory
https://support.apple.com/kb/HT213844 Third Party Advisory
https://support.apple.com/kb/HT213845 Third Party Advisory
cvelogic Threat Intelligence