LiteLLMPublished 20 Mar 2025NVD status: Analyzed

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 key masking code only masks the first 5 characters of the key.

ComponentLiteLLM
Severityhigh (CVSS 7.5)
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published (NVD)2025-03-20
Last modified2026-06-17
Affected versions
< 1.44.12
Fixed in1.44.12
WeaknessCWE-117CWE-116
CISA KEVnot 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.12 or later.
  • Do not expose the component's API or UI to the internet without authentication in front of it.

Sources

Read more