Skip to content
Heist/ feed
Back to feed
Critical

Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in xwiki-platform-icon-ui

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-41931
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 10:28 UTC · Revision 1

Source evidence

Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in xwiki-platform-icon-ui

core-osv · Original source

Published 23 Nov 2022, 00:00 UTC

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.

osv:CVE-2022-41931
Complete source record
{
  "id": "bae47dbef7d5f83dcd7020f0064e2116b108a4c37a874b7f4a6943ff4d2e873d",
  "url": "https://osv.dev/vulnerability/CVE-2022-41931",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in xwiki-platform-icon-ui",
    "summary": "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.",
    "evidence": "osv:CVE-2022-41931",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2022-41931",
      "aliases": [
        "CVE-2022-41931",
        "GHSA-5j7g-cf6r-g2h7"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/xwiki/xwiki-commons",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "ea813db28a986642d4862cef18015f0e7e8b7e29"
                },
                {
                  "fixed": "1626dc5a57e7bced8ee3864d9f47703f62f6e146"
                },
                {
                  "introduced": "07c43ffe0d39bfc45a647e0d4ef7f9f79b92db73"
                },
                {
                  "last_affected": "a36ffd8b17ef0eddcbd9a6f3ccc5cf82abb28754"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "13.10.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "14.0.0"
                      },
                      {
                        "fixed": "14.4.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:6.4:milestone2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "6.4-milestone2"
                      },
                      {
                        "last_affected": "6.4-milestone2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:6.4:milestone3:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "6.4-milestone3"
                      },
                      {
                        "last_affected": "6.4-milestone3"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:14.4.3:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "14.4.3"
                      },
                      {
                        "last_affected": "14.4.3"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:14.4.4:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "14.4.4"
                      },
                      {
                        "last_affected": "14.4.4"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            },
            {
              "repo": "https://github.com/xwiki/xwiki-platform",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "950f435a66fb9fe437d27df8a6aaf20e01322e1f"
                },
                {
                  "fixed": "cc3304eb18e40b836f37b9ee12ffa15c9f99285a"
                },
                {
                  "introduced": "3fc05c501f3240804459672a2143ff2d15e46e48"
                },
                {
                  "fixed": "47eb8a5fba550f477944eb6da8ca91b87eaf1d01"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "13.10.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "14.0.0"
                      },
                      {
                        "fixed": "14.4.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:6.4:milestone2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "6.4-milestone2"
                      },
                      {
                        "last_affected": "6.4-milestone2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:6.4:milestone3:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "6.4-milestone3"
                      },
                      {
                        "last_affected": "6.4-milestone3"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:14.4.3:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "14.4.3"
                      },
                      {
                        "last_affected": "14.4.3"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:14.4.4:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "14.4.4"
                      },
                      {
                        "last_affected": "14.4.4"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "47eb8a5fba550f477944eb6da8ca91b87eaf1d01"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "14.4.3",
            "14.4.4",
            "6.4-milestone2",
            "6.4-milestone3",
            "xwiki-commons-14.4.1",
            "xwiki-commons-13.10.6",
            "xwiki-commons-14.4",
            "xwiki-commons-14.4-rc-1",
            "xwiki-commons-13.10.5",
            "xwiki-commons-13.10.4",
            "xwiki-commons-13.10.3",
            "xwiki-commons-13.10.2",
            "xwiki-commons-13.10.1",
            "xwiki-commons-13.10",
            "xwiki-commons-13.10-rc-1",
            "xwiki-commons-8.3-milestone-2",
            "xwiki-commons-8.3-milestone-1",
            "xwiki-commons-8.2-milestone-2",
            "xwiki-commons-8.2-milestone-1",
            "xwiki-commons-8.1-milestone-2",
            "xwiki-commons-8.1-milestone-1",
            "xwiki-commons-8.0-milestone-2",
            "xwiki-commons-8.0-milestone-1",
            "xwiki-platform-14.4.1",
            "xwiki-platform-13.10.6",
            "xwiki-platform-14.4",
            "xwiki-platform-14.4-rc-1",
            "xwiki-platform-13.10.5",
            "xwiki-platform-13.10.4",
            "xwiki-platform-13.10.3",
            "xwiki-platform-13.10.2",
            "xwiki-platform-13.10.1",
            "xwiki-platform-13.10",
            "xwiki-platform-13.10-rc-1",
            "xwiki-platform-9.9-rc-2",
            "xwiki-platform-8.3-milestone-1",
            "xwiki-platform-8.2-milestone-2",
            "xwiki-platform-8.2-milestone-1",
            "xwiki-platform-8.1-milestone-2",
            "xwiki-platform-8.1-milestone-1",
            "xwiki-platform-8.0-milestone-2",
            "xwiki-platform-8.0-milestone-1",
            "xwiki-platform-7.4-milestone-2",
            "xwiki-platform-7.4-milestone-1",
            "xwiki-platform-7.3-milestone-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-41931.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.371951966Z",
      "provider": "osv",
      "references": [
        "https://jira.xwiki.org/browse/XWIKI-19805",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41931.json",
        "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-5j7g-cf6r-g2h7",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-41931",
        "https://github.com/xwiki/xwiki-platform/commit/47eb8a5fba550f477944eb6da8ca91b87eaf1d01"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-95"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41931.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-41931",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 519002,
  "published_at": "2022-11-23T00:00:00+00:00"
}