CVE-2026-31236: n/a
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.
AI Analysis
Technical Summary
CVE-2026-31236 describes a critical code injection vulnerability in the llm CLI tool versions up to 0.27.1. The vulnerability arises because the --functions argument accepts user-supplied Python code that is executed directly with exec() without any sanitization, sandboxing, or security controls. This design flaw allows an attacker to execute arbitrary code on a victim's system if the victim runs a crafted command containing malicious Python code in the --functions argument. The vulnerability enables full system compromise through arbitrary code execution. No CVSS score or official remediation details are provided, and the tool is not a cloud service.
Potential Impact
Successful exploitation results in arbitrary code execution on the victim's system, potentially granting the attacker full control over the affected machine. This can lead to data compromise, system manipulation, or further attacks originating from the compromised host. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid running untrusted or unauthenticated commands using the llm CLI tool's --functions argument. Employ caution with any received commands or scripts that invoke this tool with custom function definitions. No vendor advisory or official fix information is currently provided.
CVE-2026-31236: n/a
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-31236 describes a critical code injection vulnerability in the llm CLI tool versions up to 0.27.1. The vulnerability arises because the --functions argument accepts user-supplied Python code that is executed directly with exec() without any sanitization, sandboxing, or security controls. This design flaw allows an attacker to execute arbitrary code on a victim's system if the victim runs a crafted command containing malicious Python code in the --functions argument. The vulnerability enables full system compromise through arbitrary code execution. No CVSS score or official remediation details are provided, and the tool is not a cloud service.
Potential Impact
Successful exploitation results in arbitrary code execution on the victim's system, potentially granting the attacker full control over the affected machine. This can lead to data compromise, system manipulation, or further attacks originating from the compromised host. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid running untrusted or unauthenticated commands using the llm CLI tool's --functions argument. Employ caution with any received commands or scripts that invoke this tool with custom function definitions. No vendor advisory or official fix information is currently provided.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-03-09T00:00:00.000Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a036531cbff5d861008c1bf
Added to database: 5/12/2026, 5:36:49 PM
Last enriched: 5/12/2026, 7:38:31 PM
Last updated: 5/13/2026, 4:52:19 AM
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.