CVE-2026-12797
JSON

5.3medium

BerriAI litellm Completions banned_keywords.py async_pre_call_hook authorization

Severity
5.3medium CVSS:4.0 by VulDB
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulDB
Also known as
GHSA-p897-vf7j-f5h8PYSEC-2026-4074

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.

Affected

Product or packageVersionsReported by
BerriAI litellm1.82.0, 1.82.1, 1.82.2, 1.82.3, 1.82.4, 1.82.5CVE List
litellm (PyPI)up to 1.82.5GitHub Advisory Database, PyPA Advisory Database
litellm litellmup to 1.82.5NVD

All scores

VulDB5.3medium CVSS:4.0CVSS: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
VulDB6.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R
VulDB6.3medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R
VulDB6.5medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR
GitHub6.3low CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
GitHublow CVSS:4.0CVSS: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 Database6.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS: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

Classification

CWE-285CWE-863

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Se ha descubierto una vulnerabilidad de seguridad en BerriAI litellm hasta la versión 1.82.5. Afecta a la función async_pre_call_hook del archivo enterprise/enterprise_hooks/banned_keywords.py del componente Completions Interface. La manipulación del argumento prompt resulta en una autorización incorrecta. El ataque puede realizarse de forma remota. El exploit ha sido publicado y puede utilizarse para ataques. El proveedor fue contactado con antelación sobre esta divulgación.

References

https://vuldb.com/vuln/372559technical-description, third-party-advisory, vdb-entry, web
https://vuldb.com/vuln/372559/ctipermissions-required, signature, vdb-entry, web
https://vuldb.com/cve/CVE-2026-12797third-party-advisory, vdb-entry, web
https://vuldb.com/submit/811288exploit, third-party-advisory, vdb-entry, web
https://gist.github.com/YLChen-007/078179224f07cc4e39e4f141a18c817aexploit, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2026-12797advisory
https://github.com/BerriAI/litellmpackage
https://pypi.org/project/litellmpackage
https://github.com/advisories/GHSA-p897-vf7j-f5h8advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-12797 changed 2026-06-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-p897-vf7j-f5h8 changed 2026-10-01CC-BY-4.0
NVDCVE-2026-12797 changed 2026-10-25Public domain
PyPA Advisory DatabasePYSEC-2026-4074 changed 2026-10-01CC-BY-4.0