CVE-2026-31236: Mycli · llm CLI tool contains a code injection vulnerability via `--functions` command-line argument
Affects mycliSource GCVE Database
Not known to be exploited · CVSS 9.8 Critical : upgrade to 1.42.0 as a priority.
Data as of 17 Nov 2026, 19:19 UTC
- Patch
- Available – fixed in 1.42.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 12 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 16 Nov 2026.
What to do
Upgrade mycli to 1.42.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewmyclipkg:brew/mycliOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in mycli version 1.42.0 that fixes this vulnerability. Users should upgrade to version 1.42.0 or later. Additionally, since the --functions argument executes arbitrary code by design without sandboxing, running the llm CLI tool inside a sandbox such as a container or virtual machine is recommended to reduce risk.
Description
The llm CLI tool in mycli versions 1.38.0 up to but not including 1.42.0 contains a critical code injection vulnerability via the --functions command-line argument. This argument executes arbitrary Python code without sanitization, allowing an attacker to achieve arbitrary code execution if a victim is tricked into running a crafted command. The vulnerability is local and requires user interaction. A fix is available in version 1.42.0.
References
- nvd.nist.gov/vuln/detail/CVE-2026-31236 (opens in a new tab)
- access.redhat.com/security/cve/CVE-2026-31236 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2476636 (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/llm/PYSEC-2026-400.yaml (opens in a new tab)
- github.com/simonw/llm (opens in a new tab)
- pypi.org/project/llm (opens in a new tab)
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31236.json (opens in a new tab)
- notion.so/CVE-2026-31236-35d1e139318881a4a0f1fffcf671f7e3 (opens in a new tab)