6.3medium
LangChain langchain_community TFIDFRetriever tfidf.py load_local server-side request forgery
- Severity
- 6.3medium CVSS:3.1 by VulDB
- Exploit likelihood
- 0.68% (higher than 53% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulDB
- Also known as
- PYSEC-2024-278
Description
A vulnerability was found in LangChain langchain_community 0.0.26. It has been classified as critical. Affected is the function load_local in the library libs/community/langchain_community/retrievers/tfidf.py of the component TFIDFRetriever. The manipulation leads to server-side request forgery. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 0.0.27 is able to address this issue. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-255372.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| LangChain langchain_community | 0.0.26 | CVE List |
| langchain langchain | 0.0.26 | NVD |
| langchain-community (PyPI) | up to 0.0.26 | PyPA Advisory Database |
All scores
| VulDB | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| VulDB | 6.3medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| VulDB | 6.5medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
A vulnerability was found in LangChain langchain_community 0.0.26. It has been classified as critical. Affected is the function load_local in the library libs/community/langchain_community/retrievers/tfidf.py of the component TFIDFRetriever. The manipulation leads to server-side request forgery. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 0.0.27 is able to address this issue. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-255372.
CVE List (de)
Es wurde eine kritische Schwachstelle in LangChain langchain_community 0.0.26 ausgemacht. Es geht dabei um die Funktion load_local in der Bibliothek libs/community/langchain_community/retrievers/tfidf.py der Komponente TFIDFRetriever. Durch das Manipulieren mit unbekannten Daten kann eine server-side request forgery-Schwachstelle ausgenutzt werden. Der Angriff kann über das Netzwerk passieren. Der Exploit steht zur öffentlichen Verfügung. Ein Aktualisieren auf die Version 0.0.27 vermag dieses Problem zu lösen. Als bestmögliche Massnahme wird das Einspielen eines Upgrades empfohlen.
NVD (es)
Se encontró una vulnerabilidad en Harrison Chase LangChain 0.1.9. Ha sido clasificada como crítica. La función load_local en la librería libs/community/langchain_community/retrievers/tfidf.py es afectada por la vulnerabilidad. La manipulación conduce a Server-Side Request Forgery. Es posible lanzar el ataque de forma remota. El exploit ha sido divulgado al público y puede utilizarse. El identificador de esta vulnerabilidad es VDB-255372.
References
| https://vuldb.com/?id.255372 | permissions-required, report, technical-description, vdb-entry | |
| https://vuldb.com/?ctiid.255372 | permissions-required, report, signature | |
| https://github.com/bayuncao/vul-cve-16 | broken-link, package | |
| https://github.com/bayuncao/vul-cve-16/tree/main/PoC.pkl | broken-link, exploit, web | |
| https://github.com/langchain-ai/langchain/pull/18695 | fix, issue-tracking, patch | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-2057 changed 2024-08-01 | CVE Terms of Use |
| NVD | CVE-2024-2057 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2024-278 changed 2026-05-21 | CC-BY-4.0 |