| { |
| "dataType": "CVE_RECORD", |
| "dataVersion": "5.0", |
| "cveMetadata": { |
| "cveId": "CVE-2024-24785" |
| }, |
| "containers": { |
| "cna": { |
| "providerMetadata": { |
| "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" |
| }, |
| "title": "Errors returned from JSON marshaling may break template escaping in html/template", |
| "descriptions": [ |
| { |
| "lang": "en", |
| "value": "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." |
| } |
| ], |
| "affected": [ |
| { |
| "vendor": "Go standard library", |
| "product": "html/template", |
| "collectionURL": "https://pkg.go.dev", |
| "packageName": "html/template", |
| "versions": [ |
| { |
| "version": "0", |
| "lessThan": "1.21.8", |
| "status": "affected", |
| "versionType": "semver" |
| }, |
| { |
| "version": "1.22.0-0", |
| "lessThan": "1.22.1", |
| "status": "affected", |
| "versionType": "semver" |
| } |
| ], |
| "programRoutines": [ |
| { |
| "name": "jsValEscaper" |
| }, |
| { |
| "name": "escaper.commit" |
| }, |
| { |
| "name": "Template.Execute" |
| }, |
| { |
| "name": "Template.ExecuteTemplate" |
| } |
| ], |
| "defaultStatus": "unaffected" |
| } |
| ], |
| "problemTypes": [ |
| { |
| "descriptions": [ |
| { |
| "lang": "en", |
| "description": "CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences" |
| } |
| ] |
| } |
| ], |
| "references": [ |
| { |
| "url": "https://go.dev/issue/65697" |
| }, |
| { |
| "url": "https://go.dev/cl/564196" |
| }, |
| { |
| "url": "https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg" |
| }, |
| { |
| "url": "https://pkg.go.dev/vuln/GO-2024-2610" |
| }, |
| { |
| "url": "https://security.netapp.com/advisory/ntap-20240329-0008/" |
| }, |
| { |
| "url": "http://www.openwall.com/lists/oss-security/2024/03/08/4" |
| } |
| ], |
| "credits": [ |
| { |
| "lang": "en", |
| "value": "RyotaK (https://ryotak.net)" |
| } |
| ] |
| } |
| } |
| } |