# CVE-2026-12797: BerriAI litellm Completions banned_keywords.py async_pre_call_hook authorization

- Severity: Medium 5.3 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- 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.23%, higher than 14% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-06-21T09:15:08.592Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-p897-vf7j-f5h8, PYSEC-2026-4074
- Weaknesses: CWE-285, CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## Description

A security flaw has been discovered in BerriAI litellm up to 1.82.5. Affected is the function async_pre_call_hook of the file enterprise/enterprise_hooks/banned_keywords.py of the component Completions Interface. The manipulation of the argument prompt results in incorrect authorization. The attack may be performed from remote. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure.

(As written by CVE List.)

## Affected

- BerriAI litellm: 1.82.0; 1.82.1; 1.82.2; 1.82.3; 1.82.4; 1.82.5
- litellm (PyPI): up to 1.82.5
- litellm litellm: up to 1.82.5

## Every score

- VulDB: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- VulDB: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:3.0 6.3 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR`
- GitHub: CVSS:3.1 6.3 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- PyPA Advisory Database: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`

## References

- <https://vuldb.com/submit/811288> (exploit, third-party-advisory, vdb-entry, web)
- <https://gist.github.com/YLChen-007/078179224f07cc4e39e4f141a18c817a> (exploit, third-party-advisory, web)
- <https://vuldb.com/vuln/372559> (technical-description, third-party-advisory, vdb-entry, web)
- <https://vuldb.com/vuln/372559/cti> (permissions-required, signature, vdb-entry, web)
- <https://vuldb.com/cve/CVE-2026-12797> (third-party-advisory, vdb-entry, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-12797> (advisory)
- <https://github.com/BerriAI/litellm> (package)
- <https://pypi.org/project/litellm> (package)
- <https://github.com/advisories/GHSA-p897-vf7j-f5h8> (advisory)

## Sources

- CVE List: [CVE-2026-12797](https://www.cve.org/CVERecord?id=CVE-2026-12797), CVE Terms of Use, modified 2026-06-22
- GitHub Advisory Database: [GHSA-p897-vf7j-f5h8](https://github.com/advisories/GHSA-p897-vf7j-f5h8), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-12797](https://nvd.nist.gov/vuln/detail/CVE-2026-12797), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-4074](https://osv.dev/vulnerability/PYSEC-2026-4074), CC-BY-4.0, modified 2026-10-01

---

Page: https://cve.day/CVE-2026-12797 · Whole record: https://cve.day/CVE-2026-12797.json · Rebuilt by cve.day 2026-11-25T22:59:25.322Z
