CVE-2024-24785
Errors returned from JSON marshaling may break template escaping in html/template
Reported by go · Published March 5, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| gh | Chainguard | 2.45.0-r1 |
| dex-k8s-authenticator | Chainguard | 1.4.0-r7 |
| external-dns | Chainguard | 0.14.0-r6 |
| prometheus-2.45 | Chainguard | 2.45.3-r3 |
| prometheus-adapter-fips | Chainguard | 0.11.2-r3 |
| govulncheck | Wolfi | 1.0.2-r1 |
| kubernetes-dashboard-fips | Chainguard | 2.7.0-r1 |
| aws-efs-csi-driver | Wolfi | 1.7.6-r1 |
| karpenter-0.23 | Chainguard | 0.23.0-r7 |
| criu-debuginfo | errata.rockylinux.org | 0:3.18-5.module+el8.10.0+40047+0c0a73f4.aarch64, 0:3.18-5.module+el8.10.0+2001+6a33db9f.aarch64, 0:3.18-5.module+el8.10.0+1948+4b5cd4a9.aarch64, 0:3.18-5.module+el8.10.0+1896+b18fa106.aarch64, 0:3.18-5.module+el8.10.0+1880+8e896d1b.aarch64, 0:3.18-5.module+el8.10.0+1874+ce489889.aarch64, 0:3.18-5.module+el8.10.0+1872+2e18eb19.aarch64, 0:3.18-5.module+el8.10.0+1843+6892ab28.aarch64, 0:3.18-5.module+el8.10.0+1825+623b0c20.aarch64, 0:3.18-5.module+el8.10.0+1815+5fe7415e.aarch64 |
| nats-server | Wolfi | 2.10.11-r1 |
| docker-cli | Chainguard | 24.0.6-r2 |
88 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Go standard library | html/template | 0, 1.22.0-0 |
| chainguard | gh | 0 |
| chainguard | dex-k8s-authenticator | 0 |
| chainguard | external-dns | 0 |
| chainguard | prometheus-2.45 | 0 |
| chainguard | prometheus-adapter-fips | 0 |
| wolfi | govulncheck | 0 |
| chainguard | kubernetes-dashboard-fips | 0 |
| wolfi | aws-efs-csi-driver | 0 |
| chainguard | karpenter-0.23 | 0 |
| wolfi | nats-server | 0 |
| chainguard | docker-cli | 0 |
| wolfi | nri-elasticsearch | 0 |
| wolfi | dive | 0 |
| chainguard | jsonnet-bundler | 0 |
| chainguard | prometheus-adapter | 0 |
| chainguard | flux-helm-controller-2.0 | 0 |
| wolfi | kustomize | 0 |
| chainguard | external-dns-fips | 0 |
| wolfi | kubeflow-katib | 0 |
…and 701 more
Timeline
- Mar 5, 2024 CVE Published
- Mar 6, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (7 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (107 in total, the first dated here)
- Mar 29, 2026 Security Advisory (110 in total, the first dated here)
- May 11, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-24785
vulnetix vdb fixes CVE-2024-24785
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-24785/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart