5.4

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

Deferred
AliasesUBUNTU-CVE-2024-24785DEBIAN-CVE-2024-24785CGA-22f3-p6hc-j9jm
Published 05-03-2024Last modified 14-03-2025

Vulnerability summary

CVE-2024-24785 is a medium (CVSS 5.4) vulnerability in go standard library html/template. EPSS estimates a 0.80% chance of exploitation in the next 30 days, higher than 56.4% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.4/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.80%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 20 · Related 459
OPENSUSE-SU-2024:13752-1OPENSUSE-SU-2024:13756-1RHSA-2024:0045RHSA-2024:2562RHSA-2024:3259RHSA-2024:4023

Showing 100 of 466.

Timeline

  1. 05-03-2024
    PublishedVulnerability first disclosed.
  2. 14-03-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.80%

Chance of exploitation in the next 30 days

Percentile

56%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.80% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

No weakness data has been published for this record.

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard199 products
  • actions-runner-controller< 0.8.3-r1
  • amass< 4.2.0-r4
  • argo-workflows< 3.6.5-r2
  • argo-workflows-fips< 3.5.5-r1
  • atlantis-fips< 0.33.0-r6
Alpine1 product
  • go< 1.21.8-r0 | < 1.22.1-r0

2 vendors · 200 products · Showing 200 of 562

References

17 links
Show all 17 references