This issue was addressed with improved input validation. This issue is fixed in macOS Sequoia 15.7.8, macOS Sonoma 14.8.8, macOS Tahoe 26.6. A remote attacker may be able to cause a denial of service.
https://thehackernews.com/2026/08/apple-macos-screen-sharing-flaw.html
https://support.apple.com/en-us/128072