{"id":"CVE-2024-2057","state":"PUBLISHED","title":"LangChain langchain_community TFIDFRetriever tfidf.py load_local server-side request forgery","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.","publishedAt":"2024-03-01T11:31:04.385Z","updatedAt":"2024-08-01T19:03:39.093Z","severity":{"score":6.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","source":"VulDB"},"assigner":"VulDB","products":["LangChain langchain_community"],"affected":[{"vendor":"LangChain","product":"langchain_community","versions":[{"version":"0.0.26","status":"affected"}],"modules":["TFIDFRetriever"]}],"references":["https://vuldb.com/?id.255372","https://vuldb.com/?ctiid.255372","https://github.com/bayuncao/vul-cve-16","https://github.com/bayuncao/vul-cve-16/tree/main/PoC.pkl","https://github.com/langchain-ai/langchain/pull/18695"],"weaknesses":["CWE-918"],"ingestedAt":"2026-10-29T20:07:21.467Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/2xxx/CVE-2024-2057.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-2057","state":"PUBLISHED","datePublished":"2024-03-01T11:31:04.385Z","dateUpdated":"2024-08-01T19:03:39.093Z","assignerShortName":"VulDB","assignerOrgId":"1af790b2-7ee1-4545-860a-a788eba489b5","dateReserved":"2024-03-01T06:41:06.479Z"},"containers":{"cna":{"title":"LangChain langchain_community TFIDFRetriever tfidf.py load_local server-side request forgery","descriptions":[{"lang":"en","value":"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."},{"lang":"de","value":"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."}],"affected":[{"vendor":"LangChain","product":"langchain_community","versions":[{"version":"0.0.26","status":"affected"}],"modules":["TFIDFRetriever"]}],"references":[{"url":"https://vuldb.com/?id.255372","name":"VDB-255372 | LangChain langchain_community TFIDFRetriever tfidf.py load_local server-side request forgery","tags":["vdb-entry","technical-description"]},{"url":"https://vuldb.com/?ctiid.255372","name":"VDB-255372 | CTI Indicators (IOB, IOC, IOA)","tags":["signature","permissions-required"]},{"url":"https://github.com/bayuncao/vul-cve-16","tags":["broken-link"]},{"url":"https://github.com/bayuncao/vul-cve-16/tree/main/PoC.pkl","tags":["broken-link","exploit"]},{"url":"https://github.com/langchain-ai/langchain/pull/18695","tags":["issue-tracking","patch"]}],"metrics":[{"cvssV3_1":{"version":"3.1","baseScore":6.3,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","baseSeverity":"MEDIUM"}},{"cvssV3_0":{"version":"3.0","baseScore":6.3,"vectorString":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","baseSeverity":"MEDIUM"}},{"cvssV2_0":{"version":"2.0","baseScore":6.5,"vectorString":"AV:N/AC:L/Au:S/C:P/I:P/A:P"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-918","type":"CWE","lang":"en","description":"CWE-918 Server-Side Request Forgery"}]}],"providerMetadata":{"shortName":"VulDB","orgId":"1af790b2-7ee1-4545-860a-a788eba489b5","dateUpdated":"2024-03-13T16:11:21.182Z"},"timeline":[{"time":"2024-03-01T00:00:00.000Z","lang":"en","value":"Advisory disclosed"},{"time":"2024-03-01T01:00:00.000Z","lang":"en","value":"VulDB entry created"},{"time":"2024-03-13T17:16:14.000Z","lang":"en","value":"VulDB entry last update"}],"credits":[{"lang":"en","value":"bayuncao (VulDB User)","type":"reporter"}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-2057","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-03-01T15:53:59.467628Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-07-05T17:22:05.988Z"}},{"title":"CVE Program Container","references":[{"url":"https://vuldb.com/?id.255372","name":"VDB-255372 | LangChain langchain_community TFIDFRetriever tfidf.py load_local server-side request forgery","tags":["vdb-entry","technical-description","x_transferred"]},{"url":"https://vuldb.com/?ctiid.255372","name":"VDB-255372 | CTI Indicators (IOB, IOC, IOA)","tags":["signature","permissions-required","x_transferred"]},{"url":"https://github.com/bayuncao/vul-cve-16","tags":["broken-link","x_transferred"]},{"url":"https://github.com/bayuncao/vul-cve-16/tree/main/PoC.pkl","tags":["broken-link","exploit","x_transferred"]},{"url":"https://github.com/langchain-ai/langchain/pull/18695","tags":["issue-tracking","patch","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-01T19:03:39.093Z"}}]}}}