Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Langchaingo / Langchaingo | affected 0.1.14 |
CWE
No CWE identifiers supplied.
References
- https://github.com/tmc/langchaingo/security/advisories/GHSA-mgcj-g55g-rf6h
- https://github.com/tmc/langchaingo/pull/1348
ADP enrichment
No English description supplied.
No references supplied.
No English description supplied.