VDB

CVE-2024-24785

CVE-2024-24785 PUBLISHED CVSS 5.4 MEDIUM

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.

PackageEcosystemFixed in
ghChainguard2.45.0-r1
dex-k8s-authenticatorChainguard1.4.0-r7
external-dnsChainguard0.14.0-r6
prometheus-2.45Chainguard2.45.3-r3
prometheus-adapter-fipsChainguard0.11.2-r3
govulncheckWolfi1.0.2-r1
kubernetes-dashboard-fipsChainguard2.7.0-r1
aws-efs-csi-driverWolfi1.7.6-r1
karpenter-0.23Chainguard0.23.0-r7
criu-debuginfoerrata.rockylinux.org0: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-serverWolfi2.10.11-r1
docker-cliChainguard24.0.6-r2

88 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
5.4
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Affected products

VendorProductVersions
Go standard libraryhtml/template0, 1.22.0-0
chainguardgh0
chainguarddex-k8s-authenticator0
chainguardexternal-dns0
chainguardprometheus-2.450
chainguardprometheus-adapter-fips0
wolfigovulncheck0
chainguardkubernetes-dashboard-fips0
wolfiaws-efs-csi-driver0
chainguardkarpenter-0.230
wolfinats-server0
chainguarddocker-cli0
wolfinri-elasticsearch0
wolfidive0
chainguardjsonnet-bundler0
chainguardprometheus-adapter0
chainguardflux-helm-controller-2.00
wolfikustomize0
chainguardexternal-dns-fips0
wolfikubeflow-katib0

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›