Skip to content
OpenAdvisories
Critical · 9.8 CVE-2023-29453 EUVD-2023-33022GHSA-7374-hfgm-rm8v

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

Published Oct 12, 2023 · Updated Sep 18, 2024 · Assigned by Zabbix

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.

Affected products

VendorProductAffectedFixed
Zabbix Zabbix — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 zabbix 1:6.0.23+dfsg-1 —
Debian 13 zabbix 1:6.0.23+dfsg-1 —
Debian 12 zabbix No fix yet —

Advisories 1

References