CVE-2023-24540
golang: html/template: improper handling of JavaScript whitespace
Overview
Description
Not all valid JavaScript whitespace characters are considered to be whitespace. Templates containing whitespace characters outside of the character set "\t\n\f\r\u0020\u2028\u2029" in JavaScript contexts that also contain actions may not be properly sanitized during execution.
Source: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-77
Affected packages · 2
Operating systems · 209 fixes
Oracle Linux 2 releases · 21 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | udica | 0.2.6-20.module+el8.9.0+90021+ce997450 |
| 8 | fuse-overlayfs | 1.12-1.module+el8.9.0+90021+ce997450 |
| 8 | go-toolset +7 | 1.19.9-1.module+el8.8.0+21059+045f0f63 |
| 8 | slirp4netns | 1.2.1-1.module+el8.9.0+90021+ce997450 |
| 8 | oci-seccomp-bpf-hook | 1.2.9-1.module+el8.9.0+90021+ce997450 |
| 8 | crun | 1.8.7-1.module+el8.9.0+90021+ce997450 |
20 more rows
Photon OS 2 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | pmd-ng | 0.1-2.ph4 |
| 4.0 | falco +1 | 0.35.0-4.0510183001.ph4 |
| 4.0 | go | 1.20.4-1.ph4 |
| 4.0 | kubernetes-dashboard | 2.7.0-1.ph4 |
| 5.0 | pmd-ng | 0.1-3.ph5 |
| 5.0 | falco | 0.32.2-6.0601037001.ph5 |
2 more rows
Red Hat 8 releases · 34 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| go-toolset-7-golang +3 | affected | — | |
| 7 | golang +2 | affected | — |
| 7 | go-toolset-1-19-golang +6 | 0:1.19.9-1.el7_9 | RHSA-2023:3323 |
| 7 | openshift-hyperkube | 0:4.10.0-202306170106.p0.g16bcd69.assembly.stream.el7 | RHSA-2023:3910 |
| 8 | osbuild-composer +3 | wont fix | — |
| 8 | containernetworking-plugins | 0:1.0.1-7.rhaos4.13.el8 | RHSA-2023:3612 |
85 more rows
SUSE Linux Enterprise 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | go1-19 +2 | 1.19.9-150000.1.31.1 | SUSE-SU-2023:2127-1 |
| 15.4 | go1-20 +2 | 1.20.4-150000.1.11.1 | SUSE-SU-2023:2105-1 |
alma 4 releases · 23 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (container-tools:4.0) | toolbox +1 | 0.0.99.4-5.module_el8.9.0+3627+db8ec155 |
| 8 (container-tools:4.0) | udica | 0.2.6-4.module_el8.9.0+3627+db8ec155 |
| 8 (container-tools:4.0) | slirp4netns | 1.1.8-3.module_el8.9.0+3627+db8ec155 |
| 8 (container-tools:4.0) | oci-seccomp-bpf-hook | 1.2.5-2.module_el8.8.0+3468+16b86c82 |
| 8 (container-tools:4.0) | crun | 1.8.3-1.module_el8.9.0+3627+db8ec155 |
| 8 (container-tools:4.0) | fuse-overlayfs | 1.9-2.module_el8.9.0+3627+db8ec155 |
42 more rows
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | go | 1.20.4-r0 |
| 3.23 | go | 1.20.4-r0 |
| 3.24 | go | 1.20.4-r0 |
| edge | go | 1.20.4-r0 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | golang +7 | 1.19.9-1.amzn2023.0.1 |
chainguard 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| kubeflow-katib | 0.19.0-r40 | |
| go-1-20 | 1.20.4-r0 |
debian 3 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | golang-1-11 | affected |
| 11 | golang-1-15 +1 | affected |
| 12 | golang-1-19 | affected |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| golang-1-19 | affected |
openSUSE 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | go1-19 +3 | 1.19.9-1.1 | openSUSE-SU-2024:12907-1 |
| Tumbleweed | go1-20 +3 | 1.20.4-1.1 | openSUSE-SU-2024:12908-1 |
rocky 2 releases · 18 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (container-tools:4.0) | udica | 0.2.6-4.module+el8.9.0+1445+07728297 |
| 8 (container-tools:4.0) | slirp4netns | 1.1.8-3.module+el8.9.0+1445+07728297 |
| 8 (container-tools:4.0) | oci-seccomp-bpf-hook | 1.2.5-2.module+el8.9.0+1445+07728297 |
| 8 (container-tools:4.0) | crun | 1.8.3-1.module+el8.9.0+1445+07728297 |
| 8 (container-tools:4.0) | fuse-overlayfs | 1.9-2.module+el8.9.0+1445+07728297 |
| 8 (container-tools:4.0) | containernetworking-plugins | 1:1.1.1-5.module+el8.9.0+1445+07728297 |
12 more rows
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-golang-1-19 | affected |
wolfi 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| kubeflow-katib | 0.19.0-r40 | |
| go-1-20 | 1.20.4-r0 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:6474
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:6939
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-24540
- bugzilla.redhat.com https://bugzilla.redhat.com/2174485
- bugzilla.redhat.com https://bugzilla.redhat.com/2178358
- bugzilla.redhat.com https://bugzilla.redhat.com/2178488
- bugzilla.redhat.com https://bugzilla.redhat.com/2178492
- bugzilla.redhat.com https://bugzilla.redhat.com/2184481
- bugzilla.redhat.com https://bugzilla.redhat.com/2184482
- bugzilla.redhat.com https://bugzilla.redhat.com/2184483
Show all 66 references
- bugzilla.redhat.com https://bugzilla.redhat.com/2184484
- bugzilla.redhat.com https://bugzilla.redhat.com/2196026
- bugzilla.redhat.com https://bugzilla.redhat.com/2196027
- bugzilla.redhat.com https://bugzilla.redhat.com/2196029
- bugzilla.redhat.com https://bugzilla.redhat.com/2222167
- bugzilla.redhat.com https://bugzilla.redhat.com/2228689
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2163037
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2174485
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2175721
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2178358
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2178488
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2178492
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2182883
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2182884
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2184481
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2184482
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2184483
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2184484
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2196026
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2196027
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2196029
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2222167
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2228689
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-3064
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-41723
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-41724
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-41725
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-24534
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-24536
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-24537
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-24538
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-24539
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-24540
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-25173
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-25809
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-27561
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-28642
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-29400
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-29406
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-3978
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2023-6474.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2023:6939
- github.com https://github.com/golang/go/commit/4a28cad66655ee01c6e944271e23c33cab021765 (go1.20.4)
- github.com https://github.com/golang/go/commit/ce7bd33345416e6d8cac901792060591cafc2797 (go1.19.9)
- github.com https://github.com/golang/go/issues/59721
- go.dev https://go.dev/cl/491616
- go.dev https://go.dev/issue/59721
- groups.google.com https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU
- linux.oracle.com https://linux.oracle.com/cve/CVE-2023-24540.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2023-6939.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-24540
- pkg.go.dev https://pkg.go.dev/vuln/GO-2023-1752
- security.netapp.com https://security.netapp.com/advisory/ntap-20241115-0008/
- ubuntu.com https://ubuntu.com/security/notices/USN-6140-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-24540
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.