CVE-2025-1979: ray vulnerable to Insertion of Sensitive Information into Log File
Ray before 2.43.0 writes the Redis password to its standard logs when the password is passed as an argument. Anyone who can read those logs and reach the Redis instance can use the password. Upgrade to Ray 2.43.0, then rotate the Redis password.
Published Mar 6, 2025 · Updated Apr 9, 2025 · Analysis Nov 1, 2026
What an attacker can do
When a Ray cluster is started with a Redis password given as an argument, Ray logs the value through its normal logging. The password then sits in plain text in log files and any log collection system that gathers them.
The advisory sets three conditions: logging is enabled, Redis uses password authentication, and the attacker can read the logs and also reach that Redis instance. The CVSS vector is local with high complexity, which fits: the attacker already needs a foothold with log access.
With the password, an attacker can read and change the Redis data that Ray uses for cluster state, which is why the scope is marked as changed. A leaked password is the problem even after the log line is gone, so upgrading alone is not enough. The advisory says to update and then rotate the Redis password.
Who is affected
ray (pip) before 2.43.0, in clusters that use a password-protected Redis and pass the password as an argument. Check your version:
pip show rayAlso review how your cluster start command or deployment passes the Redis password.
ray
- Ecosystem
- PyPI
- Affected
- < 2.43.0
- Fixed in
- 2.43.0
- Check
pip show ray
How to fix it
Upgrade to ray 2.43.0:
pip install --upgrade "ray>=2.43.0"Then rotate the Redis password, since the old one may already sit in logs. The change is in pull request 50409 (commit 64a2e401). After the rotation, clean or restrict old log files and any log archive that received them.
How to tell if you were hit
Search the Ray log directories (for example under /tmp/ray/session_latest/logs) and your central log store for the Redis password string, or for start-up lines that include a redis password argument. Check Redis logs for logins from unfamiliar addresses, and for CONFIG or key changes you did not make.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Versions of the package ray before 2.43.0 are vulnerable to Insertion of Sensitive Information into Log File where the redis password is being logged in the standard logging. If the redis password is passed as an argument, it will be logged and could potentially leak the password.
This is only exploitable if:
- Logging is enabled;
- Redis is using password authentication;
- Those logs are accessible to an attacker, who can reach that redis instance.
Note:
It is recommended that anyone who is running in this configuration should update to the latest version of Ray, then rotate their redis password.
Questions
- Is upgrading to Ray 2.43.0 enough?
No. The advisory says to update and then rotate the Redis password, because earlier logs may already hold it.
- When is CVE-2025-1979 exploitable?
Only when logging is on, Redis uses a password given as an argument, and the attacker can read the logs and reach the Redis instance.
- Does it allow remote code execution?
No. It leaks a credential. What an attacker can do next depends on what the Redis access allows.
References
Read for this analysis:
- https://nvd.nist.gov/vuln/detail/CVE-2025-1979
- https://github.com/ray-project/ray/issues/50266
- https://github.com/ray-project/ray/commit/64a2e4010522d60b90c389634f24df77b603d85d
- https://security.snyk.io/vuln/SNYK-PYTHON-RAY-8745212
- https://github.com/pypa/advisory-database/tree/main/vulns/ray/PYSEC-2025-23.yaml
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Ray vulnerabilities
All Ray entriesCVE-2026-57516
Ray: Arbitrary code execution via ray.data.read_webdataset default decoder: pickle.loads(value) and torch.load(weights_only=False)
high8.8Jul 24, 2026CVE-2026-41486
Ray: Remote Code Execution via Parquet Arrow Extension Type Deserialization
high8.9Apr 24, 2026CVE-2026-32981
Ray Dashboard is vulnerable to path traversal through its static file handling mechanism
high7.5Mar 17, 2026CVE-2026-27482
Ray dashboard DELETE endpoints allow unauthenticated browser-triggered DoS (Serve shutdown / job deletion)
medium5.9Feb 20, 2026CVE-2025-34351
Ray's New Token Authentication is Disabled By Default
critical9.3No fixNov 27, 2025CVE-2025-62593
Ray is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding Attack
critical9.4ExploitedNov 26, 2025
