{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39316 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-39316 is a medium-severity use after free vulnerability in OpenPrinting cups, published on 7 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-39316 and fix it if it is affected.\n\nWhat it is: CVE-2026-39316 is a medium-severity use after free vulnerability in OpenPrinting cups, published on 7 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39316 exists.\n\nAffected product: OpenPrinting cups. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-39316/ (Markdown: https://insights.sbomify.com/CVE-2026-39316/index.md)","id":"CVE-2026-39316","markdown":"https://insights.sbomify.com/CVE-2026-39316/index.md","name":"CVE-2026-39316","record":{"aliases":["ALPINE-CVE-2026-39316","AZL-81935","BELL-CVE-2026-39316","DEBIAN-CVE-2026-39316","ECHO-2ca9-f843-b23e","GHSA-pjv5-prqp-46rg","ROOT-OS-DEBIAN-12-CVE-2026-39316","ROOT-OS-DEBIAN-13-CVE-2026-39316","UBUNTU-CVE-2026-39316"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"CUPS printing system","requires_auth":"none","summary":"A use-after-free in CUPS allows attackers to crash the daemon or potentially execute code via heap grooming.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cups","vendor":"openprinting"}],"cvss":{"score":4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"description":"OpenPrinting CUPS is an open source printing system for Linux and other Unix-like operating systems. In versions 2.4.16 and prior, a use-after-free vulnerability exists in the CUPS scheduler (cupsd) when temporary printers are automatically deleted. cupsdDeleteTemporaryPrinters() in scheduler/printers.c calls cupsdDeletePrinter() without first expiring subscriptions that reference the printer, leaving cupsd_subscription_t.dest as a dangling pointer to freed heap memory. The dangling pointer is subsequently dereferenced at multiple code sites, causing a crash (denial of service) of the cupsd daemon. With heap grooming, this can be leveraged for code execution.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"CUPS has a use-after-free in `cupsdDeleteTemporaryPrinters` via dangling subscription pointer","id":"CVE-2026-39316","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"use_after_free","year":"2026"},"n_packages":0,"n_references":1,"next":{"headline":"ChurchCRM has a DDL SQL Injection in GroupPropsFormRowOps.php","id":"CVE-2026-39318"},"packages":[],"prev":{"headline":"Unhead has a hasDangerousProtocol() bypass via leading-zero padded HTML entities in useHeadSafe()","id":"CVE-2026-39315"},"products":["cups"],"published":"2026-04-07","related":[{"cvss_score":8,"headline":"cups has Authentication bypass with AuthType Negotiate","id":"CVE-2025-58060","kev_date_added":null,"published":"2025-09-11"},{"cvss_score":6.5,"headline":"Path traversal in cups","id":"CVE-2026-34978","kev_date_added":null,"published":"2026-04-03"},{"cvss_score":6.5,"headline":"cups: Remote DoS via null dereference","id":"CVE-2025-58364","kev_date_added":null,"published":"2025-09-11"},{"cvss_score":6.1,"headline":"OpenPrinting CUPS: Shared PostScript queue lets anonymous Print-Job requests reach `lp` code execution over the network","id":"CVE-2026-34980","kev_date_added":null,"published":"2026-04-03"},{"cvss_score":6,"headline":"OpenPrinting CUPS vulnerable to stack based out-of-bound write","id":"CVE-2025-61915","kev_date_added":null,"published":"2025-11-29"},{"cvss_score":5.7,"headline":"CUPS copy_model() creates a predictable PPD tempfile without O_EXCL/O_NOFOLLOW (symlink TOCTOU, lp → root)","id":"CVE-2026-55480","kev_date_added":null,"published":"2026-10-15"},{"cvss_score":5.3,"headline":"OpenPrinting CUPS: root-side banner file disclosure","id":"CVE-2026-61702","kev_date_added":null,"published":"2026-10-15"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-09","vendors":["OpenPrinting"]},"summary":"A use-after-free in CUPS allows attackers to crash the daemon or potentially execute code via heap grooming.","url":"https://insights.sbomify.com/CVE-2026-39316/"}