LiteLLM Reveals Portion of API Key via a Logging File
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | litellm | < 1.44.12 | 1.44.12 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-9606
- https://github.com/berriai/litellm/commit/9094071c4782183e84f10630e2450be3db55509a
- https://github.com/BerriAI/litellm
- https://huntr.com/bounties/4a03796f-a8d4-4293-84ef-d3959456223a
- https://pypi.org/project/litellm
- https://github.com/advisories/GHSA-g5pg-73fc-hjwq
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N- Weakness (CWE)
CWE-117- Platform
- Python (PyPI)
- Package
litellm- Disclosed
- 20.03.2025
- Updated
- 11.10.2026 15:17
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-1548 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-g5pg-73fc-hjwq - CC BY 4.0
Vulnerability history: litellm
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 42
- First → latest
- 04.2024 09.2026
- Without a fix
- 14
- Exploited in attacks
- 3
Severity breakdown
- Critical 7
- High 17
- Medium 8
- Low 9
- Unrated 1
Disclosures per year
- 2024: 8
- 2025: 6
- 2026: 28
-
LiteLLM Reveals Portion of API Key via a Logging File this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.