CVE-2025-9556
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-09-12

Last updated on: 2025-11-03

Assigner: CERT/CC

Description
Langchaingo supports the use of jinja2 syntax when parsing prompts, which is in turn parsed using the gonja library v1.5.3. Gonja supports include and extends syntax to read files, which leads to a server side template injection vulnerability within langchaingo, allowing an attacker to insert a statement into a prompt to read the "etc/passwd" file.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-09-12
Last Modified
2025-11-03
Generated
2026-05-07
AI Q&A
2025-09-12
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
gonja gonja 1.5.3
langchaingo langchaingo *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in Langchaingo, which uses jinja2 syntax parsed by the gonja library v1.5.3. Gonja's support for include and extends syntax allows reading files, leading to a server side template injection vulnerability. An attacker can exploit this by inserting a statement into a prompt to read sensitive files like "etc/passwd".


How can this vulnerability impact me? :

The vulnerability can allow an attacker to execute arbitrary template code on the server, potentially reading sensitive files such as "etc/passwd". This can lead to full compromise of confidentiality, integrity, and availability of the affected system, as indicated by the high CVSS score (9.8).


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart