# CVE-2022-41931: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in xwiki-platform-icon-ui

- 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.56%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-11-21T22:36:33.000Z
- Modified: 2026-06-17T05:04:05.153Z
- Also known as: GHSA-5j7g-cf6r-g2h7
- Weaknesses: CWE-95
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

xwiki-platform-icon-ui is vulnerable to Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection'). Any user with view rights on commonly accessible documents including the icon picker macro can execute arbitrary Groovy, Python or Velocity code in XWiki due to improper neutralization of the macro parameters of the icon picker macro. The problem has been patched in XWiki 13.10.7, 14.5 and 14.4.2. Workarounds: The [patch](https://github.com/xwiki/xwiki-platform/commit/47eb8a5fba550f477944eb6da8ca91b87eaf1d01) can be manually applied by editing `IconThemesCode.IconPickerMacro` in the object editor. The whole document can also be replaced by the current version by importing the document from the XAR archive of a fixed version as the only changes to the document have been security fixes and small formatting changes.

(As written by CVE List.)

## Affected

- xwiki xwiki-platform: >= 6.4-milestone-2, < 13.10.7; >= 14.0.0, < 14.4.2
- org.xwiki.platform:xwiki-platform-icon-ui (Maven): from 6.4-milestone-2 before 13.10.7; from 14.0.0 before 14.4.2
- xwiki xwiki: from >6.4 before 13.10.7; from 14.0.0 before 14.4.2; 6.4; 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-5j7g-cf6r-g2h7> (exploit, patch, third-party-advisory, web)
- <https://jira.xwiki.org/browse/XWIKI-19805> (exploit, issue-tracking, patch, vendor-advisory, web)
- <https://github.com/xwiki/xwiki-platform/commit/47eb8a5fba550f477944eb6da8ca91b87eaf1d01> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-41931> (advisory)
- <https://github.com/xwiki/xwiki-platform> (package)

## Sources

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

---

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