CVSS 3.1
9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCritical (9.8). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExplain CVE-2026-31236 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-31236?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-31236?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-31236 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-g76p-4vg5-f4qh | PyPI | llm | <=0.27.1 | no fix published |
| PYSEC-2026-400 | PyPI | llm | <=0.27.1 | no fix published |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 13, 14 | llm | no fix listed | DEBIAN-CVE-2026-31236 |
| Ubuntu | 25.10, 26.04:LTS | llm | no fix listed | UBUNTU-CVE-2026-31236 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.
Red Hat rates this Important.
This flaw is rated as Important (CVSS 7.3) because the llm tool is a local command-line application, not a network-facing service (AV:L), and exploitation requires a local user with the tool installed (PR:L) to be socially engineered into executing a specially crafted command containing malicious Python code in the `--functions` argument (UI:R). Red Hat OpenShift AI (RHOAI) is not affected as the llm CLI tool is not present in RHOAI container images. Fedora ships the affected python-llm package. To reduce risk, users should run the llm tool inside a sandbox such as a container or VM. This is mainly informative.
The `--functions` argument in the llm CLI tool executes arbitrary Python code by design, similar to `python -c`. There is no built-in sandboxing or restriction on the code that can be run. To reduce the risk of exploitation, run the llm process inside a sandbox such as a container or a VM.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-model-controller-rhel9 | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-31236.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.