
CVE catalog
CVE-2023-39318
golang-1.19: CVE-2023-39318
- Severity
- Medium · CVSS 6.8
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.93% · Oct 25, 2026
The html/template package does not properly handle HTML-like "" comment tokens, nor hashbang "#!" comment tokens, in <script> contexts. This may cause the template parser to improperly interpret the contents of <script> contexts, causing actions to be improperly escaped. This may be leveraged to perform an XSS attack.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | golang-1.19 | bookworm | 1.19.8-2 | vulnerable |
| Ubuntu | golang-1.10 | 14.04 | 1.10.4-2ubuntu1~14.04.1 | vulnerable |
| Ubuntu | golang-1.18 | pro | 1.18.1-1ubuntu1~18.04.3 | vulnerable |
| Ubuntu | golang-1.18 | pro | 1.18.1-1ubuntu1~18.04.4 | vulnerable |
| Ubuntu | golang-1.18 | pro | 1.18.1-1ubuntu1~18.04.4+esm1 | fixed |
| Ubuntu | golang-1.10 | 16.04 | 1.10.4-2ubuntu1~16.04.1 | vulnerable |
| Ubuntu | golang-1.10 | 16.04 | 1.10.4-2ubuntu1~16.04.2 | vulnerable |
| Ubuntu | golang-1.6 | 16.04 | 1.6-0ubuntu1 | vulnerable |
| Ubuntu | golang-1.6 | 16.04 | 1.6-0ubuntu2 | vulnerable |
| Ubuntu | golang-1.6 | 16.04 | 1.6-0ubuntu3 | vulnerable |
| Ubuntu | golang-1.6 | 16.04 | 1.6-0ubuntu4 | vulnerable |
| Ubuntu | golang-1.6 | 16.04 | 1.6-0ubuntu5 | vulnerable |
| Ubuntu | golang-1.6 | 16.04 | 1.6.1-0ubuntu1 | vulnerable |
| Ubuntu | golang-1.6 | 16.04 | 1.6.2-0ubuntu5~16.04 | vulnerable |
| Ubuntu | golang-1.6 | 16.04 | 1.6.2-0ubuntu5~16.04.2 | vulnerable |
| Ubuntu | golang-1.6 | 16.04 | 1.6.2-0ubuntu5~16.04.3 | vulnerable |
| Ubuntu | golang-1.6 | 16.04 | 1.6.2-0ubuntu5~16.04.4 | vulnerable |
| Ubuntu | golang-1.13 | pro | 1.13.8-1ubuntu2 | vulnerable |
| Ubuntu | golang-1.13 | pro | 1.13.8-1ubuntu2.22.04.1 | vulnerable |
| Ubuntu | golang-1.13 | pro | 1.13.8-1ubuntu2.22.04.1+esm1 | vulnerable |
| Ubuntu | golang-1.13 | pro | 1.13.8-1ubuntu2.22.04.2 | vulnerable |
| Ubuntu | golang-1.10 | 18.04 | 1.10~rc1-1 | vulnerable |
| Ubuntu | golang-1.10 | 18.04 | 1.10~rc1-1ubuntu1 | vulnerable |
| Ubuntu | golang-1.10 | 18.04 | 1.10~rc1-2ubuntu1 | vulnerable |
| Ubuntu | golang-1.10 | 18.04 | 1.10~rc2-1ubuntu1 | vulnerable |
| Ubuntu | golang-1.10 | 18.04 | 1.10-1ubuntu1 | vulnerable |
| Ubuntu | golang-1.10 | 18.04 | 1.10.1-1ubuntu2 | vulnerable |
| Ubuntu | golang-1.10 | 18.04 | 1.10.4-2ubuntu1~18.04.1 | vulnerable |
| Ubuntu | golang-1.10 | 18.04 | 1.10.4-2ubuntu1~18.04.2 | vulnerable |
| Ubuntu | golang-1.16 | pro | 1.16.2-0ubuntu1~20.04 | vulnerable |
| Ubuntu | golang-1.16 | pro | 1.16.2-0ubuntu1~20.04.1 | vulnerable |
| Ubuntu | golang-1.16 | pro | 1.16.2-0ubuntu1~20.04.1+esm1 | vulnerable |
| Ubuntu | golang-1.8 | 18.04 | 1.8.3-2ubuntu1 | vulnerable |
| Ubuntu | golang-1.8 | 18.04 | 1.8.3-2ubuntu1.18.04.1 | vulnerable |
| Ubuntu | golang-1.9 | 18.04 | 1.9.1-2ubuntu1 | vulnerable |
| Ubuntu | golang-1.9 | 18.04 | 1.9.2-1ubuntu1 | vulnerable |
| Ubuntu | golang-1.9 | 18.04 | 1.9.2-3ubuntu1 | vulnerable |
| Ubuntu | golang-1.9 | 18.04 | 1.9.3-1ubuntu1 | vulnerable |
| Ubuntu | golang-1.9 | 18.04 | 1.9.4-1ubuntu1 | vulnerable |
| Ubuntu | golang-1.18 | 20.04 | 1.18.1-1ubuntu1~20.04.1 | vulnerable |
| Ubuntu | golang-1.18 | 20.04 | 1.18.1-1ubuntu1~20.04.2 | vulnerable |
| Ubuntu | golang-1.18 | 20.04 | 1.18.1-1ubuntu1~20.04.3 | fixed |
| Ubuntu | golang-1.20 | 20.04 | 1.20.3-1ubuntu0.1~20.04 | vulnerable |
| Ubuntu | golang-1.20 | 20.04 | 1.20.3-1ubuntu0.1~20.04.1 | fixed |
| Ubuntu | golang-1.13 | 20.04 | 1.13.1-1ubuntu1 | vulnerable |
| Ubuntu | golang-1.13 | 20.04 | 1.13.3-1ubuntu1 | vulnerable |
| Ubuntu | golang-1.13 | 20.04 | 1.13.4-1ubuntu1 | vulnerable |
| Ubuntu | golang-1.13 | 20.04 | 1.13.5-1ubuntu1 | vulnerable |
| Ubuntu | golang-1.13 | 20.04 | 1.13.6-1ubuntu1 | vulnerable |
| Ubuntu | golang-1.13 | 20.04 | 1.13.6-2ubuntu1 | vulnerable |
| Ubuntu | golang-1.13 | 20.04 | 1.13.7-1ubuntu1 | vulnerable |
| Ubuntu | golang-1.13 | 20.04 | 1.13.8-1ubuntu1 | vulnerable |
| Ubuntu | golang-1.13 | 20.04 | 1.13.8-1ubuntu1.1 | vulnerable |
| Ubuntu | golang-1.13 | 20.04 | 1.13.8-1ubuntu1.2 | vulnerable |
| Ubuntu | golang-1.14 | 20.04 | 1.14~beta1-1 | vulnerable |
| Ubuntu | golang-1.14 | 20.04 | 1.14~beta1-2 | vulnerable |
| Ubuntu | golang-1.14 | 20.04 | 1.14~rc1-1 | vulnerable |
| Ubuntu | golang-1.14 | 20.04 | 1.14-1 | vulnerable |
| Ubuntu | golang-1.14 | 20.04 | 1.14.1-1 | vulnerable |
| Ubuntu | golang-1.14 | 20.04 | 1.14.2-1 | vulnerable |
| Ubuntu | golang-1.14 | 20.04 | 1.14.2-1ubuntu1 | vulnerable |
| Ubuntu | golang-1.14 | 20.04 | 1.14.3-2ubuntu2~20.04.1 | vulnerable |
| Ubuntu | golang-1.14 | 20.04 | 1.14.3-2ubuntu2~20.04.2 | vulnerable |
| Ubuntu | golang-1.17 | 22.04 | 1.17-1ubuntu2 | vulnerable |
| Ubuntu | golang-1.17 | 22.04 | 1.17.3-1ubuntu1 | vulnerable |
| Ubuntu | golang-1.17 | 22.04 | 1.17.3-1ubuntu2 | vulnerable |
| Ubuntu | golang-1.17 | 22.04 | 1.17.13-3ubuntu1 | vulnerable |
| Ubuntu | golang-1.17 | 22.04 | 1.17.13-3ubuntu1.2 | fixed |
| Ubuntu | golang-1.18 | 22.04 | 1.18~beta1-0ubuntu1 | vulnerable |
| Ubuntu | golang-1.18 | 22.04 | 1.18~beta2-1ubuntu1 | vulnerable |
| Ubuntu | golang-1.18 | 22.04 | 1.18~beta2-1ubuntu2 | vulnerable |
| Ubuntu | golang-1.18 | 22.04 | 1.18~rc1-1ubuntu1 | vulnerable |
| Ubuntu | golang-1.18 | 22.04 | 1.18-1ubuntu1 | vulnerable |
| Ubuntu | golang-1.18 | 22.04 | 1.18.1-1ubuntu1 | vulnerable |
| Ubuntu | golang-1.18 | 22.04 | 1.18.1-1ubuntu1.1 | vulnerable |
| Ubuntu | golang-1.18 | 22.04 | 1.18.1-1ubuntu1.2 | fixed |
| Ubuntu | golang-1.20 | 22.04 | 1.20.3-1ubuntu0.1~22.04 | vulnerable |
| Ubuntu | golang-1.20 | 22.04 | 1.20.3-1ubuntu0.1~22.04.1 | fixed |
| Ubuntu | golang-1.20 | 20.04 | 1.20.3-1ubuntu0.1~20.04 | vulnerable |
| Ubuntu | golang-1.20 | 20.04 | 1.20.3-1ubuntu0.1~20.04.1 | fixed |
| Ubuntu | golang-1.21 | 20.04 | 1.21.1-1~ubuntu20.04.1 | vulnerable |
| Ubuntu | golang-1.21 | 20.04 | 1.21.1-1~ubuntu20.04.2 | fixed |
| Ubuntu | golang-1.20 | 22.04 | 1.20.3-1ubuntu0.1~22.04 | vulnerable |
| Ubuntu | golang-1.20 | 22.04 | 1.20.3-1ubuntu0.1~22.04.1 | fixed |
| Ubuntu | golang-1.21 | 22.04 | 1.21.1-1~ubuntu22.04.1 | vulnerable |
| Ubuntu | golang-1.21 | 22.04 | 1.21.1-1~ubuntu22.04.2 | fixed |
| Suse | go1.21-openssl | linux enterprise module for development tools 15 sp4 | 1.21.4.1-150000.1.5.1 | fixed |
| Suse | go1.21-openssl | linux enterprise module for development tools 15 sp5 | 1.21.4.1-150000.1.5.1 | fixed |
| Opensuse | go1.21-openssl | leap 15.4 | 1.21.4.1-150000.1.5.1 | fixed |
| Opensuse | go1.21-openssl | leap 15.5 | 1.21.4.1-150000.1.5.1 | fixed |
| Opensuse | go1.21 | tumbleweed | 1.21.1-1.1 | fixed |
| Suse | go | package hub 12 | 1.21-41.1 | fixed |
| Suse | go1.21 | package hub 12 | 1.21.3-2.1 | fixed |
| Suse | go1.20 | linux enterprise module for development tools 15 sp4 | 1.20.8-150000.1.23.1 | fixed |
| Suse | go1.20 | linux enterprise module for development tools 15 sp5 | 1.20.8-150000.1.23.1 | fixed |
| Opensuse | go1.20 | leap 15.4 | 1.20.8-150000.1.23.1 | fixed |
| Opensuse | go1.20 | leap 15.5 | 1.20.8-150000.1.23.1 | fixed |
| Opensuse | go1.20 | tumbleweed | 1.20.8-1.1 | fixed |
| Suse | go1.21 | linux enterprise module for development tools 15 sp4 | 1.21.1-150000.1.6.1 | fixed |
| Suse | go1.21 | linux enterprise module for development tools 15 sp5 | 1.21.1-150000.1.6.1 | fixed |
| Opensuse | go1.21 | leap 15.4 | 1.21.1-150000.1.6.1 | fixed |
| Opensuse | go1.21 | leap 15.5 | 1.21.1-150000.1.6.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | golang-1.19 | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Ubuntu | golang-1.18 | deb | pro | 1.18.1-1ubuntu1~18.04.4+esm1 | Not reported | UBUNTU-CVE-2023-39318 | Not reported |
| Ubuntu | golang-1.18 | deb | 20.04 | 1.18.1-1ubuntu1~20.04.3 | Not reported | UBUNTU-CVE-2023-39318 | Not reported |
| Ubuntu | golang-1.20 | deb | 20.04 | 1.20.3-1ubuntu0.1~20.04.1 | Not reported | UBUNTU-CVE-2023-39318 | Not reported |
| Ubuntu | golang-1.17 | deb | 22.04 | 1.17.13-3ubuntu1.2 | Not reported | UBUNTU-CVE-2023-39318 | Not reported |
| Ubuntu | golang-1.18 | deb | 22.04 | 1.18.1-1ubuntu1.2 | Not reported | UBUNTU-CVE-2023-39318 | Not reported |
| Ubuntu | golang-1.20 | deb | 22.04 | 1.20.3-1ubuntu0.1~22.04.1 | Not reported | UBUNTU-CVE-2023-39318 | Not reported |
| Ubuntu | golang-1.20 | deb | 20.04 | 1.20.3-1ubuntu0.1~20.04.1 | Not reported | USN-6574-1 | Not reported |
| Ubuntu | golang-1.21 | deb | 20.04 | 1.21.1-1~ubuntu20.04.2 | Not reported | USN-6574-1 | Not reported |
| Ubuntu | golang-1.20 | deb | 22.04 | 1.20.3-1ubuntu0.1~22.04.1 | Not reported | USN-6574-1 | Not reported |
| Ubuntu | golang-1.21 | deb | 22.04 | 1.21.1-1~ubuntu22.04.2 | Not reported | USN-6574-1 | Not reported |
| Suse | go1.21-openssl | rpm | linux enterprise module for development tools 15 sp4 | 1.21.4.1-150000.1.5.1 | Not reported | SUSE-SU-2023:4469-1 | Not reported |
| Suse | go1.21-openssl | rpm | linux enterprise module for development tools 15 sp5 | 1.21.4.1-150000.1.5.1 | Not reported | SUSE-SU-2023:4469-1 | Not reported |
| Opensuse | go1.21-openssl | rpm | leap 15.4 | 1.21.4.1-150000.1.5.1 | Not reported | SUSE-SU-2023:4469-1 | Not reported |
| Opensuse | go1.21-openssl | rpm | leap 15.5 | 1.21.4.1-150000.1.5.1 | Not reported | SUSE-SU-2023:4469-1 | Not reported |
| Opensuse | go1.21 | rpm | tumbleweed | 1.21.1-1.1 | Not reported | OPENSUSE-SU-2024:13217-1 | Not reported |
| Suse | go | rpm | package hub 12 | 1.21-41.1 | Not reported | OPENSUSE-SU-2023:0360-1 | Not reported |
| Suse | go1.21 | rpm | package hub 12 | 1.21.3-2.1 | Not reported | OPENSUSE-SU-2023:0360-1 | Not reported |
| Suse | go1.20 | rpm | linux enterprise module for development tools 15 sp4 | 1.20.8-150000.1.23.1 | Not reported | SUSE-SU-2023:3700-1 | Not reported |
| Suse | go1.20 | rpm | linux enterprise module for development tools 15 sp5 | 1.20.8-150000.1.23.1 | Not reported | SUSE-SU-2023:3700-1 | Not reported |
| Opensuse | go1.20 | rpm | leap 15.4 | 1.20.8-150000.1.23.1 | Not reported | SUSE-SU-2023:3700-1 | Not reported |
| Opensuse | go1.20 | rpm | leap 15.5 | 1.20.8-150000.1.23.1 | Not reported | SUSE-SU-2023:3700-1 | Not reported |
| Opensuse | go1.20 | rpm | tumbleweed | 1.20.8-1.1 | Not reported | OPENSUSE-SU-2024:13216-1 | Not reported |
| Suse | go1.21 | rpm | linux enterprise module for development tools 15 sp4 | 1.21.1-150000.1.6.1 | Not reported | SUSE-SU-2023:3701-1 | Not reported |
| Suse | go1.21 | rpm | linux enterprise module for development tools 15 sp5 | 1.21.1-150000.1.6.1 | Not reported | SUSE-SU-2023:3701-1 | Not reported |
| Opensuse | go1.21 | rpm | leap 15.4 | 1.21.1-150000.1.6.1 | Not reported | SUSE-SU-2023:3701-1 | Not reported |
| Opensuse | go1.21 | rpm | leap 15.5 | 1.21.1-150000.1.6.1 | Not reported | SUSE-SU-2023:3701-1 | Not reported |
Notes
[bookworm] golang-1.19: Minor issue
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhba-2023_6928.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-39318]
- [https://osv.dev/vulnerability/SUSE-SU-2023:3700-1]
- [https://osv.dev/vulnerability/SUSE-SU-2023:3701-1]
- [https://osv.dev/vulnerability/SUSE-SU-2023:4469-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2023-39318]
- [https://osv.dev/vulnerability/USN-6574-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2023:0360-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:13216-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:13217-1]
- [https://security-tracker.debian.org/tracker/CVE-2023-39318]
- [https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-39318.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-3146.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]