All reports
High

LiteLLM Reveals Portion of API Key via a Logging File

Affected versions

Version ranges need review.

Affected versions
<1.44.12
Fixed version
1.44.12
Affected versions
< 1.44.12
Fixed version
1.44.12

Exploitation

CVE-2024-9606

Probability of exploitation in the next 30 days: 0.77%

FIRST EPSS · 2026-11-19

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.

Links