llamaCVEVulnerability Intelligence
/
html/template

CVE-2023-24538

Backticks not treated as string delimiters in html/template

Parche disponiblecode injection
Descargar PNG JSON
CVSS 3.1
9.8
Crítica
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Fuente: CISA-ADP
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos21 fuente
Parche2 versiones1.19.8 · 1.20.3
Exposición1.323 dDesde la divulgación, 6 abr 2023, 10:50 a. m.
Detección1.320 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Sin explotación conocida, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC
Modificada
Explotación
Remediación
Monitoreo
Detectada
6 abr 23
12 feb 25
13 feb 25
17 nov 26
19 nov 26
6 abr 23
2 mar 24
27 ene 25
23 dic 25
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2023-24538 divulgada · CVSS 9.8 (CISA-ADP)
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen

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.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CISA-ADP
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
html/template · stdlib< 1.19.8
html/template · stdlib≥ 1.20.0-0 < 1.20.3
1.19.8
1.20.0-0
1.20.3
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
html/template
Corregida 1.19.8, 1.20.3 — —
Versiones corregidas1.19.81.20.3
Explotación

Arsenal público

Exploit-DB
—
0
Metasploit
—
0
Nuclei
—
0
PoC en GitHub
skulkarni-mv/goIssue_dunfell · skulkarni-mv/goIssue_kirkstone
2
Ver los 2 repositorios de GitHub
skulkarni-mv/goIssue_dunfell
skulkarni-mv/goIssue_kirkstone

Los repositorios públicos incluyen exploits, escáneres, laboratorios y reglas de detección. No ejecute código de terceros sin revisarlo en un entorno aislado.

Referencias
Exploithttps://github.com/skulkarni-mv/goIssue_dunfell
Exploithttps://github.com/skulkarni-mv/goIssue_kirkstone
Otrahttps://go.dev/issue/59234
Otrahttps://go.dev/cl/482079
Otrahttps://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8
Otrahttps://pkg.go.dev/vuln/GO-2023-1703
Otrahttps://security.gentoo.org/glsa/202311-09
Otrahttps://security.netapp.com/advisory/ntap-20241115-0007/

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.