CVE-2024-10940
Last modified
CVE-2024-10940 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. A vulnerability in langchain-core versions >=0.1.17,<0.1.53, >=0.2.0,<0.2.43, and >=0.3.0,<0.3.15 allows unauthorized users to read arbitrary files from the host file system. The issue arises from the ability to create langchain_core.prompts.ImagePromptTemplate's (and by extension langchain_core.prompts.ChatPromptTemplate's) with input variables that can read any user-specified path from the server file system. EPSS estimates a 0.37% chance of exploitation in the next 30 days.
Description
A vulnerability in langchain-core versions >=0.1.17,<0.1.53, >=0.2.0,<0.2.43, and >=0.3.0,<0.3.15 allows unauthorized users to read arbitrary files from the host file system. The issue arises from the ability to create langchain_core.prompts.ImagePromptTemplate's (and by extension langchain_core.prompts.ChatPromptTemplate's) with input variables that can read any user-specified path from the server file system. If the outputs of these prompt templates are exposed to the user, either directly or through downstream model outputs, it can lead to the exposure of sensitive information.
Metrics
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2024-10940?
How severe is CVE-2024-10940?
How do I fix CVE-2024-10940?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-10935automatic1111/stable-diffusion-webui version 1.10.0 contains…7.5
- CVE-2024-10936The String locator plugin for WordPress is vulnerable to PHP…8.8
- CVE-2024-10937The Related Posts, Inline Related Posts, Contextual Related …5.3
- CVE-2024-10938The OVRI Payment plugin for WordPress contains malicious .ht…6.5
- CVE-2024-10939The Image Widget WordPress plugin before 4.4.11 does not san…4.8
- CVE-2024-1094The Timetics- AI-powered Appointment Booking with Visual Sea…7.3
- CVE-2024-10941A malicious website could have included an iframe with an ma…6.5
- CVE-2024-10942The All-in-One WP Migration and Backup plugin for WordPress …7.5
- CVE-2024-10943An authentication bypass vulnerability exists in the affecte…9.1
- CVE-2024-10944A Remote Code Execution vulnerability exists in the affected…8.4
- CVE-2024-10945A Local Privilege Escalation vulnerability exists in the aff…7.3
- CVE-2024-10946A vulnerability classified as critical has been found in Gua…7.2
Are you affected by CVE-2024-10940?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
