---
cve: "CVE-2024-24785"
severity: "MEDIUM"
cvss: 5.4
epss: "80%"
vendor: "Go standard library"
kev: false
exploited: false
published: "2024-03-05 23:15:07"
tags: [cve, security, medium]
source: tsecurity.de CVE-Dossier
exported: "2026-09-08T16:50:28+02:00"
---

# CVE-2024-24785

> 5.4 MEDIUM

## Beschreibung

If errors returned from MarshalJSON methods contain user controlled data, they may be used to break the contextual auto-escaping behavior of the html/template package, allowing for subsequent actions to inject unexpected content into templates.

## CVSS-Vektor

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

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

## Referenzen

- <https://go.dev/issue/65697>
- <https://go.dev/cl/564196>
- <https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg>
- <https://pkg.go.dev/vuln/GO-2024-2610>
- <https://security.netapp.com/advisory/ntap-20240329-0008/>
- <http://www.openwall.com/lists/oss-security/2024/03/08/4>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2024-24785) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
