CVE-2023-24538
CVE-2023-24538 · Backticks not treated as string delimiters in html/template
Diese Seite enthält Fakten aus öffentlichen Sicherheitsquellen. Lesen Sie vor dem Aktualisieren die Originalmeldung.
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.
CVSS 9.8 · Kritisch · EPSS 2,3% · Korrektur verfügbar
- Veröffentlicht
- Aktualisiert
Technologie-Stack: system
Betroffene Produkte und Versionen
html/template
- Softwareversionen
- ≥ 0, < 1.19.8: Betroffen (semver)
- ≥ 1.20.0-0, < 1.20.3: Betroffen (semver)
Auf 1.19.8 aktualisieren; Auf 1.20.3 aktualisieren
golang-1.19 Debian:12
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.19.8-2
Auf 1.19.8-2 aktualisieren
golang-1.10 Ubuntu:14.04:LTS
- Softwareversionen
- 1.10.4-2ubuntu1~14.04.1
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
golang-1.13 Ubuntu:Pro:16.04:LTS
- Softwareversionen
- 1.13.8-1ubuntu1~16.04.2
- 1.13.8-1ubuntu1~16.04.3
- 1.13.8-1ubuntu1~16.04.3+esm2
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.13.8-1ubuntu1~16.04.3+esm3
Auf 1.13.8-1ubuntu1~16.04.3+esm3 aktualisieren
golang-1.10 Ubuntu:16.04:LTS
- Softwareversionen
- 1.10.4-2ubuntu1~16.04.1
- 1.10.4-2ubuntu1~16.04.2
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
golang-1.6 Ubuntu:16.04:LTS
- Softwareversionen
- 1.6-0ubuntu1
- 1.6-0ubuntu2
- 1.6-0ubuntu3
- 1.6-0ubuntu4
- 1.6-0ubuntu5
- 1.6.1-0ubuntu1
- 1.6.2-0ubuntu5~16.04
- 1.6.2-0ubuntu5~16.04.2
- 1.6.2-0ubuntu5~16.04.3
- 1.6.2-0ubuntu5~16.04.4
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
golang-1.18 Ubuntu:18.04:LTS
- Softwareversionen
- 1.18.1-1ubuntu1~18.04.3
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.18.1-1ubuntu1~18.04.4
Auf 1.18.1-1ubuntu1~18.04.4 aktualisieren
golang-1.10 Ubuntu:18.04:LTS
- Softwareversionen
- 1.10~rc1-1
- 1.10~rc1-1ubuntu1
- 1.10~rc1-2ubuntu1
- 1.10~rc2-1ubuntu1
- 1.10-1ubuntu1
- 1.10.1-1ubuntu2
- 1.10.4-2ubuntu1~18.04.1
- 1.10.4-2ubuntu1~18.04.2
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
golang-1.13 Ubuntu:Pro:18.04:LTS
- Softwareversionen
- 1.13.8-1ubuntu1~18.04.2
- 1.13.8-1ubuntu1~18.04.3
- 1.13.8-1ubuntu1~18.04.4
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.13.8-1ubuntu1~18.04.4+esm1
Auf 1.13.8-1ubuntu1~18.04.4+esm1 aktualisieren
golang-1.16 Ubuntu:Pro:18.04:LTS
- Softwareversionen
- 1.16.2-0ubuntu1~18.04.2
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.16.2-0ubuntu1~18.04.2+esm1
Auf 1.16.2-0ubuntu1~18.04.2+esm1 aktualisieren
golang-1.8 Ubuntu:18.04:LTS
- Softwareversionen
- 1.8.3-2ubuntu1
- 1.8.3-2ubuntu1.18.04.1
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
golang-1.9 Ubuntu:18.04:LTS
- Softwareversionen
- 1.9.1-2ubuntu1
- 1.9.2-1ubuntu1
- 1.9.2-3ubuntu1
- 1.9.3-1ubuntu1
- 1.9.4-1ubuntu1
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
golang-1.13 Ubuntu:20.04:LTS
- Softwareversionen
- 1.13.1-1ubuntu1
- 1.13.3-1ubuntu1
- 1.13.4-1ubuntu1
- 1.13.5-1ubuntu1
- 1.13.6-1ubuntu1
- 1.13.6-2ubuntu1
- 1.13.7-1ubuntu1
- 1.13.8-1ubuntu1
- 1.13.8-1ubuntu1.1
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.13.8-1ubuntu1.2
Auf 1.13.8-1ubuntu1.2 aktualisieren
golang-1.16 Ubuntu:20.04:LTS
- Softwareversionen
- 1.16.2-0ubuntu1~20.04
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.16.2-0ubuntu1~20.04.1
Auf 1.16.2-0ubuntu1~20.04.1 aktualisieren
golang-1.18 Ubuntu:20.04:LTS
- Softwareversionen
- 1.18.1-1ubuntu1~20.04.1
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.18.1-1ubuntu1~20.04.2
Auf 1.18.1-1ubuntu1~20.04.2 aktualisieren
golang-1.14 Ubuntu:20.04:LTS
- Softwareversionen
- 1.14~beta1-1
- 1.14~beta1-2
- 1.14~rc1-1
- 1.14-1
- 1.14.1-1
- 1.14.2-1
- 1.14.2-1ubuntu1
- 1.14.3-2ubuntu2~20.04.1
- 1.14.3-2ubuntu2~20.04.2
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
golang-1.13 Ubuntu:22.04:LTS
- Softwareversionen
- 1.13.8-1ubuntu2
- 1.13.8-1ubuntu2.22.04.1
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.13.8-1ubuntu2.22.04.2
Auf 1.13.8-1ubuntu2.22.04.2 aktualisieren
golang-1.17 Ubuntu:22.04:LTS
- Softwareversionen
- 1.17-1ubuntu2
- 1.17.3-1ubuntu1
- 1.17.3-1ubuntu2
- 1.17.13-3ubuntu1
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.17.13-3ubuntu1.2
Auf 1.17.13-3ubuntu1.2 aktualisieren
golang-1.18 Ubuntu:22.04:LTS
- Softwareversionen
- 1.18~beta1-0ubuntu1
- 1.18~beta2-1ubuntu1
- 1.18~beta2-1ubuntu2
- 1.18~rc1-1ubuntu1
- 1.18-1ubuntu1
- 1.18.1-1ubuntu1
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.18.1-1ubuntu1.1
Auf 1.18.1-1ubuntu1.1 aktualisieren