Red Hat VEX
RHVEX-CVE-2023-39318
golang: html/template: improper handling of HTML-like comments within script contexts
Details
A flaw was found in Golang. The html/template package did not properly handle HMTL-like "<!--" and "-->" comment tokens, nor hashbang "#!" comment tokens, in <script> contexts. This issue may cause the template parser to improperly interpret the contents of <script> contexts, causing actions to be improperly escaped.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:8 | osbuild-composer | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | osbuild-composer-core | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | osbuild-composer-dnf-json | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | osbuild-composer-worker | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | ignition | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | ignition-edge | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | ignition-grub | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | ignition-validate | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | osbuild-composer | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | osbuild-composer-core | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | osbuild-composer-dnf-json | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | osbuild-composer-worker | All versions, will not be fixed |
References
- https://access.redhat.com/security/cve/CVE-2023-39318
- https://bugzilla.redhat.com/show_bug.cgi?id=2237776
- https://www.cve.org/CVERecord?id=CVE-2023-39318
- https://nvd.nist.gov/vuln/detail/CVE-2023-39318
- https://go.dev/cl/526156
- https://go.dev/issue/62196
- https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ
- https://vuln.go.dev/ID/GO-2023-2041.json