GHSA-g99h-56mw-8263

Suggest an improvement
Source
https://github.com/advisories/GHSA-g99h-56mw-8263
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/05/GHSA-g99h-56mw-8263/GHSA-g99h-56mw-8263.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-g99h-56mw-8263
Aliases
Published
2025-05-28T12:30:33Z
Modified
2025-05-28T16:43:07.841431Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
LLama-Index CLI OS command injection vulnerability
Details

LLama-Index CLI prior to v0.4.1, corresponding to LLama-Index prior to v0.12.21, contains an OS command injection vulnerability. The vulnerability arises from the improper handling of the --files argument, which is directly passed into os.system. An attacker who controls the content of this argument can inject and execute arbitrary shell commands. This vulnerability can be exploited locally if the attacker has control over the CLI arguments, and remotely if a web application calls the LLama-Index CLI with a user-controlled filename. This issue can lead to arbitrary code execution on the affected system.

Database specific
{
    "nvd_published_at": "2025-05-28T10:15:21Z",
    "cwe_ids": [
        "CWE-78"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2025-05-28T16:07:48Z"
}
References

Affected packages

PyPI / llama-index-cli

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.4.1

Affected versions

0.*

0.1.0
0.1.1
0.1.2
0.1.2.post1
0.1.3
0.1.4
0.1.5
0.1.6
0.1.7
0.1.8
0.1.9
0.1.10
0.1.11
0.1.12
0.1.13
0.3.0
0.3.1
0.4.0