# CVE-2024-9606: Improper Output Neutralization for Logs in berriai/litellm

- Severity: High 7.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:09:24.180Z
- Modified: 2026-09-10T03:49:48.563Z
- Also known as: GHSA-g5pg-73fc-hjwq, PYSEC-2026-1548
- Weaknesses: CWE-116, CWE-117
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- berriai berriai/litellm: from unspecified before 1.44.12
- litellm (PyPI): before 1.44.12
- litellm litellm: before 1.44.12

## Every score

- @huntr_ai: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://huntr.com/bounties/4a03796f-a8d4-4293-84ef-d3959456223a> (exploit, third-party-advisory, web)
- <https://github.com/berriai/litellm/commit/9094071c4782183e84f10630e2450be3db55509a> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-9606> (advisory)
- <https://github.com/BerriAI/litellm> (package)
- <https://pypi.org/project/litellm> (package)
- <https://github.com/advisories/GHSA-g5pg-73fc-hjwq> (advisory)

## Sources

- CVE List: [CVE-2024-9606](https://www.cve.org/CVERecord?id=CVE-2024-9606), CVE Terms of Use, modified 2025-03-20
- GitHub Advisory Database: [GHSA-g5pg-73fc-hjwq](https://github.com/advisories/GHSA-g5pg-73fc-hjwq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-9606](https://nvd.nist.gov/vuln/detail/CVE-2024-9606), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1548](https://osv.dev/vulnerability/PYSEC-2026-1548), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-9606 · Whole record: https://cve.day/CVE-2024-9606.json · Rebuilt by cve.day 2026-11-25T22:58:52.414Z
