Red Hat VEX
RHVEX-CVE-2024-24785
golang: html/template: errors returned from MarshalJSON methods may break template escaping
Details
A flaw was found in Go's html/template standard library package. 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 subsequent actions to inject unexpected content into templates.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:8 | grafana | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | grafana-azure-monitor | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | grafana-cloudwatch | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | grafana-elasticsearch | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | grafana-graphite | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | grafana-influxdb | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | grafana-loki | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | grafana-mssql | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | grafana-mysql | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | grafana-opentsdb | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | grafana-postgres | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | grafana-prometheus | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | grafana-selinux | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | grafana-stackdriver | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | osbuild-composer | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | osbuild-composer-core | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | osbuild-composer-dnf-json | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | osbuild-composer-worker | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | toolbox | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | toolbox-tests | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | grafana | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | grafana-selinux | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | ignition | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | ignition-edge | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | ignition-grub | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | ignition-validate | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | osbuild-composer | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | osbuild-composer-core | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | osbuild-composer-dnf-json | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | osbuild-composer-worker | All versions, will not be fixed |
References
- https://access.redhat.com/security/cve/CVE-2024-24785
- https://bugzilla.redhat.com/show_bug.cgi?id=2268022
- https://www.cve.org/CVERecord?id=CVE-2024-24785
- https://nvd.nist.gov/vuln/detail/CVE-2024-24785
- https://go.dev/cl/564196
- https://go.dev/issue/65697
- https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg
- https://vuln.go.dev/ID/GO-2024-2610.json