{"id":"USN-6574-1","summary":"Go vulnerabilities","details":"Takeshi Kaneko discovered that Go did not properly handle comments and\nspecial tags in the script context of html/template module. An attacker\ncould possibly use this issue to inject Javascript code and perform a cross\nsite scripting attack. This issue only affected Go 1.20 in Ubuntu 20.04 LTS,\nUbuntu 22.04 LTS and Ubuntu 23.04. (CVE-2023-39318, CVE-2023-39319)\n\nIt was discovered that Go did not properly validate the \"//go:cgo_\"\ndirectives during compilation. An attacker could possibly use this issue to\ninject arbitrary code during compile time. (CVE-2023-39323)\n\nIt was discovered that Go did not limit the number of simultaneously\nexecuting handler goroutines in the net/http module. An attacker could\npossibly use this issue to cause a panic resulting into a denial of service.\n(CVE-2023-39325, CVE-2023-44487)\n\nIt was discovered that the Go net/http module did not properly validate the\nchunk extensions reading from a request or response body. An attacker could\npossibly use this issue to read sensitive information. (CVE-2023-39326)\n\nIt was discovered that Go did not properly validate the insecure \"git://\"\nprotocol when using go get to fetch a module with the \".git\" suffix. An\nattacker could possibly use this issue to bypass secure protocol checks.\n(CVE-2023-45285)\n","modified":"2026-02-10T04:43:28Z","published":"2024-01-11T05:30:24Z","related":["UBUNTU-CVE-2023-39318","UBUNTU-CVE-2023-39319","UBUNTU-CVE-2023-39323","UBUNTU-CVE-2023-39325","UBUNTU-CVE-2023-39326","UBUNTU-CVE-2023-44487","UBUNTU-CVE-2023-45285"],"upstream":["CVE-2023-39318","CVE-2023-39319","CVE-2023-39323","CVE-2023-39325","CVE-2023-39326","CVE-2023-44487","CVE-2023-45285","UBUNTU-CVE-2023-39318","UBUNTU-CVE-2023-39319","UBUNTU-CVE-2023-39323","UBUNTU-CVE-2023-39325","UBUNTU-CVE-2023-39326","UBUNTU-CVE-2023-44487","UBUNTU-CVE-2023-45285"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6574-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-39318"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-39319"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-39323"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-39325"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-39326"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-44487"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-45285"}],"affected":[{"package":{"name":"golang-1.20","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/golang-1.20@1.20.3-1ubuntu0.1~20.04.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.20.3-1ubuntu0.1~20.04.1"}]}],"versions":["1.20.3-1ubuntu0.1~20.04"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"golang-1.20","binary_version":"1.20.3-1ubuntu0.1~20.04.1"},{"binary_name":"golang-1.20-go","binary_version":"1.20.3-1ubuntu0.1~20.04.1"},{"binary_name":"golang-1.20-src","binary_version":"1.20.3-1ubuntu0.1~20.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-6574-1.json","cves_map":{"ecosystem":"Ubuntu:20.04:LTS","cves":[{"id":"CVE-2023-39318","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2023-39319","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2023-39323","severity":[{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2023-39325","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2023-39326","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2023-45285","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]}]}}},{"package":{"name":"golang-1.21","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/golang-1.21@1.21.1-1~ubuntu20.04.2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.21.1-1~ubuntu20.04.2"}]}],"versions":["1.21.1-1~ubuntu20.04.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"golang-1.21","binary_version":"1.21.1-1~ubuntu20.04.2"},{"binary_name":"golang-1.21-go","binary_version":"1.21.1-1~ubuntu20.04.2"},{"binary_name":"golang-1.21-src","binary_version":"1.21.1-1~ubuntu20.04.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-6574-1.json","cves_map":{"ecosystem":"Ubuntu:20.04:LTS","cves":[{"id":"CVE-2023-39318","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2023-39319","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2023-39323","severity":[{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2023-39325","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2023-39326","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2023-45285","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]}]}}},{"package":{"name":"golang-1.20","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/golang-1.20@1.20.3-1ubuntu0.1~22.04.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.20.3-1ubuntu0.1~22.04.1"}]}],"versions":["1.20.3-1ubuntu0.1~22.04"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"golang-1.20","binary_version":"1.20.3-1ubuntu0.1~22.04.1"},{"binary_name":"golang-1.20-go","binary_version":"1.20.3-1ubuntu0.1~22.04.1"},{"binary_name":"golang-1.20-src","binary_version":"1.20.3-1ubuntu0.1~22.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-6574-1.json","cves_map":{"ecosystem":"Ubuntu:22.04:LTS","cves":[{"id":"CVE-2023-39318","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2023-39319","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2023-39323","severity":[{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2023-39325","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2023-39326","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2023-45285","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]}]}}},{"package":{"name":"golang-1.21","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/golang-1.21@1.21.1-1~ubuntu22.04.2?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.21.1-1~ubuntu22.04.2"}]}],"versions":["1.21.1-1~ubuntu22.04.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"golang-1.21","binary_version":"1.21.1-1~ubuntu22.04.2"},{"binary_name":"golang-1.21-go","binary_version":"1.21.1-1~ubuntu22.04.2"},{"binary_name":"golang-1.21-src","binary_version":"1.21.1-1~ubuntu22.04.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-6574-1.json","cves_map":{"ecosystem":"Ubuntu:22.04:LTS","cves":[{"id":"CVE-2023-39318","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2023-39319","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2023-39323","severity":[{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2023-39325","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2023-39326","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2023-45285","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]}]}}}],"schema_version":"1.7.3"}