cve.bz

CVE-2022-41931 xwiki xwiki: Eval Injection

8.8 highExploit referenceEPSS 1.6%Fix available

High (8.8) in xwiki xwiki. EPSS 1.6% estimated probability of exploitation activity in the next 30 days. Fixed in org.xwiki.platform:xwiki-platform-icon-ui 13.10.7, 14.4.2.

On this page
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.

Severity

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
EPSS
1.6% (up from 1.3% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 76th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2025-04-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code (Eval Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-41931 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-41931?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-41931?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-41931 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
xwiki:xwikiafter 6.4 before 13.10.7
xwiki:xwikifrom 14.0.0 before 14.4.2
xwiki:xwiki6.4:milestone2
xwiki:xwiki6.4:milestone3
xwiki:xwiki14.4.3
xwiki:xwiki14.4.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5j7g-cf6r-g2h7Mavenorg.xwiki.platform:xwiki-platform-icon-ui>=6.4-milestone-2 <13.10.713.10.7
GHSA-5j7g-cf6r-g2h7Mavenorg.xwiki.platform:xwiki-platform-icon-ui>=14.0.0 <14.4.214.4.2

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON