Critical macOS Screen Sharing Vulnerability Grants Remote Root Access; CISA Raises Severity to 9.8 Amid Monero Cryptojacking Attacks

0
2

Key Takeaways

  • The Dutch NCSC‑NL warned on August 12 that attackers are actively exploiting CVE‑2026-65400, an authentication bypass in macOS Screen Sharing, to gain root access and install Monero miners.
  • Apple released an out‑of‑band patch on August 6 covering macOS Tahoe 26.6.1, Sequoia 15.7.9 and Sonoma 14.8.9, but the flaw was still being abused because many systems remained unpatched or exposed.
  • CISA initially scored the vulnerability CVSS 7.1 (requiring low privileges) but on August 14 raised it to 9.8 (critical) and marked it as automatable, reflecting the ease of large‑scale exploitation.
  • Public proof‑of‑concept code appeared shortly after the advisory, enabling attackers to scan the Internet for port 5900 and compromise unattended Macs at scale.
  • Immediate mitigation includes disabling Screen Sharing (System Settings > General > Sharing) or applying the Apple security update; organizations should also restrict port 5900 to trusted networks and monitor for anomalous cryptocurrency‑miner activity.

Overview of the Vulnerability and Exploitation
The flaw resides in the Screen Sharing service, a VNC‑based remote desktop feature built into macOS that listens on TCP port 5900 by default when enabled. An attacker who can reach this port over the network can bypass authentication entirely, obtaining root‑level privileges without needing any valid credentials. Once privileged, the adversary can execute arbitrary commands, install persistence mechanisms, and—according to the NCSC‑NL reports—deploy a Monero cryptocurrency miner that consumes CPU resources for illicit profit. The vulnerability is therefore a classic “privilege‑escalation via authentication bypass” that turns a benign remote‑desktop tool into a foothold for full system compromise.


Timeline of Discovery and Patch
Apple first addressed the issue in an out‑of‑band security update released on August 6, which covered macOS Tahoe 26.6.1, Sequoia 15.7.9 and Sonoma 14.8.9. The update’s release notes described the fix as “improved state management during authentication.” The Dutch National Cyber Security Centre (NCSC‑NL) initially flagged the vulnerability in an advisory on August 7, urging immediate patching. A follow‑up notice on August 12 added that public exploit code was now available and that active abuse had been observed on multiple internet‑exposed Macs. The rapid succession of discovery, patch, and exploit underscores the narrow window defenders had to protect their systems before attackers weaponized the flaw.


Technical Details of CVE-2026-65400
At its core, CVE-2026-65400 stems from insufficient validation of the authentication handshake within the Screen Sharing daemon. When a client initiates a VNC session, the server expects a sequence of messages that prove knowledge of a valid password. The bug allows an attacker to craft a malformed packet that tricks the server into advancing to the authenticated state without checking the supplied credentials. Consequently, the daemon grants the client full access to the virtual desktop, which runs with the privileges of the logged‑in user—typically an administrator—and, through built‑in privilege‑escalation mechanisms, yields root access. Researchers demonstrated the bypass at the Black Hat conference, showing a video where a remote attacker obtained a root shell on an unpatched Mac in seconds.


Impact of CISA CVSS Score Revision
When the vulnerability was first logged, the National Vulnerability Database (NVD) assigned it a CVSS v3.1 base score of 7.1, reflecting an attack vector that required low‑level privileges and only partial impact on confidentiality, integrity, and availability. On August 14, CISA revised the score to 9.8 (Critical) after altering the vector to indicate no privileges needed and complete compromise of all three security properties. Simultaneously, CISA changed the exploitability assessment from “not automatable” to “automatable,” recognizing that attackers can script mass scans of port 5900 and reliably achieve root compromise without manual intervention. This re‑rating signals a substantially higher risk environment, especially for organizations with macOS devices inadvertently exposed to the Internet.


Observations from NCSC‑NL and Real‑World Attacks
The NCSC‑NL’s August 12 advisory noted that in every reported case, attackers not only gained root access but also deployed a Monero miner, indicating a financially motivated campaign. The presence of the miner suggests that the attackers prioritized persistent, low‑notice revenue generation over data theft or sabotage, although the same foothold could be repurposed for more destructive payloads. The advisory also highlighted that many compromised systems were “unattended” Macs—such as macOS servers, development workstations, or lab machines—left with Screen Sharing enabled for convenience but lacking adequate network segmentation or monitoring. This pattern aligns with the automated nature of the exploit: attackers can scan the Internet, identify open port 5900, deliver the payload, and install the miner without human interaction.


Mitigation Recommendations
For administrators unable to apply the August 6 update immediately, the safest interim measure is to disable Screen Sharing entirely via System Settings > General > Sharing. If the service must remain enabled, restrict inbound access to port 5900 through host‑based firewalls or network‑level ACLs, allowing only trusted IP addresses. Additionally, enable logging for the Screen Sharing daemon and monitor for anomalous processes—particularly those associated with known cryptocurrency‑miner binaries. Deploying endpoint‑detection‑and‑response (EDR) solutions that flag unauthorized privilege escalation or unexpected miner activity can provide an extra layer of defense. Finally, maintain an inventory of macOS assets and verify that all devices are running the patched versions (Tahoe 26.6.1, Sequoia 15.7.9, Sonoma 14.8.9) as part of routine vulnerability‑management cycles.


Broader Context: Screen Sharing and macOS Security
Screen Sharing is a convenient tool for remote administration, but its exposure to the Internet has historically attracted attackers seeking easy entry points. Prior to CVE-2026-65400, Apple patched a related issue (CVE‑2026-43760) in the late‑July security round, which required valid credentials to exploit. The back‑to‑back fixes highlight a growing focus on hardening the VNC‑based service, yet they also illustrate the risk posed by legacy features that may not receive the same scrutiny as newer components. As macOS adoption expands in enterprise and cloud environments, the attack surface for services like Screen Sharing widens, making proactive configuration management—disabling unused services, applying patches promptly, and enforcing network segmentation—critical to maintaining a strong security posture.


Conclusion and Outlook
The exploitation of CVE-2026-65400 serves as a stark reminder that even seemingly innocuous macOS features can become high‑impact attack vectors when left unpatched and exposed. The rapid evolution of the vulnerability’s CVSS score—from 7.1 to a critical 9.8, coupled with its classification as automatable—underscores the severity of the threat and the need for swift, coordinated response. Organizations should prioritize applying Apple’s out‑of‑band update, disable Screen Sharing where unnecessary, and implement network controls to limit exposure to port 5900. By combining timely patching with vigilant monitoring and proper configuration, defenders can neutralize this specific threat while strengthening their overall resilience against similar authentication‑bypass flaws in the future.

SignUpSignUp form

LEAVE A REPLY

Please enter your comment!
Please enter your name here