Skip to content
OpenAdvisories
High · 7.5 CVE-2024-9606 EUVD-2025-6847GHSA-g5pg-73fc-hjwqPYSEC-2026-1548

Improper Output Neutralization for Logs in berriai/litellm

Published Mar 20, 2025 · Updated Mar 20, 2025 · Assigned by @huntr_ai

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.

Affected products

VendorProductAffectedFixed
berriai berriai/litellm unspecified – < 1.44.12 1.44.12

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI litellm < 1.44.12 1.44.12 GHSA-g5pg-73fc-hjwq

References