NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Ray

CVE-2025-1979: ray vulnerable to Insertion of Sensitive Information into Log File

mediumCVSS 4.0 5.7 · 3.1 6.4GHSA-w4rh-fgx7-q63m

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 ray

Also 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:

  1. Logging is enabled;
  1. Redis is using password authentication;
  1. 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

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 entries