ALAS2023-2023-209


Amazon Linux 2023 Security Advisory: ALAS-2023-209
Advisory Release Date: 2023-06-07 23:52 Pacific
Advisory Updated Date: 2023-06-12 23:41 Pacific
Severity: Important

Issue Overview:

html/template: improper sanitization of CSS values

Angle brackets (<>) were not considered dangerous characters when inserted into CSS contexts. Templates containing multiple actions separated by a '/' character could result in unexpectedly closing the CSS context and allowing for injection of unexpected HMTL, if executed with untrusted input. (CVE-2023-24539)

html/template: improper handling of JavaScript whitespace.

Not all valid JavaScript whitespace characters were considered to be whitespace. Templates containing whitespace characters outside of the character set "\t\n\f\r\u0020\u2028\u2029" in JavaScript contexts that also contain actions may not be properly sanitized during execution. (CVE-2023-24540)

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)


Affected Packages:

golang


Issue Correction:
Run dnf update golang --releasever 2023.0.20230614 to update your system.

New Packages:
aarch64:
    golang-1.19.9-1.amzn2023.0.1.aarch64
    golang-shared-1.19.9-1.amzn2023.0.1.aarch64
    golang-bin-1.19.9-1.amzn2023.0.1.aarch64

noarch:
    golang-docs-1.19.9-1.amzn2023.0.1.noarch
    golang-misc-1.19.9-1.amzn2023.0.1.noarch
    golang-src-1.19.9-1.amzn2023.0.1.noarch
    golang-tests-1.19.9-1.amzn2023.0.1.noarch

src:
    golang-1.19.9-1.amzn2023.0.1.src

x86_64:
    golang-1.19.9-1.amzn2023.0.1.x86_64
    golang-bin-1.19.9-1.amzn2023.0.1.x86_64
    golang-shared-1.19.9-1.amzn2023.0.1.x86_64
    golang-race-1.19.9-1.amzn2023.0.1.x86_64