CVE-2024-24785

medium

Description

If errors returned from MarshalJSON methods contain user controlled data, they may be used to break the contextual auto-escaping behavior of the html/template package, allowing for subsequent actions to inject unexpected content into templates.

References

https://security.netapp.com/advisory/ntap-20240329-0008/

https://pkg.go.dev/vuln/GO-2024-2610

https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg

https://go.dev/issue/65697

https://go.dev/cl/564196

http://www.openwall.com/lists/oss-security/2024/03/08/4

Details

Source: Mitre, NVD

Published: 2024-03-05

Updated: 2024-05-01

Risk Information

CVSS v2

Base Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:C/A:N

Severity: High

CVSS v3

Base Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Severity: Medium