CVEfocus › CVE database › CVE-2026-31236

CVE-2026-31236

CVSS 9.8 CriticalEPSS 0.5% (higher than 32% of CVEs)Published 2026-05-12Updated 2026-07-15Assigner: mitre

The llm CLI tool thru 0.27.1 contains a critical code injection vulnerability via its --functions command-line argument. This argument is intended to allow users to provide custom Python function definitions. However, the tool directly executes the provided code using the unsafe exec() function without any sanitization, sandboxing, or security restrictions. An attacker can exploit this by crafting a malicious llm command with arbitrary Python code in the --functions argument and using social engineering to trick a victim into running it. This leads to arbitrary code execution on the victim's system, potentially granting the attacker full control.

CWE-94

What to do

Debian, PyPI, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fix pending
1Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04llmUnder investigationUBUNTU-CVE-2026-31236
Ubuntu 25.10llmWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-31236
Debian 14llmFix pendingDEBIAN-CVE-2026-31236
Debian 13llmFix pendingDEBIAN-CVE-2026-31236
PyPI libraryllmFix pendingGHSA-g76p-4vg5-f4qh

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.