CVE-2023-24538 — Docker Container Impact
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 Containers & Packages (14 finding(s))
| Container App | Variant & Tags | Layer | Package | Fixed In | Digest |
|---|---|---|---|---|---|
| Home Assistant | official (2024.10.0) | app | stdlib go1.17.1 | 1.19.8, 1.20.3 | sha256:2906842d3eb2 |
| Home Assistant | official (2024.10.1) | app | stdlib go1.17.1 | 1.19.8, 1.20.3 | sha256:4576a54b0771 |
| Home Assistant | official (2024.10.2) | app | stdlib go1.17.1 | 1.19.8, 1.20.3 | sha256:4a9f22291ca5 |
| Home Assistant | official (2024.9.3) | app | stdlib go1.17.1 | 1.19.8, 1.20.3 | sha256:6dc8d746c9cb |
| Home Assistant | official (2024.9.2) | app | stdlib go1.17.1 | 1.19.8, 1.20.3 | sha256:babe87c9f5a8 |
| Home Assistant | official (2024.9.0) | app | stdlib go1.17.1 | 1.19.8, 1.20.3 | sha256:d1ad64b95b1d |
| Home Assistant | official (2024.8.3) | app | stdlib go1.17.1 | 1.19.8, 1.20.3 | sha256:d3580d193f00 |
| Home Assistant | official (2024.9.1) | app | stdlib go1.17.1 | 1.19.8, 1.20.3 | sha256:e8a90abcaeeb |
| Home Assistant | official (2024.8.2) | app | stdlib go1.17.1 | 1.19.8, 1.20.3 | sha256:f4f1dbd0187b |
| Nginx Proxy Manager | official (2.13.6) | app | stdlib go1.19.3 | 1.19.8, 1.20.3 | sha256:040f521db4c5 |
| Nginx Proxy Manager | official (2.13.7) | app | stdlib go1.19.3 | 1.19.8, 1.20.3 | sha256:6154294e72ef |
| Nginx Proxy Manager | official (2.13.4) | app | stdlib go1.19.3 | 1.19.8, 1.20.3 | sha256:9007eee0ae91 |
| Nginx Proxy Manager | official (2.14.0) | app | stdlib go1.19.3 | 1.19.8, 1.20.3 | sha256:a142e4adf946 |
| Nginx Proxy Manager | official (2.13.5) | app | stdlib go1.19.3 | 1.19.8, 1.20.3 | sha256:cf1f941f3e2e |
Notice — Data Accuracy Disclaimer: SBOMs, CVE matches, risk scores, and fix versions are automated best-effort snapshots and are not guaranteed to be 100% complete or accurate. Results are generated using open-source tools (Anchore Syft, Anchore Grype, and OSV.dev) and public feeds, and may contain false positives, distro backport nuances, or upstream feed delays. Always verify critical findings directly against official security advisories.
Official Security Sources: NVD (nvd.nist.gov) • CISA KEV Catalog • FIRST EPSS • GitHub Advisories • Alpine Security Tracker • Debian Security Tracker • Red Hat CVE Database