ADVISORIES

Vulnerability

CVE-2023-24538

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.

92 advisories report this vulnerability, across 15 ecosystems.

Advisories

  • ALAS2-2023-2163

    Amazon Linux 2 2017.12 - ALAS2-2023-2163: important priority package update for golang

    Important CVE-2022-41724CVE-2022-41725CVE-2023-24532CVE-2023-24536 Amazon Linux Updated 25 July 2023
  • ALAS2-2023-2303

    Amazon Linux 2 2017.12 - ALAS2-2023-2303: important priority package update for amazon-ssm-agent

    Important CVE-2021-43565CVE-2022-41723CVE-2023-24538CVE-2023-24540 Amazon Linux Updated 30 October 2023
  • ALAS2023-2023-175

    Amazon Linux 2023 - ALAS2023-2023-175: Important priority package update for golang

    Important CVE-2022-23772CVE-2022-23773CVE-2022-23806CVE-2022-2880 Amazon Linux Updated 3 May 2023
  • ALAS2023-2023-388

    Amazon Linux 2023 - ALAS2023-2023-388: Important priority package update for amazon-ssm-agent

    Important CVE-2021-43565CVE-2022-27191CVE-2022-27664CVE-2022-41723 Amazon Linux Updated 10 September 2025
  • ALPINE-CVE-2023-24538

    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…

    CVE-2023-24538 Alpine Updated 17 November 2026
  • ALPINE-EDGE-CVE-2023-24538
    CVE-2023-24538 Alpine Updated 18 November 2026
  • ALSA-2023:6346

    Moderate: toolbox security and bug fix update

    CVE-2022-3064CVE-2022-41723CVE-2022-41725CVE-2023-24534 AlmaLinux Updated 29 October 2026
  • ALSA-2023:6363

    Moderate: skopeo security update

    CVE-2022-41723CVE-2022-41724CVE-2022-41725CVE-2023-24534 AlmaLinux Updated 29 October 2026
  • ALSA-2023:6402

    Moderate: containernetworking-plugins security and bug fix update

    CVE-2022-41723CVE-2022-41724CVE-2022-41725CVE-2023-24534 AlmaLinux Updated 29 October 2026
  • ALSA-2023:6473

    Moderate: buildah security update

    CVE-2022-41723CVE-2022-41724CVE-2022-41725CVE-2023-24534 AlmaLinux Updated 29 October 2026
  • ALSA-2023:6474

    Moderate: podman security, bug fix, and enhancement update

    CVE-2022-41723CVE-2022-41724CVE-2022-41725CVE-2023-24534 AlmaLinux Updated 29 October 2026
  • ALSA-2023:6938

    Moderate: container-tools:4.0 security and bug fix update

    CVE-2019-19921CVE-2022-3064CVE-2022-41723CVE-2022-41724 AlmaLinux Updated 29 October 2026
  • ALSA-2023:6939

    Moderate: container-tools:rhel8 security and bug fix update

    CVE-2019-19921CVE-2022-3064CVE-2022-41723CVE-2022-41724 AlmaLinux Updated 29 October 2026
  • AZL-25992

    CVE-2023-24538 affecting package golang for versions less than 1.19.8-1

    CVE-2023-24538 Azure Linux Updated 21 April 2026
  • AZL-25993

    CVE-2023-24538 affecting package msft-golang for versions less than 1.20.11-1

    CVE-2023-24538 Azure Linux Updated 21 April 2026
  • AZL-34751

    CVE-2023-24538 affecting package golang for versions less than 1.19.8-1

    CVE-2023-24538 Azure Linux Updated 21 April 2026
  • AZL-37296

    CVE-2023-24538 affecting package golang for versions less than 1.21.6-1

    CVE-2023-24538 Azure Linux Updated 21 April 2026
  • AZL-37411

    CVE-2023-24538 affecting package golang for versions less than 1.21.6-1

    CVE-2023-24538 Azure Linux Updated 21 April 2026
  • AZL-78990

    CVE-2023-24538 affecting package golang 1.25.7-1

    CVE-2023-24538 Azure Linux Updated 21 April 2026
  • AZL-98649

    CVE-2023-24538 affecting package golang 1.27.1-1

    CVE-2023-24538 Azure Linux Updated 16 September 2026
  • CGA-46px-45cg-f63w
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-4fjh-rgx9-ffjr
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-5mvg-j92g-23qr
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-5wf4-v7cm-rf7w
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-66jr-j47f-fr7r
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-66v8-5vjm-97p7
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-67vp-65qg-pfx5
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-6fpj-hm9x-3g42
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-7xv7-rf65-6jx5
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-86hc-j92v-j839
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-8vx5-7mfv-p4vr
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-98fq-vh9x-q2m8
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-99wg-j6xv-5whm
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-9gw4-g4ff-87cf
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-9rxj-9q26-7wj7
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-f3vr-hv7c-23j8
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-g33p-ghw3-rx2j
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-hwgv-v2g9-5x3q
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-j4xh-89c4-8rg4
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-mjf4-gr37-9qjx
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-pxgr-3x6w-wj9p
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • CGA-r5p8-w26x-f6cv
    CVE-2023-24538 ChainguardWolfi Updated 5 November 2026
  • DEBIAN-CVE-2023-24538

    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…

    CVE-2023-24538 Debian Updated 26 October 2026
  • ELSA-2023-6363

    ELSA-2023-6363: skopeo security update (MODERATE)

    Moderate CVE-2022-41723CVE-2022-41724CVE-2022-41725CVE-2023-24534 Oracle Linux Updated 11 November 2023
  • ELSA-2023-6402

    ELSA-2023-6402: containernetworking-plugins security and bug fix update (MODERATE)

    Moderate CVE-2022-41723CVE-2022-41724CVE-2022-41725CVE-2023-24534 Oracle Linux Updated 11 November 2023
  • ELSA-2023-6473

    ELSA-2023-6473: buildah security update (MODERATE)

    Moderate CVE-2022-41723CVE-2022-41724CVE-2022-41725CVE-2023-24534 Oracle Linux Updated 11 November 2023
  • ELSA-2023-6474

    ELSA-2023-6474: podman security, bug fix, and enhancement update (MODERATE)

    Moderate CVE-2022-41723CVE-2022-41724CVE-2022-41725CVE-2023-24534 Oracle Linux Updated 11 November 2023
  • ELSA-2023-6938

    ELSA-2023-6938: container-tools:4.0 security and bug fix update (MODERATE)

    Moderate CVE-2022-3064CVE-2022-41723CVE-2022-41724CVE-2022-41725 Oracle Linux Updated 18 November 2023
  • ELSA-2023-6939

    ELSA-2023-6939: container-tools:ol8 security and bug fix update (MODERATE)

    Moderate CVE-2022-3064CVE-2022-41723CVE-2022-41724CVE-2022-41725 Oracle Linux Updated 18 November 2023
  • GO-2023-1703

    Backticks not treated as string delimiters in html/template

    CVE-2023-24538 Go Updated 4 February 2026
  • OESA-2023-1237

    golang security update

    High CVE-2023-24534CVE-2023-24536CVE-2023-24537CVE-2023-24538 openEuler Updated 18 August 2026
  • OESA-2024-1001

    ignition security update

    Critical CVE-2023-24534CVE-2023-24536CVE-2023-24537CVE-2023-24538 openEuler Updated 18 August 2026
  • OESA-2024-1074

    containernetworking-plugins security update

    Critical CVE-2023-24534CVE-2023-24536CVE-2023-24537CVE-2023-24538 openEuler Updated 18 August 2026
  • OESA-2024-2551

    etcd security update

    Critical CVE-2023-24538 openEuler Updated 18 August 2026
  • OESA-2024-2552

    etcd security update

    Critical CVE-2023-24538 openEuler Updated 18 August 2026
  • OESA-2024-2582

    podman security update

    Critical CVE-2023-24538 openEuler Updated 18 August 2026
  • OESA-2025-1059

    buildah security update

    Critical CVE-2021-34558CVE-2022-1962CVE-2022-2990CVE-2022-41715 openEuler Updated 18 August 2026
  • RHSA-2023:3318

    Red Hat Security Advisory: go-toolset and golang security update

    CVE-2023-24532CVE-2023-24534CVE-2023-24536CVE-2023-24537 Red Hat Updated 24 November 2026
  • RHSA-2023:3319

    Red Hat Security Advisory: go-toolset:rhel8 security update

    CVE-2023-24532CVE-2023-24534CVE-2023-24536CVE-2023-24537 Red Hat Updated 24 November 2026
  • RHSA-2023:3323

    Red Hat Security Advisory: go-toolset-1.19 and go-toolset-1.19-golang security update

    CVE-2023-24537CVE-2023-24538CVE-2023-24539CVE-2023-24540 Red Hat Updated 24 November 2026
  • RHSA-2023:3366

    Red Hat Security Advisory: OpenShift Container Platform 4.13.2 packages and security update

    CVE-2022-27191CVE-2022-41722CVE-2022-41724CVE-2023-24534 Red Hat Updated 23 November 2026
  • RHSA-2023:3445

    Red Hat Security Advisory: Red Hat OpenStack Platform 16.2 (etcd) security update

    CVE-2021-28235CVE-2022-41723CVE-2022-41724CVE-2022-41725 Red Hat Updated 24 November 2026
  • RHSA-2023:3450

    Red Hat Security Advisory: OpenShift Serverless Client kn 1.29.0 release

    CVE-2022-41723CVE-2022-41724CVE-2022-41725CVE-2023-24534 Red Hat Updated 23 November 2026
  • RHSA-2023:3536

    Red Hat Security Advisory: OpenShift Container Platform 4.13.3 packages and security update

    CVE-2023-24534CVE-2023-24536CVE-2023-24537CVE-2023-24538 Red Hat Updated 24 November 2026
  • RHSA-2023:3540

    Red Hat Security Advisory: OpenShift Container Platform 4.13.3 bug fix and security update

    CVE-2023-24534CVE-2023-24536CVE-2023-24537CVE-2023-24538 Red Hat Updated 24 November 2026
  • RHSA-2023:3612

    Red Hat Security Advisory: OpenShift Container Platform 4.13.4 packages and security update

    CVE-2022-41717CVE-2022-41723CVE-2022-41724CVE-2022-41725 Red Hat Updated 13 November 2026
  • RHSA-2023:4003

    Red Hat Security Advisory: Red Hat Service Interconnect 1.4 Release security update

    CVE-2022-28327CVE-2022-2879CVE-2022-2880CVE-2022-41715 Red Hat Updated 24 November 2026
  • RHSA-2023:4093

    Red Hat Security Advisory: OpenShift Container Platform 4.13.5 security update

    CVE-2023-1260CVE-2023-24534CVE-2023-24536CVE-2023-24537 Red Hat Updated 24 November 2026
  • RHSA-2023:4470

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.3 Product Security and Bug Fix Update

    CVE-2022-41717CVE-2022-41724CVE-2022-41725CVE-2023-24534 Red Hat Updated 24 November 2026
  • RHSA-2023:5964

    Red Hat Security Advisory: Red Hat OpenStack Platform 16.2.5 (collectd-libpod-stats) security update

    Known exploited CVE-2022-41724CVE-2022-41725CVE-2023-24534CVE-2023-24536 Red Hat Updated 24 November 2026
  • RHSA-2023:6346

    Red Hat Security Advisory: toolbox security and bug fix update

    CVE-2022-3064CVE-2022-41723CVE-2022-41725CVE-2023-24534 Red Hat Updated 24 November 2026
  • RHSA-2023:6363

    Red Hat Security Advisory: skopeo security update

    CVE-2022-41723CVE-2022-41724CVE-2022-41725CVE-2023-24534 Red Hat Updated 24 November 2026
  • RHSA-2023:6402

    Red Hat Security Advisory: containernetworking-plugins security and bug fix update

    CVE-2022-41723CVE-2022-41724CVE-2022-41725CVE-2023-24534 Red Hat Updated 24 November 2026
  • RHSA-2023:6473

    Red Hat Security Advisory: buildah security update

    CVE-2022-41723CVE-2022-41724CVE-2022-41725CVE-2023-24534 Red Hat Updated 24 November 2026
  • RHSA-2023:6474

    Red Hat Security Advisory: podman security, bug fix, and enhancement update

    CVE-2022-41723CVE-2022-41724CVE-2022-41725CVE-2023-24534 Red Hat Updated 24 November 2026
  • RHSA-2023:6938

    Red Hat Security Advisory: container-tools:4.0 security and bug fix update

    CVE-2022-3064CVE-2022-41723CVE-2022-41724CVE-2022-41725 Red Hat Updated 24 November 2026
  • RHSA-2023:6939

    Red Hat Security Advisory: container-tools:rhel8 security and bug fix update

    CVE-2022-3064CVE-2022-41723CVE-2022-41724CVE-2022-41725 Red Hat Updated 24 November 2026
  • RHVEX-CVE-2023-24538

    golang: html/template: backticks not treated as string delimiters

    Moderate CVE-2023-24538 Red Hat Updated 13 November 2026
  • RLSA-2023:6938

    Moderate: container-tools:4.0 security and bug fix update

    CVE-2022-3064CVE-2022-41723CVE-2022-41724CVE-2022-41725 Rocky Linux Updated 28 November 2025
  • RLSA-2023:6939

    Moderate: container-tools:rhel8 security and bug fix update

    CVE-2022-3064CVE-2022-41723CVE-2022-41724CVE-2022-41725 Rocky Linux Updated 28 November 2025
  • SUSE-SU-2023:1791-1

    Security update for go1.20

    CVE-2023-24534CVE-2023-24536CVE-2023-24537CVE-2023-24538 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2023:1792-1

    Security update for go1.19

    CVE-2023-24534CVE-2023-24536CVE-2023-24537CVE-2023-24538 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2023:2105-1

    Security update for go1.20

    CVE-2023-24534CVE-2023-24536CVE-2023-24537CVE-2023-24538 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2023:2105-2

    Security update for go1.20

    CVE-2023-24534CVE-2023-24536CVE-2023-24537CVE-2023-24538 SUSE Updated 4 February 2026
  • SUSE-SU-2023:2127-1

    Security update for go1.19

    CVE-2023-24534CVE-2023-24536CVE-2023-24537CVE-2023-24538 SUSEopenSUSE Updated 4 February 2026
  • SUSEVEX-CVE-2023-24538

    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…

    Moderate CVE-2023-24538 SUSE Updated 5 November 2026
  • UBUNTU-CVE-2023-24538

    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…

    CVE-2023-24538 Ubuntu Updated 20 May 2026
  • USN-6038-1

    golang-1.18 vulnerabilities

    CVE-2022-1705CVE-2022-1962CVE-2022-27664CVE-2022-28131 Ubuntu Updated 27 April 2026
  • USN-6038-2

    golang-1.13, golang-1.16 vulnerabilities

    CVE-2022-1705CVE-2022-27664CVE-2022-28131CVE-2022-2879 Ubuntu Updated 25 June 2026
  • USN-7061-1

    golang-1.17 vulnerabilities

    CVE-2023-24531CVE-2023-24538CVE-2023-29402CVE-2023-29403 Ubuntu Updated 27 April 2026
  • openSUSE-SU-2024:12841-1

    go1.20-1.20.3-1.1 on GA media

    CVE-2023-24534CVE-2023-24536CVE-2023-24537CVE-2023-24538 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:12845-1

    go1.19-1.19.8-1.1 on GA media

    CVE-2023-24534CVE-2023-24536CVE-2023-24537CVE-2023-24538 openSUSE Updated 4 February 2026

References