CyberAlerts is shutting down on June 30th, 2025. Thank you for your support!

CVE-2024-24785: Errors returned from JSON marshaling may break template escaping in html/template

Description

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.

Classification

CVE ID: CVE-2024-24785

Affected Products

Vendor: Go standard library

Product: html/template

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.04% (probability of being exploited)

EPSS Percentile: 12.91% (scored less or equal to compared to others)

EPSS Date: 2025-03-14 (when was this score calculated)

References

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

Timeline