Ubuntu CVE Tracker
UBUNTU-CVE-2023-39318
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:14.04:LTS | golang-1.10 | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | golang-1.18 | All versions before 1.18.1-1ubuntu1~16.04.6+esm1 (fixed in 1.18.1-1ubuntu1~16.04.6+esm1) |
| Ubuntu:16.04:LTS | golang-1.10 | All versions, no fix listed |
| Ubuntu:16.04:LTS | golang-1.6 | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | golang-1.13 | All versions, no fix listed |
| Ubuntu:18.04:LTS | golang-1.10 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | golang-1.13 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | golang-1.16 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | golang-1.18 | All versions before 1.18.1-1ubuntu1~18.04.4+esm1 (fixed in 1.18.1-1ubuntu1~18.04.4+esm1) |
| Ubuntu:18.04:LTS | golang-1.8 | All versions, no fix listed |
| Ubuntu:18.04:LTS | golang-1.9 | All versions, no fix listed |
| Ubuntu:20.04:LTS | golang-1.18 | All versions before 1.18.1-1ubuntu1~20.04.3 (fixed in 1.18.1-1ubuntu1~20.04.3) |
| Ubuntu:20.04:LTS | golang-1.20 | All versions before 1.20.3-1ubuntu0.1~20.04.1 (fixed in 1.20.3-1ubuntu0.1~20.04.1) |
| Ubuntu:20.04:LTS | golang-1.13 | All versions, no fix listed |
| Ubuntu:20.04:LTS | golang-1.14 | All versions, no fix listed |
| Ubuntu:Pro:20.04:LTS | golang-1.16 | All versions, no fix listed |
| Ubuntu:22.04:LTS | golang-1.17 | All versions before 1.17.13-3ubuntu1.2 (fixed in 1.17.13-3ubuntu1.2) |
| Ubuntu:22.04:LTS | golang-1.18 | All versions before 1.18.1-1ubuntu1.2 (fixed in 1.18.1-1ubuntu1.2) |
| Ubuntu:22.04:LTS | golang-1.20 | All versions before 1.20.3-1ubuntu0.1~22.04.1 (fixed in 1.20.3-1ubuntu0.1~22.04.1) |
| Ubuntu:Pro:22.04:LTS | golang-1.13 | All versions, no fix listed |
References
- https://ubuntu.com/security/CVE-2023-39318
- https://go.dev/issue/62196
- https://github.com/golang/go/commit/b0e1d3ea26e8e8fce7726690c9ef0597e60739fb
- https://github.com/golang/go/commit/023b542edf38e2a1f87fcefb9f75ff2f99401b4c
- https://groups.google.com/g/golang-announce/c/Fm51GRLNRvM
- https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ
- https://pkg.go.dev/vuln/GO-2023-2041
- https://go.dev/cl/526156
- https://ubuntu.com/security/notices/USN-6574-1
- https://www.cve.org/CVERecord?id=CVE-2023-39318
- https://ubuntu.com/security/notices/USN-7061-1
- https://ubuntu.com/security/notices/USN-7109-1