LangChain langchain_community 0.0.26 TFIDFRetriever tfidf.py load_local server-side request forgery
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 7.3 | $0-$5k | 0.10 |
Summary
A vulnerability described as critical has been identified in LangChain langchain_community 0.0.26. The impacted element is the function load_local in the library libs/community/langchain_community/retrievers/tfidf.py of the component TFIDFRetriever. The manipulation results in server-side request forgery.
This vulnerability is reported as CVE-2024-2057. The attack can be launched remotely. Moreover, an exploit is present.
Upgrading the affected component is recommended.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Details
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 with an unknown input leads to a server-side request forgery vulnerability. CWE is classifying the issue as CWE-918. 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. This is going to have an impact on confidentiality, integrity, and availability.
The weakness was disclosed 03/01/2024. The advisory is shared for download at github.com. This vulnerability is traded as CVE-2024-2057. Technical details and a public exploit are known.
The exploit is shared for download at github.com. It is declared as proof-of-concept.
Upgrading to version 0.0.27 eliminates this vulnerability. Applying a patch is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Product
Vendor
Name
Version
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.5VulDB Meta Temp Score: 7.3
VulDB Base Score: 6.3
VulDB Temp Score: 5.7
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 9.8
NVD Vector: 🔍
CNA Base Score: 6.3
CNA Vector (VulDB): 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Server-side request forgeryCWE: CWE-918
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: langchain_community 0.0.27
Patch: github.com
Timeline
03/01/2024 🔍03/01/2024 🔍
03/01/2024 🔍
03/04/2025 🔍
Sources
Advisory: github.comStatus: Confirmed
CVE: CVE-2024-2057 (🔍)
GCVE (CVE): GCVE-0-2024-2057
GCVE (VulDB): GCVE-100-255372
scip Labs: https://www.scip.ch/en/?labs.20161013
Entry
Created: 03/01/2024 07:46 AMUpdated: 03/04/2025 10:59 PM
Changes: 03/01/2024 07:46 AM (41), 03/13/2024 05:12 PM (7), 03/13/2024 05:16 PM (5), 04/03/2024 04:23 PM (16), 04/03/2024 04:30 PM (18), 03/04/2025 10:59 PM (20)
Complete: 🔍
Submitter: bayuncao
Committer: Anonymous User
Cache ID: 18:025:40
Submit
Accepted
- Submit #289390: langchain-ai langchain 0.1.9 Remote Code Execution (RCE) (by bayuncao)
No comments yet. Languages: en.
Please log in to comment.