Exploit in macOS Screen Sharing Enables Monero Miner Deployment on Public-Facing Macs

0
58

Key Takeaways

  • Apple issued emergency patches for macOS Tahoe 26.6.1, macOS Sequoia 15.7.9, and macOS Sonoma 14.8.9 to fix CVE‑2026-65400, a critical authentication bypass in the Screen Sharing component.
  • The flaw lets an attacker on the same network authenticate to Screen Sharing without valid credentials, enabling remote root access.
  • The Netherlands National Cyber Security Centre (NCSC‑NL) has confirmed active exploitation, with attackers deploying a Monero cryptocurrency miner on compromised systems.
  • Researchers disclosed related vulnerabilities in the same Screen Sharing code base, including a pre‑authentication bug that requires only the target’s IP address to achieve remote root.
  • Proof‑of‑concept exploits for both the authentication‑bypass and pre‑auth flaws were generated by an AI‑driven security team in under four hours, illustrating how AI accelerates weaponization.
  • Users should immediately apply the latest macOS updates; if patching is delayed, disabling Screen Sharing (General > Sharing > Toggle Screen Sharing) mitigates risk.

Overview of the Patched Vulnerability and Emergency Update
Apple released an emergency security update earlier this month addressing a critical flaw tracked as CVE‑2026-65400 (CVSS 9.8) that affects the Screen Sharing component across several macOS releases. The patches were applied to macOS Tahoe 26.6.1, macOS Sequoia 15.7.9, and macOS Sonoma 14.8.9, correcting defective state‑management logic that previously allowed unauthenticated authentication attempts. In its advisory dated August 6, 2026, Apple noted that the issue was “addressed with improved state management” and credited security researcher Alfredo Pesoli of Bynario for responsibly discovering and reporting the vulnerability. The update forms part of a broader set of fixes for the Screen Sharing Server component that also resolved three additional bugs identified in the same code base. By tightening credential validation and ensuring proper state transitions, Apple aimed to close a pathway that could be abused for full system compromise.


Technical Details of CVE-2026-65400 and Authentication Bypass
At its core, CVE‑2026-65400 is an authentication issue within the Screen Sharing daemon that permits an attacker already positioned on the local network to bypass the credential check required for establishing a remote desktop session. The vulnerability stems from improper handling of authentication state: a malformed or specially crafted packet can cause the daemon to incorrectly interpret a failed authentication attempt as successful, thereby advancing the internal state machine to an authenticated status. Once this state is reached, the attacker gains the same privileges as a legitimate Screen Sharing user, which, by default, includes the ability to execute commands with root privileges through built‑in administrative mechanisms. Apple’s patch rewrites the state‑management logic to enforce strict validation of credentials before allowing any state transition, effectively eliminating the bypass. The fix does not require changes to user‑visible features; it operates entirely within the daemon’s internal handling of VNC‑based authentication packets.


Active Exploitation and Cryptocurrency Miner Deployment
Following the public disclosure, the Netherlands National Cyber Security Centre (NCSC‑NL) issued an update to its advisory confirming that CVE‑2026-65400 is being actively exploited in the wild. According to the NCSC‑NL, multiple compromised systems with port 5900 (the default Screen Sharing/VNC port) exposed to the internet have been observed. In each case, attackers achieved root access and subsequently installed a Monero cryptocurrency miner, leveraging the victim’s CPU resources to generate illicit revenue. The NCSC‑NL noted that details such as the exact timing of the attacks, the overall scale of the campaign, whether the vulnerability was exploited as a zero‑day, and any additional malicious payloads beyond mining remain unknown at this time. Nevertheless, the confirmation of live exploitation underscores the urgency for administrators to apply the patches or mitigate exposure by disabling the service when not needed.


Related Screen Sharing Flaws and Additional CVEs
The emergency update also addressed three other vulnerabilities discovered in the Screen Sharing Server component, which were bundled with the fix for CVE‑2026-65400. These include:

  • CVE‑2026-43779 (CVSS 9.8) – A logic flaw that could allow an application to intercept network connections destined for another process, potentially enabling data theft or session hijacking.
  • CVE‑2026-43777 (CVSS 7.5) – An unspecified issue that a remote attacker could exploit to trigger a denial‑of‑service condition, disrupting Screen Sharing availability.
  • CVE‑2026-43760 (CVSS 8.6) – An access vulnerability permitting an app to read user‑sensitive data under certain configurations.

Technical analysis by researcher Alfredo Pesoli described CVE‑2026-43760 as a post‑authentication bug that requires Screen Sharing or Remote Management to be enabled with the “VNC viewers may control screen with password” option set, and for the attacker to already know the VNC password. Pesoli demonstrated how, after authenticating via VNC, an attacker could abuse a legacy authentication path to read protected files as root, create arbitrary files with root privileges, and ultimately install a malicious sudoers policy to achieve remote root command execution.


Analysis by Researchers: Pesoli vs @osxreverser Findings
While Pesoli’s work focused on post‑authentication abuse, another security researcher operating under the alias @osxreverser highlighted a distinct, more severe pre‑authentication vulnerability in the same Screen Sharing daemon (“screensharingd”). According to @osxreverser, this flaw allows an attacker to compromise any Mac that has Screen Sharing enabled without needing any credentials, passwords, or prior authentication—only the target’s IP address is required. The researcher described the bug as a single incorrect return statement: a length check bails out early on an oversized frame and inadvertently returns a success code from the preceding read operation. The caller interprets this as a passed authentication step, advancing the state machine and granting access.

@osxreverser noted that the vulnerability had been known to them for a while but was not reported to Apple due to a strained history with the vendor. A quick internet scan revealed roughly 40 000 open Screen Sharing hosts, with about half located in the United States, spanning residential IPs, university networks, corporate environments, and even a server belonging to the BBEdit company. The researcher emphasized that exposing Screen Sharing directly to the internet is highly risky and recommended protecting the service behind SSH or a VPN.

Importantly, CVE‑2026-65400 and the pre‑auth bug identified by @osxreverser are separate issues, though they reside in the same source file. The former involves a stale return value causing a state‑machine desynchronization after authentication, while the latter is a premature success return that enables authentication bypass before any credentials are checked. Both are pure logic bugs requiring no heap spraying, ASLR defeat, or race conditions—just one or two carefully ordered packets to achieve remote root on an unpatched system.


Mitigation Recommendations and the Role of AI in Weaponization
In light of the active attacks, Apple urges users to install the latest macOS updates immediately. For environments where patching cannot be performed promptly, the recommended interim measure is to disable Screen Sharing entirely: navigate to System Settings → General → Sharing and toggle the Screen Sharing option off. If remote desktop functionality is required, administrators should restrict access to trusted networks, enforce strong passwords, and, ideally, tunnel the service through SSH or a VPN to prevent direct internet exposure.

The rapid development of functional exploits for both CVE‑2026-65400 and the pre‑auth flaw underscores a concerning trend: AI‑assisted vulnerability research can drastically compress the timeline from discovery to weaponization. An AI‑focused security firm disclosed that it crafted working exploits for each bug in under four hours, demonstrating how generative models can assist in crafting precise payloads, probing network services, and automating exploit generation. This acceleration means that defenders must prioritize timely patching, continuous monitoring for anomalous Screen Sharing traffic, and proactive threat‑intelligence sharing to stay ahead of adversaries who increasingly leverage AI to scale their attacks.

By staying current with security updates, minimizing the attack surface of services like Screen Sharing, and maintaining vigilant network defenses, macOS users can significantly reduce the risk of falling victim to the ongoing exploitation campaign and similar future threats.

SignUpSignUp form

LEAVE A REPLY

Please enter your comment!
Please enter your name here