CVE-2024-28855 (GCVE-0-2024-28855)

Vulnerability from cvelistv5 – Published: 2024-03-18 21:46 – Updated: 2024-08-13 14:19
VLAI
Title
ZITADEL vulnerable to improper HTML sanitization
Summary
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.
SSVC
Exploitation: none Automatable: no Technical Impact: total
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2024-03-19 15:00 UTC
CWE
  • CWE-20 - Improper Input Validation
Assigner
GitHub_M CNA
Impacted products
Vendor Product Version
zitadel zitadel Affected: < 2.41.15
Affected: >= 2.42.0, < 2.42.15
Affected: >= 2.43.0, < 2.43.9
Affected: >= 2.44.0, < 2.44.3
Affected: = 2.45.0
Affected: = 2.46.0
Affected: >= 2.47.0, < 2.47.4
Create a notification for this product.
zitadel zitadel Affected: 0 , < 2.41.15 (custom)
Affected: 2.42.0 , < 2.42.15 (custom)
Affected: 2.43.0 , < 2.43.9 (custom)
Affected: 2.44.0 , < 2.44.3 (custom)
Affected: 2.47.0 , < 2.47.4 (custom)
    cpe:2.3:a:zitadel:zitadel:*:*:*:*:*:*:*:*
Create a notification for this product.
zitadel zitadel Affected: 2.45.0
    cpe:2.3:a:zitadel:zitadel:2.45.0:*:*:*:*:*:*:*
Create a notification for this product.
zitadel zitadel Affected: 2.46.0
    cpe:2.3:a:zitadel:zitadel:2.46.0:*:*:*:*:*:*:*
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-02T00:56:58.167Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "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"
          }
        ],
        "title": "CVE Program Container"
      },
      {
        "affected": [
          {
            "cpes": [
              "cpe:2.3:a:zitadel:zitadel:*:*:*:*:*:*:*:*"
            ],
            "defaultStatus": "unknown",
            "product": "zitadel",
            "vendor": "zitadel",
            "versions": [
              {
                "lessThan": "2.41.15",
                "status": "affected",
                "version": "0",
                "versionType": "custom"
              },
              {
                "lessThan": "2.42.15",
                "status": "affected",
                "version": "2.42.0",
                "versionType": "custom"
              },
              {
                "lessThan": "2.43.9",
                "status": "affected",
                "version": "2.43.0",
                "versionType": "custom"
              },
              {
                "lessThan": "2.44.3",
                "status": "affected",
                "version": "2.44.0",
                "versionType": "custom"
              },
              {
                "lessThan": "2.47.4",
                "status": "affected",
                "version": "2.47.0",
                "versionType": "custom"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:zitadel:zitadel:2.45.0:*:*:*:*:*:*:*"
            ],
            "defaultStatus": "unknown",
            "product": "zitadel",
            "vendor": "zitadel",
            "versions": [
              {
                "status": "affected",
                "version": "2.45.0"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:zitadel:zitadel:2.46.0:*:*:*:*:*:*:*"
            ],
            "defaultStatus": "unknown",
            "product": "zitadel",
            "vendor": "zitadel",
            "versions": [
              {
                "status": "affected",
                "version": "2.46.0"
              }
            ]
          }
        ],
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-28855",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-03-19T15:00:40.963408Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-08-13T14:19:08.789Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "product": "zitadel",
          "vendor": "zitadel",
          "versions": [
            {
              "status": "affected",
              "version": "\u003c 2.41.15"
            },
            {
              "status": "affected",
              "version": "\u003e= 2.42.0, \u003c 2.42.15"
            },
            {
              "status": "affected",
              "version": "\u003e= 2.43.0, \u003c 2.43.9"
            },
            {
              "status": "affected",
              "version": "\u003e= 2.44.0, \u003c 2.44.3"
            },
            {
              "status": "affected",
              "version": "= 2.45.0"
            },
            {
              "status": "affected",
              "version": "= 2.46.0"
            },
            {
              "status": "affected",
              "version": "\u003e= 2.47.0, \u003c 2.47.4"
            }
          ]
        }
      ],
      "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."
        }
      ],
      "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"
          }
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-20",
              "description": "CWE-20: Improper Input Validation",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2024-03-18T21:46:47.314Z",
        "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "shortName": "GitHub_M"
      },
      "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"
        }
      ],
      "source": {
        "advisory": "GHSA-hfrg-4jwr-jfpj",
        "discovery": "UNKNOWN"
      },
      "title": "ZITADEL vulnerable to improper HTML sanitization"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
    "assignerShortName": "GitHub_M",
    "cveId": "CVE-2024-28855",
    "datePublished": "2024-03-18T21:46:47.314Z",
    "dateReserved": "2024-03-11T22:45:07.686Z",
    "dateUpdated": "2024-08-13T14:19:08.789Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-02T00:56:58.167Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "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"
              }
            ],
            "title": "CVE Program Container"
          },
          {
            "affected": [
              {
                "cpes": [
                  "cpe:2.3:a:zitadel:zitadel:*:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unknown",
                "product": "zitadel",
                "vendor": "zitadel",
                "versions": [
                  {
                    "lessThan": "2.41.15",
                    "status": "affected",
                    "version": "0",
                    "versionType": "custom"
                  },
                  {
                    "lessThan": "2.42.15",
                    "status": "affected",
                    "version": "2.42.0",
                    "versionType": "custom"
                  },
                  {
                    "lessThan": "2.43.9",
                    "status": "affected",
                    "version": "2.43.0",
                    "versionType": "custom"
                  },
                  {
                    "lessThan": "2.44.3",
                    "status": "affected",
                    "version": "2.44.0",
                    "versionType": "custom"
                  },
                  {
                    "lessThan": "2.47.4",
                    "status": "affected",
                    "version": "2.47.0",
                    "versionType": "custom"
                  }
                ]
              },
              {
                "cpes": [
                  "cpe:2.3:a:zitadel:zitadel:2.45.0:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unknown",
                "product": "zitadel",
                "vendor": "zitadel",
                "versions": [
                  {
                    "status": "affected",
                    "version": "2.45.0"
                  }
                ]
              },
              {
                "cpes": [
                  "cpe:2.3:a:zitadel:zitadel:2.46.0:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unknown",
                "product": "zitadel",
                "vendor": "zitadel",
                "versions": [
                  {
                    "status": "affected",
                    "version": "2.46.0"
                  }
                ]
              }
            ],
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2024-28855",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "total"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2024-03-19T15:00:40.963408Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2024-08-13T14:18:59.878Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "zitadel",
              "vendor": "zitadel",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 2.41.15"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 2.42.0, \u003c 2.42.15"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 2.43.0, \u003c 2.43.9"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 2.44.0, \u003c 2.44.3"
                },
                {
                  "status": "affected",
                  "version": "= 2.45.0"
                },
                {
                  "status": "affected",
                  "version": "= 2.46.0"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 2.47.0, \u003c 2.47.4"
                }
              ]
            }
          ],
          "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."
            }
          ],
          "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"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-20",
                  "description": "CWE-20: Improper Input Validation",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2024-03-18T21:46:47.314Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "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"
            }
          ],
          "source": {
            "advisory": "GHSA-hfrg-4jwr-jfpj",
            "discovery": "UNKNOWN"
          },
          "title": "ZITADEL vulnerable to improper HTML sanitization"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2024-28855",
        "datePublished": "2024-03-18T21:46:47.314Z",
        "dateReserved": "2024-03-11T22:45:07.686Z",
        "dateUpdated": "2024-08-13T14:19:08.789Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.