🛡️ CVE-2024-9606 — litellm

🟠 CVSS 8.0 — High ⚠️ Exploit Public CWE-117 OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

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

Severity HIGH
CVSS Score 8.0
CVSS Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CWE CWE-117
Public Exploit ⚠️ Yes
Source OSV
Published 2025-03-20
Updated 2026-08-20
Modified 2026-07-07

Affected Packages

Software From version Fixed in
litellm 1.44.12

Similar Threats

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.

Browse related advisories

All advisoriesCVECVE 2024