Golang 1.10: If errors returned from MarshalJSON methods contain user controlled data, they may be used to break the
Affects golang-1.10Source GCVE Database
Not known to be exploited · CVSS 5.4 Medium · fixed in 1.18.1-1ubuntu1~16.04.6+esm1 : update golang-1.10 when convenient.
Data as of 24 Nov 2026, 19:25 UTC
- Patch
- Available – fixed in 1.18.1-1ubuntu1~16.04.6+esm1, 1.18.1-1ubuntu1~18.04.4+esm1, 1.18.1-1ubuntu1~20.04.3 +4
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 5 Mar 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 22.04 LTSgolang-1.17pkg:deb/ubuntu/golang-1.17?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSgolang-1.18pkg:deb/ubuntu/golang-1.18?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSgolang-1.21pkg:deb/ubuntu/golang-1.21?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTSgolang-1.13pkg:deb/ubuntu/golang-1.13?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSgolang-1.18pkg:deb/ubuntu/golang-1.18?arch=source&distro=focalOther threats | Affected
| Fixed in
|
Ubuntu 20.04 LTSgolang-1.21pkg:deb/ubuntu/golang-1.21?arch=source&distro=focalOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2024-24785 (opens in a new tab)
- github.com/golang/go/issues/65697 (opens in a new tab)
- github.com/golang/go/commit/056b0edcb8c152152021eebf4cf42adbfbe77992 (opens in a new tab)
- github.com/golang/go/commit/3643147a29352ca2894fd5d0d2069bc4b4335a7e (opens in a new tab)
- go.dev/issue/65697 (opens in a new tab)
- go.dev/cl/564196 (opens in a new tab)
- groups.google.com/g/golang-announce/c/5pwGVUPoMbg (opens in a new tab)
- pkg.go.dev/vuln/GO-2024-2610 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-24785 (opens in a new tab)
- ubuntu.com/security/notices/USN-6886-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7061-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7109-1 (opens in a new tab)