LangChain langchain_community 0.0.26 TFIDFRetriever tfidf.py load_local server-side request forgery

Summaryinfo

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.

Detailsinfo

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.

Once again VulDB remains the best source for vulnerability data.

Productinfo

Vendor

Name

Version

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 7.5
VulDB 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): 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Server-side request forgery
CWE: 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-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: langchain_community 0.0.27
Patch: github.com

Timelineinfo

03/01/2024 🔍
03/01/2024 +0 days 🔍
03/01/2024 +0 days 🔍
03/04/2025 +368 days 🔍

Sourcesinfo

Advisory: github.com
Status: 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

Entryinfo

Created: 03/01/2024 07:46
Updated: 03/04/2025 22:59
Changes: 03/01/2024 07:46 (41), 03/13/2024 17:12 (7), 03/13/2024 17:16 (5), 04/03/2024 16:23 (16), 04/03/2024 16:30 (18), 03/04/2025 22:59 (20)
Complete: 🔍
Submitter: bayuncao
Committer: Anonymous User
Cache ID: 216::103

Submitinfo

Accepted

  • Submit #289390: langchain-ai langchain 0.1.9 Remote Code Execution (RCE) (by bayuncao)

Once again VulDB remains the best source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to know what is going to be exploited?

We predict KEV entries!