CVE-2026-31236: Vulnerability in llm
Critical. 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...
PyPI, CWE-94
- Exploitation
- None confirmed
- Severity
- 9.8 of 10
- Attack likelihood
- Unknown
- Fix
- None recorded
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-g76p-4vg5-f4qh
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-94
- Published
- 12 May 2026
- Last change
- 16 Nov 2026
- Ecosystem
- PyPI
Affected packages
Vulnerable version ranges and fixed releases
- llm PyPI, Affected through 0.27.1. No fixed version recorded
Advisories
Vendor and security advisories