| Component | LiteLLM |
| Severity | high (CVSS 7.5) |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Published (NVD) | 2025-03-20 |
| Last modified | 2026-06-17 |
| Affected versions | < 1.44.12 |
| Fixed in | 1.44.12 |
| Weakness | CWE-117CWE-116 |
| CISA KEV | not listed |
NVD 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.
What to do
- Upgrade LiteLLM to
1.44.12or later. - Do not expose the component's API or UI to the internet without authentication in front of it.
Sources
- NVD: CVE-2024-9606
- https://github.com/berriai/litellm/commit/9094071c4782183e84f10630e2450be3db55509a
- https://huntr.com/bounties/4a03796f-a8d4-4293-84ef-d3959456223a