QID 355425

Date Published: 2023-06-14

QID 355425: Amazon Linux Security Advisory for golang : ALAS-2023-1760

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)



Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.

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: ALAS-2023-1760 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 355425

    Software Advisories
    Advisory ID Software Component Link
    ALAS-2023-1760 amazon linux URL Logo alas.aws.amazon.com/ALAS-2023-1760.html