{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-31981","id":"CVE-2024-31981","title":"XWiki Platform: Privilege escalation (PR) from user registration through PDFClass","description":"XWiki Platform is a generic wiki platform. Starting in version 3.0.1 and prior to versions 4.10.20, 15.5.4, and 15.10-rc-1, remote code execution is possible via PDF export templates. This vulnerability has been patched in XWiki 14.10.20, 15.5.4 and 15.10-rc-1. If PDF templates are not typically used on the instance, an administrator can create the document `XWiki.PDFClass` and block its edition, ","descriptionLong":"XWiki Platform is a generic wiki platform. Starting in version 3.0.1 and prior to versions 4.10.20, 15.5.4, and 15.10-rc-1, remote code execution is possible via PDF export templates. This vulnerability has been patched in XWiki 14.10.20, 15.5.4 and 15.10-rc-1. If PDF templates are not typically used on the instance, an administrator can create the document `XWiki.PDFClass` and block its edition, after making sure that it does not contain a `style` attribute. Otherwise, there are no known workarounds aside from upgrading.","published":"2024-04-10T19:22:57.494Z","updated":"2026-10-28T10:43:46.814449825Z","reserved":"2024-04-08T13:48:37.489Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"github.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["xwiki-platform"],"affectedProducts":[{"vendor":"xwiki","product":"xwiki-platform","defaultStatus":null,"versions":[{"version":">= 3.0.1, < 14.10.20","status":"affected"},{"version":">= 15.0-rc-1, < 15.5.4","status":"affected"},{"version":">= 15.6-rc-1, < 15.10-rc-1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-oldcore","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-oldcore","ranges":[">=3.0.1 <14.10.20",">=15.0-rc-1 <15.5.4",">=15.6-rc-1 <15.10-rc-1"],"fixed":["14.10.20","15.5.4","15.10-rc-1"],"advisory":"GHSA-vxwr-wpjv-qjq7"}],"cwes":["CWE-862"],"aliases":["GHSA-vxwr-wpjv-qjq7"],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-vxwr-wpjv-qjq7","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/480186f9d2fca880513da8bc5a609674d106cbd3","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/a4ad14d9c1605a5ab957237e505ebbb29f5b9d73","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/d28e21a670c69880b951e415dd2ddd69d273eae9","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://jira.xwiki.org/browse/XWIKI-21337","tags":["x_refsource_MISC","x_transferred","Exploit","Vendor Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31981.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31981","tags":["advisory"]},{"url":"https://github.com/xwiki/xwiki-platform","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.01447,"epssPercentile":0.73875,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-31981","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31981","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-31981","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-vxwr-wpjv-qjq7","ok":true,"note":"GHSA-vxwr-wpjv-qjq7"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-31981","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}