Advisory

GHSA-g5pg-73fc-hjwq

Also known as: CVE-2024-9606, PYSEC-2026-1548

Summary

LiteLLM Reveals Portion of API Key via a Logging File

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-03-20 12:32 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

litellm

PyPI · All systems

Affected

  • introduced 0, fixed 1.44.12 (ecosystem)

Fixed versions

1.44.12

Fix

  • Fixed version 1.44.12
    pip install --upgrade litellm==1.44.12

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences