🛡️ CVE-2024-9606 — litellm
Description
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.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity none, availability none.
Weakness class
CVE-2024-9606 is classified as CWE-117: Improper Output Neutralization for Logs. The product constructs a log message from external input, but it does not neutralize or incorrectly neutralizes special elements when the message is written to a log file.
Affected software
CVE-2024-9606 is recorded against 1 package.
- litellm (fixed in 1.44.12)
Timeline and source
Published on 20 March 2025 and last revised on 7 July 2026. A public exploit is known to exist, which raises the urgency of patching considerably. A vendor advisory or fix has been published. Record sourced from OSV.
References
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Package)
huntr.com (Web)
Details
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| litellm | — | 1.44.12 |
References
Similar Threats
- Unknown CGA-6c9q-955g-f6m6
- Unknown CGA-2fjg-j4jj-x26w
- Unknown CGA-4chq-8f8m-cxg9
- Unknown CGA-48f2-3qh9-f9x4
- Unknown CGA-2r69-w36g-jxvr
Exploit Protection
Are you running litellm?
CVE-2024-9606 carries CVSS 8.0 High rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.
Check My Site For CVE-2024-9606 →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.