{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-24785",
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "state": "PUBLISHED",
        "assignerShortName": "Go",
        "dateReserved": "2024-01-30T16:05:14.757Z",
        "datePublished": "2024-03-05T22:22:33.640Z",
        "dateUpdated": "2024-08-01T23:28:12.537Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
                "shortName": "Go",
                "dateUpdated": "2024-03-05T22:22:33.640Z"
            },
            "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)"
                }
            ]
        },
        "adp": [
            {
                "title": "CISA ADP Vulnrichment",
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2024-24785",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2024-03-06T18:49:44.784868Z"
                            }
                        }
                    }
                ],
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-06-04T17:43:02.716Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-01T23:28:12.537Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://go.dev/issue/65697",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://go.dev/cl/564196",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://pkg.go.dev/vuln/GO-2024-2610",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://security.netapp.com/advisory/ntap-20240329-0008/",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "http://www.openwall.com/lists/oss-security/2024/03/08/4",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}