CVE-2026-12797: BerriAI litellm Completions banned_keywords.py async_pre_call_hook authorization
A security flaw has been discovered in BerriAI litellm up to 1.82.5. Affected is the function asyncprecallhook of the file enterprise/enterprisehooks/bannedkeywords.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 Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-12797?
The severity of CVE-2026-12797 is classified as medium with a score of 6.3.
How do I fix CVE-2026-12797?
To fix CVE-2026-12797, update BerriAI litellm to the latest version that mitigates this vulnerability.
What are the potential impacts of CVE-2026-12797?
CVE-2026-12797 may lead to incorrect authorization by manipulating user input in the async_pre_call_hook function.
In which component is CVE-2026-12797 found?
CVE-2026-12797 is found in the Completions Interface of the BerriAI litellm under the file enterprise/enterprise_hooks/banned_keywords.py.
What is the affected software version for CVE-2026-12797?
CVE-2026-12797 affects BerriAI litellm versions up to 1.82.5.