CVE-2024-9606: LiteLLM Reveals Portion of API Key via a Logging File
7.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.13178%
CWE
Published
3/20/2025
Updated
3/20/2025
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
litellm | pip |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems directly from the pre_call function's masking implementation shown in the diff. The original code used api_base[key_index + 5:] which keeps the remainder of the key after masking 5 characters, while the patched version uses api_base[-4:] to only leave the last 4 characters unmasked. This function is explicitly called to log API call details, and the CWE-117 classification confirms this is a logging output sanitization issue. Other changed files relate to test cases and API integrations, but the core vulnerability resides in the logging function's masking logic.