CVE-2025-1979: Ray Ray Vulnerable To Insertion Of Vulnerability
MODERATECVE-2025-1979 is a MODERATE (CVSS 6.4) ray vulnerable to insertion of vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Ray libraries in the PyPI ecosystem. The issue involves ray vulnerable to insertion of sensitive information into log file. Remediation is available by upgrading affected packages to version 2.43.0.
CVE-2025-1979 at a Glance
Security Impact
CVSS: 6.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N).
How to Fix CVE-2025-1979
To remediate this vulnerability, upgrade all affected Ray dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install ray>=2.43.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show ray
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-1979, inspect your installed packages using pip:
pip show ray
Analyze the terminal output to locate any version of Ray in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.43.0), your application is affected.
Note: The pip show ray command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Ray, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-1979 Affected Ray Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ray
|
PyPI |
< 2.43.0
|
2.43.0
|
References
Frequently Asked Questions
What is CVE-2025-1979?
Which Ray versions are affected?
What version fixes CVE-2025-1979?
Is ray affected?
What is the CVSS score of CVE-2025-1979?
What CWE is associated with CVE-2025-1979?
How can I check PyPI dependencies for CVE-2025-1979?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w4rh-fgx7-q63m",
"modified" : "2025-04-09T20:12:59Z",
"published" : "2025-03-06T06:30:52Z",
"aliases" : [ "CVE-2025-1979" ],
"summary" : "ray vulnerable to Insertion of Sensitive Information into Log File",
"details" : "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.\n\nThis is only exploitable if:\n\n1) Logging is enabled;\n\n2) Redis is using password authentication;\n\n3) Those logs are accessible to an attacker, who can reach that redis instance.\n\n**Note:**\n\nIt is recommended that anyone who is running in this configuration should update to the latest version of Ray, then rotate their redis password.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "ray"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.43.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-1979"
}, {
"type" : "WEB",
"url" : "https://github.com/ray-project/ray/issues/50266"
}, {
"type" : "WEB",
"url" : "https://github.com/ray-project/ray/pull/50409"
}, {
"type" : "WEB",
"url" : "https://github.com/ray-project/ray/commit/64a2e4010522d60b90c389634f24df77b603d85d"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/ray/PYSEC-2025-23.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ray-project/ray"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-PYTHON-RAY-8745212"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-532" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-06T22:31:54Z",
"nvd_published_at" : "2025-03-06T05:15:16Z"
}
}