{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-37900",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2024-06-10T19:54:41.362Z",
        "datePublished": "2024-07-31T15:15:31.013Z",
        "dateUpdated": "2024-08-13T13:37:13.581Z"
    },
    "containers": {
        "cna": {
            "title": "XWiki Platform vulnerable to Cross-site Scripting through attachment filename in uploader",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-96",
                            "lang": "en",
                            "description": "CWE-96: Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "HIGH",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "NONE",
                        "baseScore": 6.4,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "LOW",
                        "scope": "UNCHANGED",
                        "userInteraction": "REQUIRED",
                        "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-wf3x-jccf-5g5g",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-wf3x-jccf-5g5g"
                },
                {
                    "name": "https://github.com/xwiki/xwiki-platform/commit/6cdd69d31d6bf3caa7f40ec55eb317e4e528ad28",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/xwiki/xwiki-platform/commit/6cdd69d31d6bf3caa7f40ec55eb317e4e528ad28"
                },
                {
                    "name": "https://github.com/xwiki/xwiki-platform/commit/8b8a2d80529b9a9c038014c1eb6c2adc08069dfd",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/xwiki/xwiki-platform/commit/8b8a2d80529b9a9c038014c1eb6c2adc08069dfd"
                },
                {
                    "name": "https://github.com/xwiki/xwiki-platform/commit/910a5018a50039e8b24556573dfe342f143ef949",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/xwiki/xwiki-platform/commit/910a5018a50039e8b24556573dfe342f143ef949"
                },
                {
                    "name": "https://github.com/xwiki/xwiki-platform/commit/9df46f8e5313af46f93bccd1ebc682e28126573f",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/xwiki/xwiki-platform/commit/9df46f8e5313af46f93bccd1ebc682e28126573f"
                },
                {
                    "name": "https://jira.xwiki.org/browse/XWIKI-19602",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://jira.xwiki.org/browse/XWIKI-19602"
                },
                {
                    "name": "https://jira.xwiki.org/browse/XWIKI-19611",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://jira.xwiki.org/browse/XWIKI-19611"
                },
                {
                    "name": "https://jira.xwiki.org/browse/XWIKI-21769",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://jira.xwiki.org/browse/XWIKI-21769"
                }
            ],
            "affected": [
                {
                    "vendor": "xwiki",
                    "product": "xwiki-platform",
                    "versions": [
                        {
                            "version": ">= 4.2-milestone-3, < 14.10.21",
                            "status": "affected"
                        },
                        {
                            "version": ">= 15.0-rc-1, < 15.5.5",
                            "status": "affected"
                        },
                        {
                            "version": ">= 15.6-rc-1, < 15.10.6",
                            "status": "affected"
                        },
                        {
                            "version": ">= 16.0.0-rc-1, < 16.0.0",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2024-07-31T15:15:31.013Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. When uploading an attachment with a malicious filename, malicious JavaScript code could be executed. This requires a social engineering attack to get the victim into uploading a file with a malicious name. The malicious code is solely executed during the upload and affects only the user uploading the attachment. While this allows performing actions in the name of that user, it seems unlikely that a user wouldn't notice the malicious filename while uploading the attachment. This has been patched in XWiki 14.10.21, 15.5.5, 15.10.6 and 16.0.0."
                }
            ],
            "source": {
                "advisory": "GHSA-wf3x-jccf-5g5g",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "affected": [
                    {
                        "vendor": "xwiki",
                        "product": "xwiki",
                        "cpes": [
                            "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "4.2-milestone-3",
                                "status": "affected",
                                "lessThan": "14.10.21",
                                "versionType": "custom"
                            },
                            {
                                "version": "15.0-rc-1",
                                "status": "affected",
                                "lessThan": "15.5.5",
                                "versionType": "custom"
                            },
                            {
                                "version": "15.6-rc",
                                "status": "affected",
                                "lessThan": "15.10.6",
                                "versionType": "custom"
                            },
                            {
                                "version": "16.0.0-rc-1",
                                "status": "affected",
                                "lessThan": "16.0.0",
                                "versionType": "custom"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-08-01T14:43:57.149734Z",
                                "id": "CVE-2024-37900",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "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-13T13:37:13.581Z"
                }
            }
        ]
    }
}