Exposure of Sensitive System Information via ImagePromptTemplate in langchain-ai/langchain (langchain-ai langchain-ai/langchain)

CVE-2024-10940
MEDIUM 5.3

At a glance

Source
NVD
EPSS
EPSS 0.40 % Β· percentile 34 ()
State
PUBLISHED
Published
Updated
Assigner
@huntr_ai
NVD status
Deferred

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.

Weaknesses (CWE)

  • CWE-497 β€” Exposure of Sensitive System Information to an Unauthorized Control Sphere

References

Scores

VersionScoreVectorScored by
CVSS 3.0MEDIUM 5.3CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N@huntr_ai
CVSS 3.0MEDIUM 5.3CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NNVD Β· security@huntr.dev (Secondary)

Advisories

European references

Affected products

ProductVersions
langchain-ai Β· langchain-ai/langchainaffected unspecified < 0.3.15

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST β€” attribution requested
ENISA EUVDENISA β€” reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain β€” this product uses data from the NVD API but is not endorsed or certified by the NVD