GitHub Advisoryadvisory · PyPI
GHSA-g5pg-73fc-hjwq LiteLLM Reveals Portion of API Key via a Logging File
HIGH
Official page ↗
- Aliases
- CVE-2024-9606
- Ecosystem
- PyPI
- Packages
- litellm
- Severity
- High
- CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-117
- Reviewed
- 2025-03-20
Affected packages
• PyPI litellm: < 1.44.12 → fixed in 1.44.12
Description
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.
Related
Alias · CVE (1)
- CVE-2024-9606 In berriai/litellm before version 1.44.12, the `litellm/litellm_core_utils/litellm_logging.py` file contains a vulnerability where the API… vulnerability
Weakness · CWE (1)
- CWE-117 Improper Output Neutralization for Logs weakness