Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-23388

Agent 2 package are built with Go version affected by CVE-2023-24538 (CVE-2023-29453)

XMLWordPrintable

    • Icon: Defect (Security) Defect (Security)
    • Resolution: Fixed
    • Icon: Critical Critical
    • None
    • None
    • Agent2 plugin (N)
    • None

      Mitre ID CVE-2023-29453
      CVSS score 9.8
      https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
      Severity Critical
      Summary Agent 2 package are built with Go version affected by CVE-2023-24538
      Description 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.
      Known attack vectors CWE-94 Improper Control of Generation of Code ('Code Injection')
      Patch provided  No
      Component/s Agent2
      Affected version/s and fix version/s 5.0.0 - 5.0.34 / 5.0.35
      6.0.0 - 6.0.17 / 6.0.18
      6.4.0 - 6.4.2 / 6.4.3
      Fix compatibility tests -
      Resolution Fixed
      Workarounds -
      Acknowledgements -

            mmelnikovs Maris Melnikovs
            mmelnikovs Maris Melnikovs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: