{"schemaVersion":3,"id":"CVE-2024-2057","aliases":["PYSEC-2024-278"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2024-03-01T11:31:04.385Z","modified":"2024-08-01T19:03:39.093Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":6.3,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"CVE.org","score":6.5,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.5,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00578,"percentile":0.46539,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":-0.003999999999999924,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00582},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00578,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00578,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00578,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00578,"percentile":0.46539}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00582,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00578,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00578,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00578,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00578,"percentile":0.46539}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_BAYUNCAO_VUL-CVE-16","name":"Vul Cve 16","source":"github","url":"https://github.com/bayuncao/vul-cve-16/tree/main/PoC.pkl","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-918","name":"Server-Side Request Forgery (SSRF)","description":"The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/918.html"}],"affected":[{"vendor":"langchain","product":"langchain","name":"langchain","label":"langchain","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"0.0.26","noFixRecorded":false,"fixedIn":null}],"versionsText":"0.0.26","eol":null,"hubHref":"/vendor/langchain/langchain"},{"vendor":"langchain","product":"langchain_community","name":"langchain community","label":"langchain_community","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"0.0.26","noFixRecorded":false,"fixedIn":null}],"versionsText":"0.0.26","eol":null,"hubHref":"/vendor/langchain/langchain_community"},{"vendor":"PyPI","product":"langchain-community","name":"langchain-community","label":"langchain-community","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/langchain-community","purlType":"pypi","versions":[{"text":"≤ 0.0.26","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 0.0.26","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://vuldb.com/?id.255372","label":"vuldb.com?id.255372","hostname":"vuldb.com","tags":["VDB Entry","Technical Description","REPORT","Permissions Required"]},{"url":"https://vuldb.com/?ctiid.255372","label":"vuldb.com?ctiid.255372","hostname":"vuldb.com","tags":["Signature","Permissions Required","REPORT"]},{"url":"https://github.com/bayuncao/vul-cve-16","label":"github.com/bayuncao/vul-cve-16","hostname":"github.com","tags":["Broken Link","PACKAGE"]},{"url":"https://github.com/bayuncao/vul-cve-16/tree/main/PoC.pkl","label":"github.com/bayuncao/vul-cve-16/tree/main/PoC.pkl","hostname":"github.com","tags":["Broken Link","Exploit","WEB"]},{"url":"https://github.com/langchain-ai/langchain/pull/18695","label":"github.com/langchain-ai/langchain/pull/18695","hostname":"github.com","tags":["Issue Tracking","Patch","FIX"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-03-01T11:31:04.385Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-01T19:03:39.093Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T01:34:51.452Z","stale":false,"partial":false}}