CVE-2026-31236
Last modified
CVE-2026-31236 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 0.33% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| — | — | n/a |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-31236?
How severe is CVE-2026-31236?
How do I fix CVE-2026-31236?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-31230The Adversarial Robustness Toolbox (ART) thru 1.20.1 contain…9.8
- CVE-2026-31231Cognee thru v0.4.0 contains a critical remote code execution…9.8
- CVE-2026-31232The CosyVoice project thru commit 6e01309e01bc93bbeb83bdd996…8.8
- CVE-2026-31233Guardrails AI thru 0.6.7 contains a code injection vulnerabi…9.8
- CVE-2026-31234Horovod thru 0.28.1 contains an insecure deserialization vul…9.8
- CVE-2026-31235The imgaug library thru 0.4.0 contains an insecure deseriali…9.8
- CVE-2026-31237The Ludwig framework thru 0.10.4 is vulnerable to insecure d…9.8
- CVE-2026-31238The Ludwig framework thru 0.10.4 is vulnerable to insecure d…9.8
- CVE-2026-31239The mamba language model framework thru 2.2.6 is vulnerable …9.8
- CVE-2026-3124The Download Monitor plugin for WordPress is vulnerable to I…7.5
- CVE-2026-31240The mem0 1.0.0 server lacks authentication and authorization…7.5
- CVE-2026-31241The mem0 1.0.0 server lacks authentication and authorization…6.5
Are you affected by CVE-2026-31236?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
