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.
CVE-2023-24538
Score 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2023-04-06. NVD baseline CVSS 9.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 9.8
- EG Score
- 9.8(medium)
- EPSS
- 81.1%
- KEV
- Not listed
Published
April 6, 2023
Last Modified
February 12, 2025
Advisory Details (5)
Auto-updated Jun 15, 2026Go: Multiple Vulnerabilities (GLSA 202311-09) — Gentoo security
https://security.gentoo.org/glsa/202311-09html/template: backticks not treated as string delimiters (CVE-2023-24538) · Issue #59234 · golang/go · GitHub
https://go.dev/issue/59234Vendor Advisories for CVE-2023-24538(20)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2024:2944Red Hat Product SecurityHigh
Red Hat Security Advisory: AMQ Broker 7.12.0.OPR.1.GA Container Images release and security update
- RHSA-2023:6939Red Hat Product SecurityMedium
Red Hat Security Advisory: container-tools:rhel8 security and bug fix update
- RHSA-2023:6938Red Hat Product SecurityMedium
Red Hat Security Advisory: container-tools:4.0 security and bug fix update
- RHSA-2023:6346Red Hat Product SecurityMedium
Red Hat Security Advisory: toolbox security and bug fix update
- RHSA-2023:6402Red Hat Product SecurityMedium
Red Hat Security Advisory: containernetworking-plugins security and bug fix update
- RHSA-2023:6474Red Hat Product SecurityMedium
Red Hat Security Advisory: podman security, bug fix, and enhancement update
- RHSA-2023:6473Red Hat Product SecurityMedium
Red Hat Security Advisory: buildah security update
- RHSA-2023:6363Red Hat Product SecurityMedium
Red Hat Security Advisory: skopeo security update
- +12 more
Patch Availability(30)
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
Go(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| stdlib | — | 1.20.3 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(13)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Microsoft MSRCCVE-2023-245382025-09-04
Backticks not treated as string delimiters in html/template
- Red HatRHSA-2023:3318MODERATE2023-04-04
RHSA-2023:3318 — Moderate
- Red HatRHSA-2023:3319MODERATE2023-04-04
RHSA-2023:3319 — Moderate
- Red HatRHSA-2023:3323MODERATE2023-04-04
RHSA-2023:3323 — Moderate
- Red HatRHSA-2023:3366MODERATE2023-04-04
RHSA-2023:3366 — Moderate
- Red HatRHSA-2023:3367MODERATE2023-04-04
RHSA-2023:3367 — Moderate
- Red HatRHSA-2023:3445MODERATE2023-04-04
RHSA-2023:3445 — Moderate
- Red HatRHSA-2023:3450MODERATE2023-04-04
RHSA-2023:3450 — Moderate
- Red HatRHSA-2023:3455MODERATE2023-04-04
RHSA-2023:3455 — Moderate
- Red HatRHSA-2023:3536MODERATE2023-04-04
RHSA-2023:3536 — Moderate
- Red HatRHSA-2023:3540MODERATE2023-04-04
RHSA-2023:3540 — Moderate
- Red HatRHSA-2023:3624MODERATE2023-04-04
RHSA-2023:3624 — Moderate
- Red HatRHSA-2023:4335MODERATE2023-04-04
RHSA-2023:4335 — Moderate
Data Freshness Timeline
(refreshed 8× in last 7d / 44× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-09 19:08 UTCEPSS rescore
- 2026-07-08 15:13 UTCEPSS rescore
- 2026-07-07 13:44 UTCEPSS rescore
- 2026-07-06 16:26 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-02 16:58 UTCEPSS rescore
- 2026-07-01 15:04 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-29 14:04 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 00:34 UTCOSV refresh
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
Show 61 moreShow fewer
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-15 17:47 UTCEPSS rescore
- 2026-06-14 23:16 UTCEPSS rescore
- 2026-06-13 22:59 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-11 13:59 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-10 22:17 UTCEPSS rescore
- 2026-06-10 13:21 UTCEPSS rescore
- 2026-06-10 13:21 UTCEPSS rescore
- 2026-06-10 11:47 UTCOSV refresh
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:43 UTCEPSS rescore
- 2026-05-29 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-25 03:39 UTCEG score recompute
- 2026-05-25 03:39 UTCVendor advisory
- 2026-05-25 03:39 UTCGHSA enrichment
Related CVEs(same vendor + same CWE)
Same vendor
10 shownmsrc · redhat
Same CWE
10 shownCWE-94
- CVE-2006-1359NVD 0.0EG 9.0EPSS 99%NONE
- CVE-2005-1921NVD 0.0EG 9.0EPSS 100%NONE
- CVE-2005-3302EG 7.3HIGH
- CVE-2005-1876EG 4.5MEDIUM
- CVE-2003-1599EG 0.0NONE
- CVE-2006-1318EG 0.0EPSS 96%NONE
- CVE-2006-1301EG 0.0EPSS 95%NONE
- CVE-2006-1308EG 0.0EPSS 95%NONE
- CVE-2006-1309EG 0.0EPSS 95%NONE
- CVE-2006-1304EG 0.0EPSS 95%NONE
Frequently asked(5)
What is CVE-2023-24538?
When was CVE-2023-24538 disclosed?
Is CVE-2023-24538 actively exploited?
What is the CVSS score of CVE-2023-24538?
How do I remediate CVE-2023-24538?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2023-24538
Is Your Infrastructure Affected by CVE-2023-24538?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.