Browse / AI Framework and Platform Flaws / CVE-2024-23731
Code execution in Embedchain
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Code and command execution
- Affected
- embedchain (PyPI)
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 1.1% chance of exploitation in 30 days
How it works, in short
A crafted OpenAPI file parsed by the Embedchain loader reaches unsafe yaml.load, executing code on the server. (Our summary, written by a model. The source text is below.)
Details
The OpenAPI loader in Embedchain before 0.1.57 allows attackers to execute arbitrary code, related to the openapi.py yaml.load function argument.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-23731
- https://github.com/embedchain/embedchain/pull/1122
- https://github.com/embedchain/embedchain
- https://github.com/embedchain/embedchain/compare/0.1.56...0.1.57
- https://github.com/pypa/advisory-database/tree/main/vulns/embedchain/PYSEC-2024-7.yaml
Source: GitHub Advisory Database, used under CC BY 4.0.