cve.bz

CVE-2023-29400 golang go: Injection

7.3 highEPSS 1.0%Fix available

High (7.3) in golang go. EPSS 1.0% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.19.9, 1.20.4.

On this page
Templates containing actions in unquoted HTML attributes (e.g. "attr={{.}}") executed with empty input can result in output with unexpected results when parsed due to HTML normalization rules. This may allow injection of arbitrary attributes into tags.

Severity

CVSS 3.1

7.3 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 65th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-01-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection)
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-29400 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-29400?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-29400?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-29400 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go standard library html/templatebefore 1.19.9
Go standard library html/templatefrom 1.20.0-0 before 1.20.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2023-1753Gostdlib<1.19.9
>=1.20.0-0 <1.20.4
1.19.9, 1.20.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-1.19no fix listedDEBIAN-CVE-2023-29400
Red Hatansible_automation_platform:2.3::el8openshift-clients0:4.12.0-202307200611.p0.g49844f7.assembly.stream.el8RHSA-2023:4470
Red Hatdevtools:2023::el7go-toolset-1.19-golang, go-toolset-1.19-golang-bin, go-toolset-1.19-golang-src and 4 more0:1.19.9-1.el7_9RHSA-2023:3323
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more1:1.24.6-7.module+el8.9.0+19784+443be299RHSA-2023:6938
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more1:1.31.3-1.module+el8.9.0+19761+326da906RHSA-2023:6939
Red Hatenterprise_linux:8::appstreamcockpit-podman0:46-1.module+el8.9.0+19098+6e7a5e3fRHSA-2023:6938
Red Hatenterprise_linux:8::appstreamcockpit-podman0:75-1.module+el8.9.0+19761+326da906RHSA-2023:6939
Red Hatenterprise_linux:8::appstreamconmon, conmon-debuginfo, conmon-debugsource2:2.1.4-2.module+el8.9.0+19098+6e7a5e3fRHSA-2023:6938
Red Hatenterprise_linux:8::appstreamconmon, conmon-debuginfo, conmon-debugsource3:2.1.8-1.module+el8.9.0+19761+326da906RHSA-2023:6939
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.205.0-3.module+el8.9.0+19098+6e7a5e3fRHSA-2023:6938
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.221.0-1.module+el8.9.0+19685+019f3589RHSA-2023:6939
Red Hatenterprise_linux:8::appstreamcontainernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource1:1.1.1-5.module+el8.9.0+19784+443be299RHSA-2023:6938
Red Hatenterprise_linux:8::appstreamcontainernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource1:1.3.0-4.module+el8.9.0+19649+5879504aRHSA-2023:6939
61 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 morego1.191.19.9-150000.1.31.1SUSE-SU-2023:2127-1
SUSELinux Enterprise Module for Development Tools 15 SP4go1.201.20.4-150000.1.11.1SUSE-SU-2023:2105-1
SUSELinux Enterprise Real Time 15 SP3go1.201.20.4-150000.1.11.1SUSE-SU-2023:2105-2
openSUSELeap 15.4go1.191.19.9-150000.1.31.1SUSE-SU-2023:2127-1
openSUSELeap 15.4go1.201.20.4-150000.1.11.1SUSE-SU-2023:2105-1
openSUSETumbleweedgo1.191.19.9-1.1openSUSE-SU-2024:12907-1
openSUSETumbleweedgo1.201.20.4-1.1openSUSE-SU-2024:12908-1
AlmaLinux8aardvark-dns2:1.7.0-1.module_el8.9.0+3657+d86e192fALSA-2023:6939
AlmaLinux8buildah, buildah-tests1:1.24.6-7.module_el8.9.0+3627+db8ec155ALSA-2023:6938
AlmaLinux8buildah, buildah-tests1:1.31.3-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux8cockpit-podman46-1.module_el8.7.0+3344+5bcd850fALSA-2023:6938
AlmaLinux8cockpit-podman75-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux8conmon2:2.1.4-2.module_el8.9.0+3627+db8ec155ALSA-2023:6938
AlmaLinux8conmon3:2.1.8-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux8container-selinux2:2.205.0-3.module_el8.9.0+3627+db8ec155ALSA-2023:6938
AlmaLinux8container-selinux2:2.221.0-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux8containernetworking-plugins1:1.1.1-5.module_el8.9.0+3627+db8ec155ALSA-2023:6938
AlmaLinux8containernetworking-plugins1:1.3.0-4.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux8containers-common2:1-38.module_el8.9.0+3627+db8ec155ALSA-2023:6938
34 more for AlmaLinux in the JSON.
Rocky Linux8buildah1:1.24.6-7.module+el8.9.0+1445+07728297RLSA-2023:6938
Rocky Linux8cockpit-podman0:46-1.module+el8.9.0+1445+07728297RLSA-2023:6938
Rocky Linux8conmon2:2.1.4-2.module+el8.9.0+1445+07728297RLSA-2023:6938
Rocky Linux8container-selinux2:2.205.0-3.module+el8.9.0+1445+07728297RLSA-2023:6938
Rocky Linux8containernetworking-plugins1:1.1.1-5.module+el8.9.0+1445+07728297RLSA-2023:6938
Rocky Linux8containers-common2:1-38.module+el8.9.0+1445+07728297RLSA-2023:6938
Rocky Linux8criu0:3.15-3.module+el8.9.0+1445+07728297RLSA-2023:6938
Rocky Linux8crun0:1.8.3-1.module+el8.9.0+1445+07728297RLSA-2023:6938
Rocky Linux8fuse-overlayfs0:1.9-2.module+el8.9.0+1445+07728297RLSA-2023:6938
Rocky Linux8libslirp0:4.4.0-1.module+el8.9.0+1445+07728297RLSA-2023:6938 RLSA-2023:6939
Rocky Linux8oci-seccomp-bpf-hook0:1.2.5-2.module+el8.9.0+1445+07728297RLSA-2023:6938
Rocky Linux8podman2:4.0.2-24.module+el8.9.0+1445+07728297RLSA-2023:6938
4 more for Rocky Linux in the JSON.
Alpinev3.17go1.19.9-r0ALPINE-CVE-2023-29400
Alpinev3.18, v3.19, v3.20 and 4 morego1.20.4-r0ALPINE-CVE-2023-29400
Azure Linux2golang1.20.7-1AZL-26615
Azure Linux2golang1.21.6-1AZL-37470 AZL-37500
Azure Linux2msft-golang1.20.7-1AZL-26627
Azure Linux3golangno fix listedAZL-79022 AZL-98778
Azure Linux3golang1.20.7-1AZL-34749

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

For Red Hat Enterprise Linux,

* Conmon uses go in unit testing, but not functionally in the package. Go is used only in test files, not in the actual code. Thus, conmon is not affected.

* The Go templates in Grafana do not contain any javascript. Thus, it is not affected.

* Ignition does not make use of html/template.

In OpenShift Container Platform and Red Hat Advanced Cluster Management for Kubernetes (RHACM), the affected containers are behind OAuth authentication. This restricts access to the vulnerable golang html/templates to authenticated users, reducing the impact to low.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
CERT-MANAGER-1.10-RHEL-9cert-manager-operator-bundle-container-v1.10.3-4Fixed 2023-08-08RHSA-2023:4335
CERT-MANAGER-1.10-RHEL-9cert-manager-operator-container-v1.10.3-2Fixed 2023-08-08RHSA-2023:4335
CERT-MANAGER-1.10-RHEL-9jetstack-cert-manager-container-v1.10.2-18Fixed 2023-08-08RHSA-2023:4335
Migration Toolkit for Virtualization 2.4migration-toolkit-virtualization/mtv-controller-rhel9:2.4.3-5Fixed 2023-10-25RHBA-2023:6109
MTA-6.2-RHEL-9mta/mta-hub-rhel9:6.2.0-16Fixed 2023-08-14RHSA-2023:4627
NETWORK-OBSERVABILITY-1.3.0-RHEL-9network-observability/network-observability-rhel9-operator:v1.3.0-53Fixed 2023-06-28RHSA-2023:3905
OADP-1.1-RHEL-8oadp/oadp-velero-rhel8:1.1.5-3Fixed 2023-06-29RHSA-2023:3918
OSSO-1.1-RHEL-8openshift-secondary-scheduler-operator/secondary-scheduler-operator-rhel8:v1.1-30Fixed 2023-08-23RHSA-2023:4657
Red Hat Ansible Automation Platform 2.3 for RHEL 8openshift-clients-0:4.12.0-202307200611.p0.g49844f7.assembly.stream.el8Fixed 2023-08-03RHSA-2023:4470
Red Hat Developer Toolsgo-toolset-1.19-golang-0:1.19.9-1.el7_9Fixed 2023-05-25RHSA-2023:3323
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-rhel8Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-loki-rhel9Not affected
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-rhel8-operatorUnder investigation
OpenShift Developer Tools and ServiceshelmAffected
OpenShift Developer Tools and ServicesodoWill not fix
OpenShift Pipelinesopenshift-pipelines-clientWill not fix
OpenShift Service Mesh 2openshift-golang-builder-containerNot affected
Red Hat 3scale API Management Platform 23scale-operator-containerAffected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/subctl-rhel9Affected
Red Hat AMQ Broker 7amq-broker-rhel8-operator-containerAffected
332 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-29400.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37).

References

Check your stackJSON