Improper Control of Generation of Code ('Code Injection') Affecting embedchain package, versions [,0.1.57)


Severity

Recommended
0.0
critical
0
10

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

Threat Intelligence

EPSS
0.16% (53rd 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-EMBEDCHAIN-6183296
  • published22 Jan 2024
  • disclosed21 Jan 2024
  • creditUnknown

Introduced: 21 Jan 2024

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

How to fix?

Upgrade embedchain to version 0.1.57 or higher.

Overview

embedchain is a Simplest open source retrieval(RAG) framework

Affected versions of this package are vulnerable to Improper Control of Generation of Code ('Code Injection') due to the insecure usage of yaml.load in the load_data function of openapi.py. An attacker can execute arbitrary code by supplying a crafted YAML file that exploits the function's lack of safe loading.

CVSS Scores

version 3.1