9.8 High
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
7.5 High
CVSS2
Access Vector
NETWORK
Access Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:P/I:P/A:P
0.003 Low
EPSS
Percentile
68.7%
Templates do not properly consider backticks (`) as Javascript string
delimiters, and do not escape them as expected. Backticks are used, since
ES6, for JS template literals. If a template contains a Go template action
within a Javascript template literal, the contents of the action can be
used to terminate the literal, injecting arbitrary Javascript code into the
Go template. As ES6 template literals are rather complex, and themselves
can do string interpolation, the decision was made to simply disallow Go
template actions from being used inside of them (e.g. โvar a = {{.}}โ),
since there is no obviously safe way to allow this behavior. This takes the
same approach as github.com/google/safehtml. With fix, Template.Parse
returns an Error when it encounters templates like this, with an ErrorCode
of value 12. This ErrorCode is currently unexported, but will be exported
in the release of Go 1.21. Users who rely on the previous behavior can
re-enable it using the GODEBUG flag jstmpllitinterp=1, with the caveat that
backticks will now be escaped. This should be used with caution.
OS | Version | Architecture | Package | Version | Filename |
---|---|---|---|---|---|
ubuntu | 18.04 | noarch | golang-1.10 | <ย any | UNKNOWN |
ubuntu | 14.04 | noarch | golang-1.10 | <ย any | UNKNOWN |
ubuntu | 16.04 | noarch | golang-1.10 | <ย any | UNKNOWN |
ubuntu | 18.04 | noarch | golang-1.13 | <ย 1.13.8-1ubuntu1~18.04.4+esm1 | UNKNOWN |
ubuntu | 20.04 | noarch | golang-1.13 | <ย 1.13.8-1ubuntu1.2 | UNKNOWN |
ubuntu | 22.04 | noarch | golang-1.13 | <ย 1.13.8-1ubuntu2.22.04.2 | UNKNOWN |
ubuntu | 16.04 | noarch | golang-1.13 | <ย 1.13.8-1ubuntu1~16.04.3+esm3 | UNKNOWN |
ubuntu | 20.04 | noarch | golang-1.14 | <ย any | UNKNOWN |
ubuntu | 18.04 | noarch | golang-1.16 | <ย 1.16.2-0ubuntu1~18.04.2+esm1 | UNKNOWN |
ubuntu | 20.04 | noarch | golang-1.16 | <ย 1.16.2-0ubuntu1~20.04.1 | UNKNOWN |
github.com/golang/go/commit/20374d1d759bc4e17486bde1cb9dca5be37d9e52 (go1.20.3)
github.com/golang/go/commit/b1e3ecfa06b67014429a197ec5e134ce4303ad9b (go1.19.8)
go.dev/issue/59234
groups.google.com/g/golang-announce/c/Xdv6JL9ENs8
launchpad.net/bugs/cve/CVE-2023-24538
nvd.nist.gov/vuln/detail/CVE-2023-24538
security-tracker.debian.org/tracker/CVE-2023-24538
ubuntu.com/security/notices/USN-6038-1
ubuntu.com/security/notices/USN-6038-2
ubuntu.com/security/notices/USN-6140-1
www.cve.org/CVERecord?id=CVE-2023-24538
9.8 High
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
7.5 High
CVSS2
Access Vector
NETWORK
Access Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:P/I:P/A:P
0.003 Low
EPSS
Percentile
68.7%