Skip to main content

Exposure of Sensitive System Information to an Unauthorized Control Sphere

CVE-2024-10940

Severity Medium
Score 5.3/10

Summary

A vulnerability in langchain-core versions 0.1.17 through 0.1.52, 0.2.0rc1 through 0.2.42, and 0.3.0.dev0 through 0.3.14 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.

  • LOW
  • NETWORK
  • NONE
  • UNCHANGED
  • NONE
  • NONE
  • LOW
  • NONE

CWE-497 - Exposure of Sensitive System Information to an Unauthorized Control Sphere

The application does not properly prevent sensitive system-level information from being accessed by unauthorized actors who do not have the same level of access to the underlying system as the application does.

Advisory Timeline

  • Published