CVE-2024-9606: Improper Output Neutralization for Logs in berriai/litellm
Vulnerability summary
CVE-2024-9606 is a high (CVSS 7.5) Improper Output Neutralization for Logs vulnerability in berriai berriai/litellm. EPSS estimates a 0.77% chance of exploitation in the next 30 days, higher than 56.8% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (reference, Date unknown)
Source freshness unavailable
How is this decided?Timeline
- 20-03-2025PublishedVulnerability first disclosed.
- 20-03-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · PypiEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVDNIST7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.77%
Chance of exploitation in the next 30 days
Percentile
57%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.77% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (huntr.com)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-117Improper Output Neutralization for LogsThe 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.
- CWE-116Improper Encoding or Escaping of OutputThe product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Berriai1 product
- berriai/litellm≥ unspecified, < 1.44.12
Litellm1 product
- litellm< 1.44.12
PyPI1 product
- litellm< 1.44.12
3 vendors · 3 products
References
6 links- github.com/BerriAI/litellmPACKAGE
- pypi.org/project/litellmPACKAGE