{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-28855",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2024-03-11T22:45:07.686Z",
        "datePublished": "2024-03-18T21:46:47.314Z",
        "dateUpdated": "2024-08-13T14:19:08.789Z"
    },
    "containers": {
        "cna": {
            "title": "ZITADEL vulnerable to improper HTML sanitization",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-20",
                            "lang": "en",
                            "description": "CWE-20: Improper Input Validation",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "NONE",
                        "baseScore": 8.1,
                        "baseSeverity": "HIGH",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "NONE",
                        "scope": "UNCHANGED",
                        "userInteraction": "REQUIRED",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/zitadel/zitadel/security/advisories/GHSA-hfrg-4jwr-jfpj",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/zitadel/zitadel/security/advisories/GHSA-hfrg-4jwr-jfpj"
                },
                {
                    "name": "https://github.com/zitadel/zitadel/releases/tag/v2.41.15",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/zitadel/zitadel/releases/tag/v2.41.15"
                },
                {
                    "name": "https://github.com/zitadel/zitadel/releases/tag/v2.42.15",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/zitadel/zitadel/releases/tag/v2.42.15"
                },
                {
                    "name": "https://github.com/zitadel/zitadel/releases/tag/v2.43.9",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/zitadel/zitadel/releases/tag/v2.43.9"
                },
                {
                    "name": "https://github.com/zitadel/zitadel/releases/tag/v2.44.3",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/zitadel/zitadel/releases/tag/v2.44.3"
                },
                {
                    "name": "https://github.com/zitadel/zitadel/releases/tag/v2.45.1",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/zitadel/zitadel/releases/tag/v2.45.1"
                },
                {
                    "name": "https://github.com/zitadel/zitadel/releases/tag/v2.46.1",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/zitadel/zitadel/releases/tag/v2.46.1"
                },
                {
                    "name": "https://github.com/zitadel/zitadel/releases/tag/v2.47.3",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/zitadel/zitadel/releases/tag/v2.47.3"
                }
            ],
            "affected": [
                {
                    "vendor": "zitadel",
                    "product": "zitadel",
                    "versions": [
                        {
                            "version": "< 2.41.15",
                            "status": "affected"
                        },
                        {
                            "version": ">= 2.42.0, < 2.42.15",
                            "status": "affected"
                        },
                        {
                            "version": ">= 2.43.0, < 2.43.9",
                            "status": "affected"
                        },
                        {
                            "version": ">= 2.44.0, < 2.44.3",
                            "status": "affected"
                        },
                        {
                            "version": "= 2.45.0",
                            "status": "affected"
                        },
                        {
                            "version": "= 2.46.0",
                            "status": "affected"
                        },
                        {
                            "version": ">= 2.47.0, < 2.47.4",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2024-03-18T21:46:47.314Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "ZITADEL, open source authentication management software, uses Go templates to render the login UI. Due to a improper use of the `text/template` instead of the `html/template` package, the Login UI did not sanitize input parameters prior to versions 2.47.3, 2.46.1, 2.45.1, 2.44.3, 2.43.9, 2.42.15, and 2.41.15. An attacker could create a malicious link, where he injected code which would be rendered as part of the login screen. While it was possible to inject HTML including JavaScript, the execution of such scripts would be prevented by the Content Security Policy. Versions 2.47.3, 2.46.1, 2.45.1, 2.44.3, 2.43.9, 2.42.15, and 2.41.15 contain a patch for this issue. No known workarounds are available."
                }
            ],
            "source": {
                "advisory": "GHSA-hfrg-4jwr-jfpj",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T00:56:58.167Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/zitadel/zitadel/security/advisories/GHSA-hfrg-4jwr-jfpj",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/zitadel/zitadel/security/advisories/GHSA-hfrg-4jwr-jfpj"
                    },
                    {
                        "name": "https://github.com/zitadel/zitadel/releases/tag/v2.41.15",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/zitadel/zitadel/releases/tag/v2.41.15"
                    },
                    {
                        "name": "https://github.com/zitadel/zitadel/releases/tag/v2.42.15",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/zitadel/zitadel/releases/tag/v2.42.15"
                    },
                    {
                        "name": "https://github.com/zitadel/zitadel/releases/tag/v2.43.9",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/zitadel/zitadel/releases/tag/v2.43.9"
                    },
                    {
                        "name": "https://github.com/zitadel/zitadel/releases/tag/v2.44.3",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/zitadel/zitadel/releases/tag/v2.44.3"
                    },
                    {
                        "name": "https://github.com/zitadel/zitadel/releases/tag/v2.45.1",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/zitadel/zitadel/releases/tag/v2.45.1"
                    },
                    {
                        "name": "https://github.com/zitadel/zitadel/releases/tag/v2.46.1",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/zitadel/zitadel/releases/tag/v2.46.1"
                    },
                    {
                        "name": "https://github.com/zitadel/zitadel/releases/tag/v2.47.3",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/zitadel/zitadel/releases/tag/v2.47.3"
                    }
                ]
            },
            {
                "affected": [
                    {
                        "vendor": "zitadel",
                        "product": "zitadel",
                        "cpes": [
                            "cpe:2.3:a:zitadel:zitadel:*:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "0",
                                "status": "affected",
                                "lessThan": "2.41.15",
                                "versionType": "custom"
                            },
                            {
                                "version": "2.42.0",
                                "status": "affected",
                                "lessThan": "2.42.15",
                                "versionType": "custom"
                            },
                            {
                                "version": "2.43.0",
                                "status": "affected",
                                "lessThan": "2.43.9",
                                "versionType": "custom"
                            },
                            {
                                "version": "2.44.0",
                                "status": "affected",
                                "lessThan": "2.44.3",
                                "versionType": "custom"
                            },
                            {
                                "version": "2.47.0",
                                "status": "affected",
                                "lessThan": "2.47.4",
                                "versionType": "custom"
                            }
                        ]
                    },
                    {
                        "vendor": "zitadel",
                        "product": "zitadel",
                        "cpes": [
                            "cpe:2.3:a:zitadel:zitadel:2.45.0:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "2.45.0",
                                "status": "affected"
                            }
                        ]
                    },
                    {
                        "vendor": "zitadel",
                        "product": "zitadel",
                        "cpes": [
                            "cpe:2.3:a:zitadel:zitadel:2.46.0:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "2.46.0",
                                "status": "affected"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-03-19T15:00:40.963408Z",
                                "id": "CVE-2024-28855",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-08-13T14:19:08.789Z"
                }
            }
        ]
    }
}