CVE-2024-23731 Code execution in Embedchain

Critical 9.8 Published Updated

Attackers can execute arbitrary code via the OpenAPI loader in Embedchain due to unsafe YAML loading.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-23731?

CVE-2024-23731 is a critical code injection vulnerability in n/a, published on 21 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The OpenAPI loader in Embedchain before 0.1.57 allows attackers to execute arbitrary code, related to the openapi.py yaml.load function argument.

Weakness: CWE-88

Which versions are affected by CVE-2024-23731?

3 open source packages ship an affected version, including embedchain. It affects 1 product.

PackageAffectedFixed in
embedchain PyPIAll versions0.1.57
embedchain PyPIAll versions0.1.57
embedchain PyPIAll versions0.1.57

Products include Embedchain Embedchain.

How do I fix CVE-2024-23731?

Upgrade embedchain to 0.1.57 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2024-23731 being exploited?

There is no known exploitation of CVE-2024-23731 in the wild and no public exploit code.

Sources

Also known as GHSA-rhhj-5436-95vf, PYSEC-2024-7.

Is CVE-2024-23731 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free