Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.xwiki.platform/xwiki-platform-skin-ui
  4. ›
  5. CVE-2023-37462

CVE-2023-37462: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

July 14, 2023

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Improper escaping in the document SkinsCode.XWikiSkinsSheet leads to an injection vector from view right on that document to programming rights, or in other words, it is possible to execute arbitrary script macros including Groovy and Python macros that allow remote code execution including unrestricted read and write access to all wiki contents. The attack works by opening a non-existing page with a name crafted to contain a dangerous payload. It is possible to check if an existing installation is vulnerable. See the linked GHSA for instructions on testing an installation. This issue has been patched in XWiki 14.4.8, 14.10.4 and 15.0-rc-1. Users are advised to upgrade. The fix commit d9c88ddc can also be applied manually to the impacted document SkinsCode.XWikiSkinsSheet and users unable to upgrade are advised to manually patch their installations.

References

  • github.com/advisories/GHSA-h4vp-69r8-gvjg
  • github.com/xwiki/xwiki-platform/commit/d9c88ddc4c0c78fa534bd33237e95dea66003d29
  • github.com/xwiki/xwiki-platform/security/advisories/GHSA-h4vp-69r8-gvjg
  • jira.xwiki.org/browse/XWIKI-20457
  • nvd.nist.gov/vuln/detail/CVE-2023-37462

Code Behaviors & Features

Detect and mitigate CVE-2023-37462 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 7.0-rc-1 before 14.4.8, all versions starting from 14.5 before 14.10.4

Fixed versions

  • 14.4.8
  • 14.10.4

Solution

Upgrade to versions 14.4.8, 14.10.4 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Source file

maven/org.xwiki.platform/xwiki-platform-skin-ui/CVE-2023-37462.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:19 +0000.