{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2024-29891",
        "ASSIGNER": "security-advisories@github.com",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "ZITADEL users can upload their own avatar image and various image types are allowed. Due to a missing check, an attacker could upload HTML and pretend it is an image to gain access to the victim's account in certain scenarios. A possible victim would need to directly open the supposed image in the browser, where a session in ZITADEL needs to be active for this exploit to work. The exploit could only be reproduced if the victim was using Firefox. Chrome, Safari as well as Edge did not execute the code. This vulnerability is fixed in 2.48.3, 2.47.8, 2.46.5, 2.45.5, 2.44.7, 2.43.11, and 2.42.17."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-434: Unrestricted Upload of File with Dangerous Type",
                        "cweId": "CWE-434"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "zitadel",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "zitadel",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "=",
                                            "version_value": "< 2.42.17"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": ">= 2.43.0, < 2.43.11"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": ">= 2.44.0, < 2.44.7"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": ">= 2.45.0, < 2.45.5"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": ">= 2.46.0, < 2.46.5"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": ">= 2.47.0, < 2.47.8"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": ">= 2.48.0, < 2.48.3"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://github.com/zitadel/zitadel/security/advisories/GHSA-hr5w-cwwq-2v4m",
                "refsource": "MISC",
                "name": "https://github.com/zitadel/zitadel/security/advisories/GHSA-hr5w-cwwq-2v4m"
            },
            {
                "url": "https://github.com/zitadel/zitadel/releases/tag/v2.42.17",
                "refsource": "MISC",
                "name": "https://github.com/zitadel/zitadel/releases/tag/v2.42.17"
            },
            {
                "url": "https://github.com/zitadel/zitadel/releases/tag/v2.43.11",
                "refsource": "MISC",
                "name": "https://github.com/zitadel/zitadel/releases/tag/v2.43.11"
            },
            {
                "url": "https://github.com/zitadel/zitadel/releases/tag/v2.44.7",
                "refsource": "MISC",
                "name": "https://github.com/zitadel/zitadel/releases/tag/v2.44.7"
            },
            {
                "url": "https://github.com/zitadel/zitadel/releases/tag/v2.45.5",
                "refsource": "MISC",
                "name": "https://github.com/zitadel/zitadel/releases/tag/v2.45.5"
            },
            {
                "url": "https://github.com/zitadel/zitadel/releases/tag/v2.46.5",
                "refsource": "MISC",
                "name": "https://github.com/zitadel/zitadel/releases/tag/v2.46.5"
            },
            {
                "url": "https://github.com/zitadel/zitadel/releases/tag/v2.47.8",
                "refsource": "MISC",
                "name": "https://github.com/zitadel/zitadel/releases/tag/v2.47.8"
            },
            {
                "url": "https://github.com/zitadel/zitadel/releases/tag/v2.48.3",
                "refsource": "MISC",
                "name": "https://github.com/zitadel/zitadel/releases/tag/v2.48.3"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-hr5w-cwwq-2v4m",
        "discovery": "UNKNOWN"
    },
    "impact": {
        "cvss": [
            {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "NONE",
                "baseScore": 8.7,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "CHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N",
                "version": "3.1"
            }
        ]
    }
}