CVE-2024-24785
Errors returned from JSON marshaling may break template escaping in html/template
Published: Mar 5, 2024Updated: Mar 14, 2025 Sources: CVE List NVD BDU
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.
No summary for this CVE yet.
CVSS Vector Breakdown
Exploitability
AV:NAttack VectorNetwork
AC:LAttack ComplexityLow
PR:LPrivileges RequiredLow
UI:NUser InteractionNone
Scope
S:UScopeUnchanged
Impact
C:LConfidentialityLow
I:LIntegrityLow
A:NAvailabilityNone
Affected Products
ООО «Ред Софт»
commercial·RUaka red soft
The Go Project
oss-projectaka golang-google-protobuf, go, crypto
Go standard library
oss-project·USaka html/template, crypto/x509, golang standard library, net/http
Exploitability
Official Patch Available
References
https://go.dev/cl/564196
go.dev
https://go.dev/issue/65697
go.dev
https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg
groups.google.com
and 9 more references View all →
News mentions
Could not load news mentions.
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2024-24785 and every CVE in our database. Create a free account — no credit card required.
Create Free AccountPlain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows
