Skip to content
CriticalVulnerability

GHSA-g76p-4vg5-f4qh: llm CLI tool contains a code injection vulnerability via `--functions` command-line argument

Published
Record updated
View JSON
Affected
  • llm <= 0.27.1
Fixed in
No fixed version was stated when the source was last read.

Summary

The llm CLI tool through 0.27.1 has a critical code injection flaw in its --functions argument, which is meant to accept custom Python function definitions. The tool passes that code directly to exec() without sanitization, sandboxing, or restrictions. An attacker can craft a malicious llm command with arbitrary Python in --functions and use social engineering to get a victim to run it, gaining arbitrary code execution and potentially full control of the victim's system.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.