Vulnerability in Go Standard Library Html/template

CVE-2024-24785

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.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N.

EPSS exploit prediction

EPSS: 0.008 (54.9th percentile), scored .

Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 55th percentile — 54.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2024-24785: held from 0.008 to 0.008.

EPSS over last 30 days · oldest: 0.008 · newest: 0.008 · change: 0.000

Affected products

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2024-24785?
CVE-2024-24785 is a medium-severity vulnerability in Go Standard Library Html/template, classified under CWE-150: IMPROPER NEUTRALIZATION OF ESCAPE, META, OR CONTROL SEQUENCES. CVSS score: 5.4/10. Published 2024-03-05.
How severe is CVE-2024-24785?
Medium severity. CVSS v3 base score is 5.4 out of 10.
Is CVE-2024-24785 known to be exploited?
5 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.