Finds Ray installations older than 2.52.0 on macOS endpoints for CVE-2025-62593 and prints a pip upgrade command for each
This Automox Worklet™ checks macOS endpoints for installations of Ray, the open-source AI compute engine from ray-project, that are older than 2.52.0. CVE-2025-62593, a remote code execution flaw in the Ray dashboard, affects every Ray release before 2.52.0. The fix is Ray 2.52.0 or later, and Ray provides no configuration workaround for earlier releases.
The Worklet is report-only. It looks for Ray in user home folders (virtual environments, conda, pyenv, and pip --user installs), Homebrew, /usr/local, /opt, python.org framework builds, and the Apple Command Line Tools Python. For every installation older than 2.52.0, the report names the Python environment, the user who owns it, and the pip command that upgrades Ray there.
Use this Worklet when a vulnerability scanner flags CVE-2025-62593 on your Mac fleet, or when you're working through the CISA Known Exploited Vulnerabilities (KEV) catalog. It tells you which endpoints carry an affected Ray release, which environment it lives in, and who should upgrade it.
CISA added CVE-2025-62593 to the KEV catalog on August 17, 2026, and GitHub advisory GHSA-q279-jhrf-cc6v rates it Critical, with a CVSS v4 score of 9.4. The attack reaches developers through the browser. Before 2.52.0, the Ray dashboard decides whether a request comes from a browser by checking the User-Agent header. Firefox and Safari let a web page change that header.
With DNS rebinding, a malicious web page can reach a Ray dashboard running on the endpoint. The dashboard listens on port 8265 by default. The page can then submit a job through /api/jobs/ that runs shell commands as the user running Ray.
Ray installs as a Python package, so one Mac can hold several copies at different versions: in a project's virtual environment, a conda environment, a pyenv version, or the per-user site-packages folder. The Worklet reads the package metadata of every copy it finds and reports each one separately. Because each log line carries a timestamp, the report gives you a dated, per-endpoint record of which installations still need the upgrade.
Evaluation phase: Searches the endpoint for ray-<version>.dist-info folders inside site-packages or dist-packages directories. It searches each home folder under /Users, plus /var/root, each user's Library/Python folder (the pip --user location), /opt, /usr/local, /Library/Python, /Library/Frameworks/Python.framework, and /Library/Developer/CommandLineTools/Library/Frameworks.
In each home folder, the search skips the Library folder except Library/Python. It also skips the privacy-protected Music, Pictures, and Movies folders. In every location, it skips folders named node_modules, .git, .Trash, and Caches, plus Photos and Music library bundles, because reading those bundles triggers macOS privacy prompts.
For each match, the Worklet reads the Name and Version fields from the package's METADATA file and keeps only the ray distribution itself. If it can't read METADATA, it takes the version from the folder name. It then classifies each installation and logs one line for it:
Older than 2.52.0: a NON-COMPLIANT line with the version and path
2.52.0 or later, including post-releases: an OK line
A pre-release or development build of 2.52.0, or a version string the Worklet can't parse: a WARN line, because the Worklet can't confirm the version as fixed
Evaluation exits 1 and marks the endpoint non-compliant only when at least one installation is older than 2.52.0. In a scheduled policy, Automox then runs remediation on that endpoint. In every other case, including when Ray isn't installed, evaluation exits 0 with a RESULT: COMPLIANT line.
Remediation phase: Writes an audit report to the Activity Log and changes nothing on the endpoint. The remediation script repeats the evaluation's search itself rather than relying on its result, so you can run it directly with FixNow. For each installation older than 2.52.0, the report lists:
VULNERABLE: the Ray version
Location: the path to the package's dist-info folder
Owner: the macOS user who owns that folder
Note: appears when the environment has a conda-meta folder, and tells you to upgrade with conda if conda installed Ray
Upgrade: the pip command that upgrades Ray in that environment
The Upgrade command calls the environment's own interpreter when the Worklet finds one in the environment's bin folder, for example '<environment>/bin/python3.11' -m pip install --upgrade 'ray>=2.52.0'. If it finds none and the path is under Library/Python, it gives python3 -m pip install --user --upgrade 'ray>=2.52.0'. Otherwise it gives python -m pip install --upgrade 'ray>=2.52.0' and names the environment to run it with.
Installations at 2.52.0 or later appear as OK lines. Unconfirmed versions appear as WARN lines that ask you to verify them manually. On an endpoint with no Ray installation, the report ends with a RESULT line saying Ray isn't installed and no action is required.
When any installation needs the upgrade, the report closes with an ACTION REQUIRED message and a RESULT line that says an upgrade is required. The message tells you to run each Upgrade command as the listed owner, not as root, and then restart any running Ray cluster. Until the upgrade, it advises against running a local Ray cluster while browsing with Firefox or Safari.
If the search can't read some locations, both phases log a WARN with the number of unreadable locations and suggest granting the Automox agent Full Disk Access. Every log line starts with a UTC timestamp. The remediation script exits 0 whenever it produces the report, including when an upgrade is still required. It exits 1 with an ERROR line only if it can't create the temporary files the search uses.
macOS 12 or later on workstation endpoints
Full Disk Access for the Automox agent, for complete results in protected folders such as Desktop, Documents, and Downloads
Root privileges, so the search can read /var/root and every home folder under /Users. The Automox agent already provides them on macOS. The Worklet only reads package metadata and folder ownership and makes no changes.
No variables, payload files, or network access. The Worklet reads versions from files on disk and doesn't run Python or pip.
An owner for each flagged environment who can run the upgrade, since the Worklet leaves Ray as it finds it
Endpoints with any Ray installation older than 2.52.0 stay non-compliant until the owners upgrade every flagged installation. Once no installation is older than 2.52.0, the next evaluation logs the upgraded copies as OK and reports compliant. A FixNow run of the remediation script then ends with RESULT: Audit complete - no Ray installation older than 2.52.0 found. No changes were made. Restart any running Ray cluster so it runs the upgraded release.
A scheduled policy runs remediation only on non-compliant endpoints, so the Activity Log report covers just the endpoints that need the upgrade. To see the report on other endpoints, run remediation with FixNow.
Loading...
Consider Worklets your easy button
An Automox Worklet™ is a Bash or PowerShell automation that takes action on Windows, macOS, and Linux endpoints at scale. It handles everything from configuration and software management to named-CVE mitigations deployed within hours of disclosure, including vulnerabilities that have no patch yet, are configuration-based, or that a vendor won't fix.
Every Automox-published Worklet is human-reviewed, and customers control where, when, and how it runs.
Mitigation at AI speed
Frontier-model AI is finding vulnerabilities faster than most teams can track, and most of what it finds isn't immediately patchable. Finding isn't fixing. Worklets turn discovery into action.

AUTOMOX + WORKLETS™
Uncover new possibilities with simple, powerful automation.
By submitting this form you agree to our Master Services Agreement and Privacy Policy
By submitting this form you agree to our Master Services Agreement and Privacy Policy.
Already have an account? Log in