Improper Control of Generation of Code ('Code Injection') Affecting llama-hub package, versions [,0.0.67)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.21% (59th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Control of Generation of Code ('Code Injection') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-LLAMAHUB-6183089
  • published22 Jan 2024
  • disclosed21 Jan 2024
  • creditlogan-markewich

Introduced: 21 Jan 2024

CVE-2024-23730  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade llama-hub to version 0.0.67 or higher.

Overview

llama-hub is an A library of community-driven data loaders for LLMs. Use with LlamaIndex and/or LangChain.

Affected versions of this package are vulnerable to Improper Control of Generation of Code ('Code Injection') via the OpenAPI and ChatGPT plugin loaders. An attacker can execute arbitrary code because safe_load is not used for YAML parsing, leading to the possibility of executing malicious payloads embedded within YAML files.

CVSS Scores

version 3.1