Skip to main content
CVE-2024-24785VulnerabilityPublished Updated

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

0
Compare

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

CVSS 3.1 base score
5.4Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 Mar 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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.

Affected software

ProductAffectedFixed in
Ubuntu 22.04 LTSgolang-1.17pkg:deb/ubuntu/golang-1.17?arch=source&distro=jammyOther threatsAffected
  • <1.17.13-3ubuntu1.2
Fixed in
  • 1.17.13-3ubuntu1.2
Ubuntu 22.04 LTSgolang-1.18pkg:deb/ubuntu/golang-1.18?arch=source&distro=jammyOther threatsAffected
  • 1.18~beta1-0ubuntu1 – 1.18~rc1-1ubuntu1
  • <1.18.1-1ubuntu1.2
4 affected builds
Fixed in
  • 1.18.1-1ubuntu1.2
Ubuntu 22.04 LTSgolang-1.21pkg:deb/ubuntu/golang-1.21?arch=source&distro=jammyOther threatsAffected
  • <1.21.1-1~ubuntu22.04.3
Fixed in
  • 1.21.1-1~ubuntu22.04.3
Ubuntu Pro 22.04 LTSgolang-1.13pkg:deb/ubuntu/golang-1.13?arch=source&distro=esm-apps/jammyOther threatsAffected
  • 1.13.8-1ubuntu2 – 1.13.8-1ubuntu2.22.04.2
4 affected builds
Fixed in–
Ubuntu 20.04 LTSgolang-1.18pkg:deb/ubuntu/golang-1.18?arch=source&distro=focalOther threatsAffected
  • <1.18.1-1ubuntu1~20.04.3
Fixed in
  • 1.18.1-1ubuntu1~20.04.3
Ubuntu 20.04 LTSgolang-1.21pkg:deb/ubuntu/golang-1.21?arch=source&distro=focalOther threatsAffected
  • <1.21.1-1~ubuntu20.04.3
Fixed in
  • 1.21.1-1~ubuntu20.04.3

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

Community reviews

Loading reviews…