ghsa-g5pg-73fc-hjwq
Vulnerability from github
Published
2025-03-20 12:32
Modified
2025-03-20 21:02
Severity ?
Summary
LiteLLM Reveals Portion of API Key via a Logging File
Details
In berriai/litellm before version 1.44.12, the litellm/litellm_core_utils/litellm_logging.py
file contains a vulnerability where the API key masking code only masks the first 5 characters of the key. This results in the leakage of almost the entire API key in the logs, exposing a significant amount of the secret key. The issue affects version v1.44.9.
{ "affected": [ { "package": { "ecosystem": "PyPI", "name": "litellm" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "1.44.12" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2024-9606" ], "database_specific": { "cwe_ids": [ "CWE-117" ], "github_reviewed": true, "github_reviewed_at": "2025-03-20T21:02:06Z", "nvd_published_at": "2025-03-20T10:15:49Z", "severity": "HIGH" }, "details": "In berriai/litellm before version 1.44.12, the `litellm/litellm_core_utils/litellm_logging.py` file contains a vulnerability where the API key masking code only masks the first 5 characters of the key. This results in the leakage of almost the entire API key in the logs, exposing a significant amount of the secret key. The issue affects version v1.44.9.", "id": "GHSA-g5pg-73fc-hjwq", "modified": "2025-03-20T21:02:06Z", "published": "2025-03-20T12:32:51Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-9606" }, { "type": "WEB", "url": "https://github.com/berriai/litellm/commit/9094071c4782183e84f10630e2450be3db55509a" }, { "type": "PACKAGE", "url": "https://github.com/BerriAI/litellm" }, { "type": "WEB", "url": "https://huntr.com/bounties/4a03796f-a8d4-4293-84ef-d3959456223a" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "type": "CVSS_V3" } ], "summary": "LiteLLM Reveals Portion of API Key via a Logging File" }
Loading...
Loading...
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.