File System Exposure Vulnerability in Langchain Core by Langchain AI
CVE-2024-10940

5.3MEDIUM

Key Information:

Vendor
CVE Published:
20 March 2025

What is CVE-2024-10940?

A vulnerability in Langchain Core allows unauthorized users to access arbitrary files within the host’s file system, impacting versions >=0.1.17 and below 0.1.53, as well as >=0.2.0 and below 0.2.43, and >=0.3.0 and below 0.3.15. This issue arises from a flaw in the way 'ImagePromptTemplate' and 'ChatPromptTemplate' are instantiated with user-provided paths, potentially leading to the exposure of sensitive data if these templates are improperly handled. Appropriate measures should be taken to secure your applications from unauthorized file access.

Affected Version(s)

langchain-ai/langchain < 0.3.15

References

CVSS V3.0

Score:
5.3
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
None
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.