QID 355748

Date Published: 2023-08-09

QID 355748: Amazon Linux Security Advisory for golang : ALAS2023-2023-269

html/template: improper handling of empty html attributes. templates containing actions in unquoted html attributes (e.g. "attr={{.}}")
Executed with empty input could result in output that would have unexpected results when parsed due to html normalization rules.
This may allow injection of arbitrary attributes into tags. (
( CVE-2023-29400) the go command may generate unexpected code at build time when using cgo.
This may result in unexpected behavior when running a go program which uses cgo.
This may occur when running an untrusted module which contains directories with newline characters in their names.
Modules which are retrieved using the go command, i.e. via "go get", are not affected (modules retrieved using gopath-mode, i.e. go111module=off, may be affected). (
( CVE-2023-29402) on unix platforms, the go runtime does not behave differently when a binary is run with the setuid/setgid bits.
This can be dangerous in certain cases, such as when dumping memory state, or assuming the status of standard i/o file descriptors.
If a setuid/setgid binary is executed with standard i/o file descriptors closed, opening any files can result in unexpected content being read or written with elevated privileges.
Similarly, if a setuid/setgid program is terminated, either via panic or signal, it may leak the contents of its registers. (
( CVE-2023-29403) the go command may execute arbitrary code at build time when using cgo.
This may occur when running "go get" on a malicious module, or when running any other command which builds untrusted code.
This is can by triggered by linker flags, specified via a "#cgo ldflags" directive.

Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as Critical - 9.8 severity.
  • CVSS V2 rated as Medium - 5.4 severity.
  • Solution
    Please refer to Amazon advisory: ALAS2023-2023-269 for affected packages and patching details, or update with your package manager.
    Vendor References
    Software Advisories
    Advisory ID Software Component Link
    ALAS2023-2023-269 amazon linux 2023 URL Logo alas.aws.amazon.com/AL2023/ALAS-2023-269.html