{"id":"CVE-2023-29516","published":"2023-04-18T23:51:58Z","modified":"2025-02-05T20:34:10Z","title":"Code injection from view right on XWiki.AttachmentSelector in xwiki-platform","vendor":"xwiki","product":"xwiki-platform","tier":"core","eol":null,"affectedVersions":[{"vendor":"xwiki","product":"xwiki-platform","versions":["< 13.10.11",">= 14.0.0, < 14.4.8",">= 14.5.0, < 14.10.1"]}],"description":{"text":"XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Any user with view rights on `XWiki.AttachmentSelector` can execute arbitrary Groovy, Python or Velocity code in XWiki leading to full access to the XWiki installation. The root cause is improper escaping in the \"Cancel and return to page\" button. This page is installed by default. This vulnerability has been patched in XWiki 15.0-rc-1, 14.10.1, 14.4.8, and 13.10.11. There are no known workarounds for this vulnerability.\n","provenance":"source","from":"CVE.org"},"summary":null,"cvss":{"score":9.9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.65869,"percentile":0.99269,"date":"2026-10-30","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-3989-4c6x-725f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/aca1d677c58563bbe6e35c9e1c29fd8b12ebb996","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/XWIKI-20275","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-attachment-ui","vulnerableRanges":[">=2.0-rc-2, <13.10.11",">=14.0-rc-1, <14.4.8",">=14.5, <14.10.1"],"patched":["13.10.11","14.4.8","14.10.1"],"from":["GHSA-3989-4c6x-725f"],"provenance":"source"}],"advisories":[{"id":"GHSA-3989-4c6x-725f","url":"https://github.com/advisories/GHSA-3989-4c6x-725f","severity":"CRITICAL","ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-attachment-ui","vulnerableRanges":[">=2.0-rc-2, <13.10.11"],"patched":["13.10.11"],"provenance":"source","from":"GHSA"},{"id":"GHSA-3989-4c6x-725f","url":"https://github.com/advisories/GHSA-3989-4c6x-725f","severity":"CRITICAL","ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-attachment-ui","vulnerableRanges":[">=14.0-rc-1, <14.4.8"],"patched":["14.4.8"],"provenance":"source","from":"GHSA"},{"id":"GHSA-3989-4c6x-725f","url":"https://github.com/advisories/GHSA-3989-4c6x-725f","severity":"CRITICAL","ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-attachment-ui","vulnerableRanges":[">=14.5, <14.10.1"],"patched":["14.10.1"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2023-1172","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2023-1172","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":null,"exploitRefs":[],"flow":[],"timeline":[{"date":"2023-04-18","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2023-29516","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":null},"priority":{"score":26.8,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.85,"detail":"percentile 0.9927"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":0.0,"detail":"none found"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":6.93,"detail":"base score 9.9"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"familyId":"fam-xwiki-platform-cve-2023-29516","children":[{"from":"CVE-2023-29516","to":"CVE-2023-29519","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.platform:xwiki-platform-attachment-ui","fromFixed":"14.10.1","toFixed":"14.10.2","daysApart":0},{"kind":"same-code","provenance":"machine","files":["xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-ui/src/main/resources/XWiki/AttachmentSelector.xml"],"commits":["https://github.com/xwiki/xwiki-platform/commit/aca1d677c58563bbe6e35c9e1c29fd8b12ebb996","https://github.com/xwiki/xwiki-platform/commit/5e8725b4272cd3e5be09d3ca84273be2da6869c1"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2022-36097","published":"2022-09-08","fixed":"14.4-rc-1","kev":false},{"cve":"CVE-2022-41928","published":"2022-11-23","fixed":"14.4.2","kev":false,"link":{"from":"CVE-2022-41928","to":"CVE-2023-29516","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.platform:xwiki-platform-attachment-ui","fromFixed":"13.10.7","toFixed":"13.10.11","daysApart":146},{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.platform:xwiki-platform-attachment-ui","fromFixed":"14.4.2","toFixed":"14.4.8","daysApart":146}]}},{"cve":"CVE-2023-29516","published":"2023-04-18","fixed":"14.10.1","kev":false},{"cve":"CVE-2023-29519","published":"2023-04-18","fixed":"14.10.2","kev":false}],"package":"Maven:org.xwiki.platform:xwiki-platform-attachment-ui"}}