---
cve: "CVE-2025-46059"
severity: "CRITICAL"
cvss: 9.8
epss: "0.7%"
vendor: "n/a"
kev: false
exploited: false
published: "2025-07-29 15:15:35"
tags: [cve, security, critical]
source: tsecurity.de CVE-Dossier
exported: "2026-10-10T11:45:42+02:00"
---

# CVE-2025-46059

> 9.8 CRITICAL · 🧪 PoC

## Beschreibung

langchain-ai v0.3.51 was discovered to contain an indirect prompt injection vulnerability in the GmailToolkit component. This vulnerability allows attackers to execute arbitrary code and compromise the application via a crafted email message. NOTE: this is disputed by the Supplier because the code-execution issue was introduced by user-written code that does not adhere to the LangChain security practices.

## CISA-Anreicherung (vulnrichment/ADP)

- CISA-SSVC (Coordinator, v2.0.3):
  - Exploitation: **poc**
  - Automatable: **yes**
  - Technical Impact: **total**

## CVSS-Vektor

```
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Gering | bad |
| PR Privilegien | Keine | bad |
| UI Interaktion | Keine | bad |
| S Scope | Unverändert | good |
| C Vertraulichkeit | Hoch | bad |
| I Integrität | Hoch | bad |
| A Verfügbarkeit | Hoch | bad |

## Schwachstellen-Klasse

- **CWE-94** — Improper Control of Generation of Code ('Code Injection')
  The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

## Angriffsmuster (CAPEC)

- [CAPEC-35 — Leverage Executable Code in Non-Executable Files](https://capec.mitre.org/data/definitions/35.html) _(Severity: Very High)_
- [CAPEC-77 — Manipulating User-Controlled Variables](https://capec.mitre.org/data/definitions/77.html) _(Severity: Very High)_
- [CAPEC-242 — Code Injection](https://capec.mitre.org/data/definitions/242.html) _(Severity: High)_

## ATT&CK-Techniken

- [T1027.006 — Obfuscated Files or Information: HTML Smuggling](https://attack.mitre.org/techniques/T1027/006/)
- [T1027.009 — Obfuscated Files or Information: Embedded Payloads](https://attack.mitre.org/techniques/T1027/009/)
- [T1564.009 — Hide Artifacts: Resource Forking](https://attack.mitre.org/techniques/T1564/009/)

## Referenzen

- <https://github.com/langchain-ai/langchain/issues/30833>
- <https://github.com/Jr61-star/CVEs/blob/main/CVE-2025-46059.md>
- <https://github.com/langchain-ai/langchain-community/issues/217#issuecomment-3144824471>
- <https://python.langchain.com/docs/security/>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/sicherheitsluecken/cve-2025-46059/) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI WID (CSAF)_
