Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.xwiki.commons/xwiki-commons-velocity
  4. ›
  5. CVE-2024-31996

CVE-2024-31996: XWiki Commons missing escaping of `{` in Velocity escapetool allows remote code execution

April 10, 2024

The HTML escaping of escaping tool that is used in XWiki doesn’t escape {, which, when used in certain places, allows XWiki syntax injection and thereby remote code execution.

References

  • github.com/advisories/GHSA-hf43-47q4-fhq5
  • github.com/xwiki/xwiki-commons
  • github.com/xwiki/xwiki-commons/commit/b0805160ec7b01ee12417e79cb384e60ae4817aa
  • github.com/xwiki/xwiki-commons/commit/b94142e2a66ec32e89eacab67c3da8d91f5ef93a
  • github.com/xwiki/xwiki-commons/commit/ed7ff515a2436a1c6dcbd0c6ca0c41e434d58915
  • github.com/xwiki/xwiki-commons/security/advisories/GHSA-hf43-47q4-fhq5
  • jira.xwiki.org/browse/XCOMMONS-2828
  • jira.xwiki.org/browse/XWIKI-21438
  • nvd.nist.gov/vuln/detail/CVE-2024-31996

Code Behaviors & Features

Detect and mitigate CVE-2024-31996 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 15.0-rc-1 before 15.5.4, all versions starting from 15.6-rc-1 before 15.9-rc-1, all versions starting from 3.0.1 before 14.10.19

Fixed versions

  • 14.10.19
  • 15.5.4
  • 15.9-rc-1

Solution

Upgrade to versions 14.10.19, 15.5.4, 15.9-rc-1 or above.

Impact 10 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Source file

maven/org.xwiki.commons/xwiki-commons-velocity/CVE-2024-31996.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:00 +0000.