Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2026-39875: Privilege escalation in macOS CUPS cupsd

Published Jul 27, 2026 · Updated 29 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS0.32%27th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Apple
IdentifiersCVE-2026-39875CWE-269

CVE-2026-39875 is a local privilege-escalation vulnerability in the Common UNIX Printing System (CUPS) on macOS, affecting the privileged cupsd daemon. The issue is described as a permissions or privilege-boundary flaw addressed by adding additional restrictions. Available technical reporting indicates the bug can be exploited by chaining two logic flaws: an unprivileged local user can register a malicious printer, capture a valid CUPS authentication token during printer probing, replay that token, and configure a printer device URI that causes cupsd to perform file operations on an attacker-selected local path. Because cupsd may begin root-privileged file handling before authentication validation has fully completed, attacker-controlled print data can be written to a chosen local file as root. The vulnerability affects macOS Sonoma before 14.8.8, macOS Sequoia before 15.7.8, and macOS Tahoe before 26.6.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows an unprivileged local attacker or malicious local app to gain a root-privileged arbitrary file-write primitive. This can enable modification of sensitive local files not protected by System Integrity Protection, potentially leading to full root privilege escalation, persistence, security control tampering, or broader system compromise depending on the chosen target file, local permissions, and endpoint protections. Public reporting notes that the demonstrated proof of concept does not itself provide an interactive root shell, but the primitive is high impact and can create a practical path to root.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, reduce exposure by restricting unnecessary local printer administration capabilities, limiting who can register or modify printers, and closely monitoring CUPS-related activity. Defensive monitoring should focus on unusual local printer registrations, unexpected changes to printer device URIs, and suspicious print jobs targeting file-based destinations. These measures are compensating controls only and do not replace installing the vendor fix.

Remediation

Patch, then assume compromise.

Upgrade affected systems to macOS Sonoma 14.8.8, macOS Sequoia 15.7.8, or macOS Tahoe 26.6 or later. Apple fixed the issue by adding additional restrictions to address the underlying permissions and privilege-boundary weakness in CUPS.

Public exploits

Exploits

2 exploits validated by Mallory's analysis.

View more in app →
CVE-2026-39875-macOS-CUPS-LPESmall repository containing a single Python PoC (poc.py), a README describing the vulnerability chain, and a license. The exploit targets CVE-2026-39875, a local privilege escalation in macOS CUPS/cupsd. Its purpose is to demonstrate that an unprivileged local user can capture a privileged CUPS Local auth token during printer probing, replay that token to create or modify a printer with a malicious file:// device URI, and then trigger a root-privileged arbitrary file write by submitting a print job. The Python code manually builds IPP requests and sends raw HTTP POST requests to the local CUPS service on 127.0.0.1:631, primarily against /admin/. It defines constants for IPP operations such as CUPS_ADD_MODIFY_PRINTER, CUPS_ACCEPT_JOBS, RESUME_PRINTER, PRINT_JOB, DELETE_PRINTER, and CREATE_LOCAL_PRINTER. The script uses a local listener on 127.0.0.1:9189 to capture the forwarded Local authorization token from cupsd. After token capture, it repeatedly performs administrative printer operations and submits attacker-controlled print content to win the timing window described in the README. The default payload is operational rather than just demonstrative: it targets /etc/sudoers.d/<user> and writes a line granting the current user NOPASSWD sudo access. That yields practical root escalation once the file is successfully written. The exploit is not a scanner or detection script; it is an active local LPE PoC with a hardcoded privilege-escalation payload. The repository is straightforward, with poc.py as the sole entry point and all exploit logic embedded in that file.mac-123456789-lab · Disclosed Jul 27, 2026 · python · markdown · local · networkOperationalCVE-2026-39875-macOS-CUPSThis repository is a compact standalone Python proof-of-concept for CVE-2026-39875 affecting macOS CUPS on Tahoe, Sequoia, and Sonoma before the patched versions noted in the README. Repository structure is minimal: `README.md` explains the bug chain and usage, `poc.py` contains the exploit logic, and `LICENSE` is MIT. The exploit is a real local privilege-boundary bypass / arbitrary root file write PoC rather than a detector. Its core capability is chaining two CUPS logic flaws: first, it captures a privileged Local authentication token that `cupsd` forwards to an attacker-controlled backend during printer probing; second, it replays that token to perform privileged printer administration and abuses a timing window so `cupsd` writes attacker-controlled print-job content to an attacker-selected `file://` path as root. From the visible code, `poc.py` manually constructs IPP requests, sends raw HTTP POST requests to the local CUPS service on port 631, and uses `/admin/` for privileged operations such as add/modify printer, accept jobs, and resume printer. It defines a local capture listener on `127.0.0.1:9189` to receive the forwarded token, then repeatedly performs printer administration and print-job submission in a loop to hit the vulnerable timing window. The default demonstration target is `/Users/<current_user>/demo`, and the payload content is a simple line of text written as root. The script checks whether CUPS is reachable, may attempt a restart if not, captures the token, runs the exploitation phase, and verifies success by listing the resulting file. Overall, this is an operational local exploit PoC for arbitrary file write as root on vulnerable macOS systems. It does not include a post-exploitation privilege escalation payload beyond the root file write demonstration, and the README explicitly notes that it demonstrates arbitrary file write as root rather than a full root shell or direct privilege escalation.5ky9uy · Disclosed Jul 31, 2026 · python · markdown · local · networkOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
AppleMacosoperating_system
FAQ

Frequently asked questions

Is CVE-2026-39875 exploited in the wild?
As of Nov 3, 2026, Mallory has no reports of CVE-2026-39875 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-39875?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2026-39875, the earliest disclosed Jul 27, 2026.
Is there a patch for CVE-2026-39875?
Upgrade affected systems to macOS Sonoma 14.8.8, macOS Sequoia 15.7.8, or macOS Tahoe 26.6 or later. Apple fixed the issue by adding additional restrictions to address the underlying permissions and privilege-boundary weakness in CUPS.
What products are affected by CVE-2026-39875?
Apple Macos.
How severe is CVE-2026-39875?
CVE-2026-39875 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.32% (27th percentile) as of Nov 3, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity6Community discussion across Reddit, Mastodon, and other social sources.