{"id":"CVE-2026-12797","aliases":["CVE-2026-12797","GHSA-p897-vf7j-f5h8","PYSEC-2026-4074"],"related":[],"kind":"vulnerability","state":"published","title":"BerriAI litellm Completions banned_keywords.py async_pre_call_hook authorization","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-06-21T09:15:08.592Z","modified":"2026-10-25T23:10:00.167Z","severity":{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:3.1","vector":"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","score":6.3,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:3.0","vector":"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","score":6.3,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"LOW"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-285","CWE-863"],"affected":[{"ranges":[{"version":"1.82.0","status":"affected"},{"version":"1.82.1","status":"affected"},{"version":"1.82.2","status":"affected"},{"version":"1.82.3","status":"affected"},{"version":"1.82.4","status":"affected"},{"version":"1.82.5","status":"affected"}],"vendor":"BerriAI","product":"litellm","cpe":"cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"1.82.5"}],"ecosystem":"PyPI","package":"litellm","purl":"pkg:pypi/litellm","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"1.82.5"}],"vendor":"litellm","product":"litellm","cpe":"cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"1.82.5"}],"ecosystem":"PyPI","package":"litellm","purl":"pkg:pypi/litellm","source":"pysec"}],"references":[{"url":"https://vuldb.com/vuln/372559","tags":["technical-description","third-party-advisory","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://vuldb.com/vuln/372559/cti","tags":["permissions-required","signature","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://vuldb.com/cve/CVE-2026-12797","tags":["third-party-advisory","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://vuldb.com/submit/811288","tags":["exploit","third-party-advisory","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://gist.github.com/YLChen-007/078179224f07cc4e39e4f141a18c817a","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12797","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/BerriAI/litellm","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/litellm","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-p897-vf7j-f5h8","tags":["advisory"],"sources":["pysec"]}],"credits":["Eric-c (VulDB User)","VulDB CNA Team"],"assigner":"VulDB","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-06-22T13:35:34.363Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-12797","url":"https://www.cve.org/CVERecord?id=CVE-2026-12797","licence":"CVE Terms of Use","modified":"2026-06-22T13:35:44.784Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p897-vf7j-f5h8","url":"https://github.com/advisories/GHSA-p897-vf7j-f5h8","licence":"CC-BY-4.0","modified":"2026-10-01T17:56:08.092Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-12797","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12797","licence":"Public domain","modified":"2026-10-25T23:10:00.167Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-4074","url":"https://osv.dev/vulnerability/PYSEC-2026-4074","licence":"CC-BY-4.0","modified":"2026-10-01T17:45:12.788Z"}],"updatedAt":"2026-11-25T22:59:25.322Z","epss":{"score":0.00226,"percentile":0.14245,"date":"2026-12-01T12:00:22.000Z"}}