Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-31236: n/a

0
Unknown
VulnerabilityCVE-2026-31236cvecve-2026-31236
Published: Tue May 12 2026 (05/12/2026, 00:00:00 UTC)
Source: CVE Database V5

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

AILast updated: 05/12/2026, 19:38:31 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses