Advisory
UBUNTU-CVE-2023-39318
Also known as: CVE-2023-39318
Summary
The record has no summary.
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.
Severity
Medium Basis: CVSS v3 score 6.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Dates
- Published
- 2023-09-08 17:15 UTC
- Modified
- 2026-05-20 16:13 UTC
Affected packages and fixes
| Package | System | Affected | Fix |
|---|---|---|---|
| golang-1.10 | Debian packages (deb) · Ubuntu 14.04 | introduced 0 | No fixed version is listed. |
| golang-1.10 | Debian packages (deb) · Ubuntu 16.04 | introduced 0 | No fixed version is listed. |
| golang-1.6 | Debian packages (deb) · Ubuntu 16.04 | introduced 0 | No fixed version is listed. |
| golang-1.10 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| golang-1.8 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| golang-1.9 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| golang-1.18 | Debian packages (deb) · Ubuntu 20.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| golang-1.20 | Debian packages (deb) · Ubuntu 20.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| golang-1.13 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| golang-1.14 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| golang-1.17 | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| golang-1.18 | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| golang-1.20 | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
Some commands upgrade the distribution's packages. Compare the fixed version with the version you have installed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Links
- 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
Source
Source: Ubuntu Security Notices · CC BY-SA 4.0