Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2023-24538

published critical CVSS 3.1 · 9.8

Backticks not treated as string delimiters in html/template

Published
06 Apr 2023, 15:50:48 UTC
Updated
13 Feb 2025, 16:44:19 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Go standard library — html/template0 to < 1.19.8 · 1.20.0-0 to < 1.20.3 · Other versions: unaffected Affected Not stated Go
Amazon Linux AL2 Release evaluationALAS2-2023-2163 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2-2023-2303 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2DOCKER-2023-029 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2DOCKER-2023-031 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2ECS-2023-019 Fixed Not stated Amazon Linux assessment
AlmaLinux 8 aardvark-dns Advisory build 2:1.0.1-38.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
Alpine Linux edge go Fixed 1.20.3-r0 Package fix record
Show 103 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2 Release evaluationALAS2GOLANG1.19-2023-001 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2NITRO-ENCLAVES-2023-026 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2NITRO-ENCLAVES-2023-030 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2023-175 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2023-388 Fixed Not stated Amazon Linux assessment
Oracle Linux 8 aardvark-dnsaarch64 · container-tools · 4.0b Advisory build 2:1.0.1-38.0.1.module+el8.9.0+90044+a34bc939 ELSA-2023-6938
AlmaLinux 8 aardvark-dns Advisory build 2:1.7.0-1.module_el8.9.0+3657+d86e192f ALSA-2023:6939
AlmaLinux 8 buildah Advisory build 1:1.24.6-7.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 buildah Advisory build 1:1.31.3-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 buildah-tests Advisory build 1:1.24.6-7.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 buildah-tests Advisory build 1:1.31.3-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 cockpit-podman Advisory build 46-1.module_el8.7.0+3344+5bcd850f ALSA-2023:6938
AlmaLinux 8 cockpit-podman Advisory build 75-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 conmon Advisory build 2:2.1.4-2.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 conmon Advisory build 3:2.1.8-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 container-selinux Advisory build 2:2.205.0-3.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 container-selinux Advisory build 2:2.221.0-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 containernetworking-plugins Advisory build 1:1.1.1-5.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 containernetworking-plugins Advisory build 1:1.3.0-4.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 containers-common Advisory build 2:1-38.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 containers-common Advisory build 2:1-54.module_el8.9.0+3673+0c64b403 ALSA-2023:6939
AlmaLinux 8 crit Advisory build 3.15-3.module_el8.6.0+2877+8e437bf5 ALSA-2023:6938
AlmaLinux 8 crit Advisory build 3.15-3.module_el8.6.0+3137+d33c3efb ALSA-2023:6938
AlmaLinux 8 crit Advisory build 3.18-4.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 criu Advisory build 3.15-3.module_el8.6.0+2877+8e437bf5 ALSA-2023:6938
AlmaLinux 8 criu Advisory build 3.15-3.module_el8.6.0+3137+d33c3efb ALSA-2023:6938
AlmaLinux 8 criu Advisory build 3.18-4.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 criu-devel Advisory build 3.15-3.module_el8.6.0+2877+8e437bf5 ALSA-2023:6938
AlmaLinux 8 criu-devel Advisory build 3.15-3.module_el8.6.0+3137+d33c3efb ALSA-2023:6938
AlmaLinux 8 criu-devel Advisory build 3.18-4.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 criu-libs Advisory build 3.15-3.module_el8.6.0+2877+8e437bf5 ALSA-2023:6938
AlmaLinux 8 criu-libs Advisory build 3.15-3.module_el8.6.0+3137+d33c3efb ALSA-2023:6938
AlmaLinux 8 criu-libs Advisory build 3.18-4.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 crun Advisory build 1.8.3-1.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 crun Advisory build 1.8.7-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 fuse-overlayfs Advisory build 1.12-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 fuse-overlayfs Advisory build 1.9-2.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 libslirp Advisory build 4.4.0-1.module_el8.6.0+2877+8e437bf5 ALSA-2023:6938
AlmaLinux 8 libslirp Advisory build 4.4.0-1.module_el8.6.0+3137+d33c3efb ALSA-2023:6938
AlmaLinux 8 libslirp Advisory build 4.4.0-1.module_el8.8.0+3615+3543c705 ALSA-2023:6939
AlmaLinux 8 libslirp-devel Advisory build 4.4.0-1.module_el8.6.0+2877+8e437bf5 ALSA-2023:6938
AlmaLinux 8 libslirp-devel Advisory build 4.4.0-1.module_el8.6.0+3137+d33c3efb ALSA-2023:6938
AlmaLinux 8 libslirp-devel Advisory build 4.4.0-1.module_el8.8.0+3615+3543c705 ALSA-2023:6939
AlmaLinux 8 netavark Advisory build 2:1.0.1-38.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 netavark Advisory build 2:1.7.0-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 oci-seccomp-bpf-hook Advisory build 1.2.5-2.module_el8.8.0+3468+16b86c82 ALSA-2023:6938
AlmaLinux 8 oci-seccomp-bpf-hook Advisory build 1.2.9-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 podman Advisory build 2:4.0.2-24.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 podman Advisory build 3:4.6.1-4.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 podman-catatonit Advisory build 2:4.0.2-24.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 podman-catatonit Advisory build 3:4.6.1-4.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 podman-docker Advisory build 2:4.0.2-24.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 podman-docker Advisory build 3:4.6.1-4.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 podman-gvproxy Advisory build 2:4.0.2-24.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 podman-gvproxy Advisory build 3:4.6.1-4.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 podman-plugins Advisory build 2:4.0.2-24.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 podman-plugins Advisory build 3:4.6.1-4.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 podman-remote Advisory build 2:4.0.2-24.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 podman-remote Advisory build 3:4.6.1-4.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 podman-tests Advisory build 2:4.0.2-24.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 podman-tests Advisory build 3:4.6.1-4.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 python3-criu Advisory build 3.15-3.module_el8.6.0+2877+8e437bf5 ALSA-2023:6938
AlmaLinux 8 python3-criu Advisory build 3.15-3.module_el8.6.0+3137+d33c3efb ALSA-2023:6938
AlmaLinux 8 python3-criu Advisory build 3.18-4.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 python3-podman Advisory build 4.0.0-2.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 python3-podman Advisory build 4.6.0-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 runc Advisory build 1:1.1.5-2.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 runc Advisory build 1:1.1.9-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 skopeo Advisory build 2:1.13.3-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 skopeo Advisory build 2:1.6.2-8.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 skopeo-tests Advisory build 2:1.13.3-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 skopeo-tests Advisory build 2:1.6.2-8.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 slirp4netns Advisory build 1.1.8-3.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 slirp4netns Advisory build 1.2.1-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 toolbox Advisory build 0.0.99.4-5.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 toolbox Advisory build 0.0.99.4-5.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 toolbox-tests Advisory build 0.0.99.4-5.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 8 toolbox-tests Advisory build 0.0.99.4-5.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 udica Advisory build 0.2.6-20.module_el8.8.0+3615+3543c705 ALSA-2023:6939
AlmaLinux 8 udica Advisory build 0.2.6-4.module_el8.9.0+3627+db8ec155 ALSA-2023:6938
AlmaLinux 9 buildah Advisory build 1:1.31.3-1.el9 ALSA-2023:6473
AlmaLinux 9 buildah-tests Advisory build 1:1.31.3-1.el9 ALSA-2023:6473
AlmaLinux 9 containernetworking-plugins Advisory build 1:1.3.0-4.el9 ALSA-2023:6402
AlmaLinux 9 podman Advisory build 2:4.6.1-5.el9 ALSA-2023:6474
AlmaLinux 9 podman-docker Advisory build 2:4.6.1-5.el9 ALSA-2023:6474
AlmaLinux 9 podman-gvproxy Advisory build 2:4.6.1-5.el9 ALSA-2023:6474
AlmaLinux 9 podman-plugins Advisory build 2:4.6.1-5.el9 ALSA-2023:6474
AlmaLinux 9 podman-remote Advisory build 2:4.6.1-5.el9 ALSA-2023:6474
AlmaLinux 9 podman-tests Advisory build 2:4.6.1-5.el9 ALSA-2023:6474
AlmaLinux 9 skopeo Advisory build 2:1.13.3-1.el9 ALSA-2023:6363
AlmaLinux 9 skopeo-tests Advisory build 2:1.13.3-1.el9 ALSA-2023:6363
AlmaLinux 9 toolbox Advisory build 0.0.99.4-6.el9_3 ALSA-2023:6346
AlmaLinux 9 toolbox-tests Advisory build 0.0.99.4-6.el9_3 ALSA-2023:6346
Alpine Linux v3.17 go Fixed 1.19.8-r0 Package fix record
Alpine Linux v3.18 go Fixed 1.20.3-r0 Package fix record
Alpine Linux v3.19 go Fixed 1.20.3-r0 Package fix record
Alpine Linux v3.20 go Fixed 1.20.3-r0 Package fix record
Alpine Linux v3.21 go Fixed 1.20.3-r0 Package fix record
Alpine Linux v3.22 go Fixed 1.20.3-r0 Package fix record
Alpine Linux v3.23 go Fixed 1.20.3-r0 Package fix record
Alpine Linux v3.24 go Fixed 1.20.3-r0 Package fix record
Oracle Linux 8 aardvark-dnsaarch64 · container-tools · ol8 is enabled Advisory build 2:1.7.0-1.module+el8.9.0+90021+ce997450 ELSA-2023-6939
Oracle Linux 8 aardvark-dnsx86_64 · container-tools · 4.0b Advisory build 2:1.0.1-38.0.1.module+el8.9.0+90044+a34bc939 ELSA-2023-6938

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

Templates do not properly consider backticks (`) as Javascript string delimiters, and do not escape them as expected. Backticks are used, since ES6, for JS template literals. If a template contains a Go template action within a Javascript template literal, the contents of the action can be used to terminate the literal, injecting arbitrary Javascript code into the Go template. As ES6 template literals are rather complex, and themselves can do string interpolation, the decision was made to simply disallow Go template actions from being used inside of them (e.g. "var a = {{.}}"), since there is no obviously safe way to allow this behavior. This takes the same approach as github.com/google/safehtml. With fix, Template.Parse returns an Error when it encounters templates like this, with an ErrorCode of value 12. This ErrorCode is currently unexported, but will be exported in the release of Go 1.21. Users who rely on the previous behavior can re-enable it using the GODEBUG flag jstmpllitinterp=1, with the caveat that backticks will now be escaped. This should be used with caution.

en · Go · cna

Vendor advisories explicitly linked to this CVE.

64

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
9.8 / 10
Severity
critical
Provider
CISA-ADP · adp
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Go standard library html/template 0 to < 1.19.8 (affected · semver)1.20.0-0 to < 1.20.3 (affected · semver)Default: unaffected Go · cna

Weaknesses

2
  • CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection') (Go · cna)
  • CWE-94 CWE-94 Improper Control of Generation of Code ('Code Injection') (CISA-ADP · adp)

References

6

Provider assertions

3

Go · cna

Backticks not treated as string delimiters in html/template

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
dddb66e970be4ce4c39e5efe97b8c506b5a20e48274e8b217694b410fb7d7bc7
Ingested
23 Sep 2026, 08:06:44 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected