Vulnerability · Published Oct 12, 2023 · Assigned by Zabbix

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

Critical 9.8

In plain English

A critical-severity code injection in Zabbix from Zabbix. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)0.9%top 40.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12zabbixno fix listedDEBIAN-CVE-2023-29453
Debian:13zabbix1:6.0.23+dfsg-1DEBIAN-CVE-2023-29453
Debian:14zabbix1:6.0.23+dfsg-1DEBIAN-CVE-2023-29453

Affected products (as reported)

VendorProductVersions
Zabbix Zabbix 5.0.0 – through 5.0.346.0.0 – through 6.0.176.4.0 – through 6.4.2

Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References