{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-31996",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2024-04-08T13:48:37.491Z",
        "datePublished": "2024-04-10T20:46:19.929Z",
        "dateUpdated": "2024-08-02T01:59:50.900Z"
    },
    "containers": {
        "cna": {
            "title": "XWiki Commons missing escaping of `{` in Velocity escapetool allows remote code execution",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-95",
                            "lang": "en",
                            "description": "CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "HIGH",
                        "baseScore": 10,
                        "baseSeverity": "CRITICAL",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "NONE",
                        "scope": "CHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-hf43-47q4-fhq5",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-hf43-47q4-fhq5"
                },
                {
                    "name": "https://github.com/xwiki/xwiki-commons/commit/b0805160ec7b01ee12417e79cb384e60ae4817aa",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/xwiki/xwiki-commons/commit/b0805160ec7b01ee12417e79cb384e60ae4817aa"
                },
                {
                    "name": "https://github.com/xwiki/xwiki-commons/commit/b94142e2a66ec32e89eacab67c3da8d91f5ef93a",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/xwiki/xwiki-commons/commit/b94142e2a66ec32e89eacab67c3da8d91f5ef93a"
                },
                {
                    "name": "https://github.com/xwiki/xwiki-commons/commit/ed7ff515a2436a1c6dcbd0c6ca0c41e434d58915",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/xwiki/xwiki-commons/commit/ed7ff515a2436a1c6dcbd0c6ca0c41e434d58915"
                },
                {
                    "name": "https://jira.xwiki.org/browse/XCOMMONS-2828",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://jira.xwiki.org/browse/XCOMMONS-2828"
                },
                {
                    "name": "https://jira.xwiki.org/browse/XWIKI-21438",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://jira.xwiki.org/browse/XWIKI-21438"
                }
            ],
            "affected": [
                {
                    "vendor": "xwiki",
                    "product": "xwiki-commons",
                    "versions": [
                        {
                            "version": ">= 3.0.1, < 14.10.19",
                            "status": "affected"
                        },
                        {
                            "version": ">= 15.0-rc-1, < 15.5.4",
                            "status": "affected"
                        },
                        {
                            "version": ">= 15.6-rc-1, < 15.9-rc-1",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2024-04-10T20:46:19.929Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "XWiki Platform is a generic wiki platform. Starting in version 3.0.1 and prior to versions 4.10.19, 15.5.4, and 15.10-rc-1, the HTML escaping of escaping tool that is used in XWiki doesn't escape `{`, which, when used in certain places, allows XWiki syntax injection and thereby remote code execution. The vulnerability has been fixed in XWiki 14.10.19, 15.5.5, and 15.9 RC1. Apart from upgrading, there is no generic workaround. However, replacing `$escapetool.html` by `$escapetool.xml` in XWiki documents fixes the vulnerability. In a standard XWiki installation, the maintainers are only aware of the document `Panels.PanelLayoutUpdate` that exposes this vulnerability, patching this document is thus a workaround. Any extension could expose this vulnerability and might thus require patching, too."
                }
            ],
            "source": {
                "advisory": "GHSA-hf43-47q4-fhq5",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "title": "CISA ADP Vulnrichment",
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2024-31996",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "yes"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2024-06-03T14:18:52.690268Z"
                            }
                        }
                    }
                ],
                "affected": [
                    {
                        "cpes": [
                            "cpe:2.3:a:xwiki:commons:3.0.1:*:*:*:*:*:*:*"
                        ],
                        "vendor": "xwiki",
                        "product": "commons",
                        "versions": [
                            {
                                "status": "affected",
                                "version": "3.0.1",
                                "lessThan": "14.10.19",
                                "versionType": "custom"
                            },
                            {
                                "status": "affected",
                                "version": "15.0-rc-1",
                                "lessThan": "15.5.4",
                                "versionType": "custom"
                            },
                            {
                                "status": "affected",
                                "version": "15.6-rc-1",
                                "lessThan": "15.9-rc-1",
                                "versionType": "custom"
                            }
                        ],
                        "defaultStatus": "unknown"
                    }
                ],
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-06-04T17:36:19.539Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T01:59:50.900Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-hf43-47q4-fhq5",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-hf43-47q4-fhq5"
                    },
                    {
                        "name": "https://github.com/xwiki/xwiki-commons/commit/b0805160ec7b01ee12417e79cb384e60ae4817aa",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/xwiki/xwiki-commons/commit/b0805160ec7b01ee12417e79cb384e60ae4817aa"
                    },
                    {
                        "name": "https://github.com/xwiki/xwiki-commons/commit/b94142e2a66ec32e89eacab67c3da8d91f5ef93a",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/xwiki/xwiki-commons/commit/b94142e2a66ec32e89eacab67c3da8d91f5ef93a"
                    },
                    {
                        "name": "https://github.com/xwiki/xwiki-commons/commit/ed7ff515a2436a1c6dcbd0c6ca0c41e434d58915",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/xwiki/xwiki-commons/commit/ed7ff515a2436a1c6dcbd0c6ca0c41e434d58915"
                    },
                    {
                        "name": "https://jira.xwiki.org/browse/XCOMMONS-2828",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://jira.xwiki.org/browse/XCOMMONS-2828"
                    },
                    {
                        "name": "https://jira.xwiki.org/browse/XWIKI-21438",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://jira.xwiki.org/browse/XWIKI-21438"
                    }
                ]
            }
        ]
    }
}