Bug 2476636 (CVE-2026-31236) - CVE-2026-31236 llm: llm CLI tool: Arbitrary code execution via code injection in --functions argument
Summary: CVE-2026-31236 llm: llm CLI tool: Arbitrary code execution via code injection...
Keywords:
Status: NEW
Alias: CVE-2026-31236
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-05-12 18:04 UTC by OSIDB Bzimport
Modified: 2026-06-16 15:02 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-05-12 18:04:28 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.