# CVE-2022-41928: XWiki Platform vulnerable to Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in AttachmentSelector.xml

- Severity: Critical 9.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.16%, higher than 68% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-11-21T22:34:57.000Z
- Modified: 2026-06-17T05:04:04.810Z
- Also known as: GHSA-9hqh-fmhg-vq2j
- Weaknesses: CWE-95
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

XWiki Platform vulnerable to Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in AttachmentSelector.xml. The issue can also be reproduced by inserting the dangerous payload in the `height` or `alt` macro properties. This has been patched in versions 13.10.7, 14.4.2, and 14.5. The issue can be fixed on a running wiki by updating `XWiki.AttachmentSelector` with the versions below: - 14.5-rc-1+: https://github.com/xwiki/xwiki-platform/commit/eb15147adf94bddb92626f862c1710d45bcd64a7#diff-e1513599ab698991f6cbba55d38f3f464432ced8d137a668b1f7618c7e747e23 - 14.4.2+: https://github.com/xwiki/xwiki-platform/commit/c02f8eb1f3c953d124f2c097021536f8bc00fa8d#diff-e1513599ab698991f6cbba55d38f3f464432ced8d137a668b1f7618c7e747e23 - 13.10.7+: https://github.com/xwiki/xwiki-platform/commit/efd0df0468d46149ba68b66660b93f31b6318515#diff-e1513599ab698991f6cbba55d38f3f464432ced8d137a668b1f7618c7e747e23

(As written by CVE List.)

## Affected

- xwiki xwiki-platform: >= 5.0-milestone-1, < 13.10.7; >= 14.0.0, < 14.4.2
- org.xwiki.platform:xwiki-platform-attachment-ui (Maven): from 5.0-milestone-1 before 13.10.7; from 14.0.0 before 14.4.2
- xwiki xwiki: from >5.0 before 13.10.7; from 14.0.0 before 14.4.2; 5.0; 14.4.3; 14.4.4

## Every score

- GitHub_M: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9hqh-fmhg-vq2j> (exploit, patch, third-party-advisory, web)
- <https://jira.xwiki.org/browse/XWIKI-19800> (exploit, issue-tracking, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-41928> (advisory)
- <https://github.com/xwiki/xwiki-platform> (package)

## Sources

- CVE List: [CVE-2022-41928](https://www.cve.org/CVERecord?id=CVE-2022-41928), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-9hqh-fmhg-vq2j](https://github.com/advisories/GHSA-9hqh-fmhg-vq2j), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-41928](https://nvd.nist.gov/vuln/detail/CVE-2022-41928), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-41928 · Whole record: https://cve.day/CVE-2022-41928.json · Rebuilt by cve.day 2026-11-25T22:58:16.880Z
