Skip to content
Heist/ feed
Back to feed
Critical

XWiki Platform CSRF remote code execution through the realtime HTML Converter API

Type: advisorySources: OSV

XWiki Platform is a generic wiki platform. Starting in version 13.9-rc-1 and prior to versions 4.10.19, 15.5.4, and 15.10-rc-1, when the realtime editor is installed in XWiki, it allows arbitrary remote code execution with the interaction of an admin user with programming right. More precisely, by getting an admin user to either visit a crafted URL or to view an image with this URL that could be in a comment, the attacker can get the admin to execute arbitrary XWiki syntax including scripting macros with Groovy or Python code. This compromises the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been patched in XWiki 14.10.19, 15.5.4 and 15.9. As a workaround, one may update `RTFrontend.ConvertHTML` manually with the patch. This will, however, break some synchronization processes in the realtime editor, so upgrading should be the preferred way on installations where this editor is used.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-31988
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 01:32 UTC · Revision 1

Source evidence

XWiki Platform CSRF remote code execution through the realtime HTML Converter API

core-osv · Original source

Published 10 Apr 2024, 20:40 UTC

XWiki Platform is a generic wiki platform. Starting in version 13.9-rc-1 and prior to versions 4.10.19, 15.5.4, and 15.10-rc-1, when the realtime editor is installed in XWiki, it allows arbitrary remote code execution with the interaction of an admin user with programming right. More precisely, by getting an admin user to either visit a crafted URL or to view an image with this URL that could be in a comment, the attacker can get the admin to execute arbitrary XWiki syntax including scripting macros with Groovy or Python code. This compromises the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been patched in XWiki 14.10.19, 15.5.4 and 15.9. As a workaround, one may update `RTFrontend.ConvertHTML` manually with the patch. This will, however, break some synchronization processes in the realtime editor, so upgrading should be the preferred way on installations where this editor is used.

osv:CVE-2024-31988
Complete source record
{
  "id": "9b10bf37d03d46af1536f77074925aeb6021faabc05f31d4299db31a95550186",
  "url": "https://osv.dev/vulnerability/CVE-2024-31988",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "XWiki Platform CSRF remote code execution through the realtime HTML Converter API",
    "summary": "XWiki Platform is a generic wiki platform. Starting in version 13.9-rc-1 and prior to versions 4.10.19, 15.5.4, and 15.10-rc-1, when the realtime editor is installed in XWiki, it allows arbitrary remote code execution with the interaction of an admin user with programming right. More precisely, by getting an admin user to either visit a crafted URL or to view an image with this URL that could be in a comment, the attacker can get the admin to execute arbitrary XWiki syntax including scripting macros with Groovy or Python code. This compromises the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been patched in XWiki 14.10.19, 15.5.4 and 15.9. As a workaround, one may update `RTFrontend.ConvertHTML` manually with the patch. This will, however, break some synchronization processes in the realtime editor, so upgrading should be the preferred way on installations where this editor is used.",
    "evidence": "osv:CVE-2024-31988",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2024-31988",
      "aliases": [
        "CVE-2024-31988",
        "GHSA-r5vh-gc3r-r24w"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/xwiki/xwiki-commons",
              "type": "GIT",
              "events": [
                {
                  "introduced": "fdc1d93ce4d83acb75c4a768f76c554cb9772ba5"
                },
                {
                  "fixed": "4810ba1812450ef533c882c5abff598676b1be18"
                },
                {
                  "introduced": "fdba4ca1398766e912f7888af5bdefbeef60d8b0"
                },
                {
                  "fixed": "5596ee59ff8035c3141aaeddc6e66f119c30574a"
                },
                {
                  "introduced": "1e0e26611ad39442be884e876d902441a51fd34a"
                },
                {
                  "fixed": "943b4a6a0a0e2b9b94f6f184e823f82b262ea8d3"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "13.9"
                      },
                      {
                        "fixed": "14.10.19"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "15.0"
                      },
                      {
                        "fixed": "15.5.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "15.6"
                      },
                      {
                        "fixed": "15.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            },
            {
              "repo": "https://github.com/xwiki/xwiki-platform",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c7632542f15ec0e4c8de414b3f0b671dd7df988d"
                },
                {
                  "fixed": "9d9df1a75094bc677015c7f8321a7e2081662aae"
                },
                {
                  "introduced": "96b4a230ee41ef74268c9720722f6473c705583d"
                },
                {
                  "fixed": "0e37972524b5a68c44734112f38a48e746b0909e"
                },
                {
                  "introduced": "cb249a1a7570161ad6672449fbe89485fb489e95"
                },
                {
                  "fixed": "7a8f9b1236bc9271b607fb92e700377e37f67cf2"
                },
                {
                  "fixed": "4896712ee6483da623f131be2e618f1f2b79cb8d"
                },
                {
                  "fixed": "9f8cc88497418750b09ce9fde5d67d840f038fbf"
                },
                {
                  "fixed": "d88da4572fb7d4f95e1f54bb0cce33fce3df08d9"
                },
                {
                  "fixed": "d9f5043da289ff106f08e23576746fd8baf98794"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "13.9"
                      },
                      {
                        "fixed": "14.10.19"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "15.0"
                      },
                      {
                        "fixed": "15.5.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "15.6"
                      },
                      {
                        "fixed": "15.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "4896712ee6483da623f131be2e618f1f2b79cb8d"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "9f8cc88497418750b09ce9fde5d67d840f038fbf"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "d88da4572fb7d4f95e1f54bb0cce33fce3df08d9"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "d9f5043da289ff106f08e23576746fd8baf98794"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31988.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.973292079Z",
      "provider": "osv",
      "references": [
        "https://jira.xwiki.org/browse/XWIKI-21424",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31988.json",
        "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-r5vh-gc3r-r24w",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-31988",
        "https://github.com/xwiki/xwiki-platform/commit/4896712ee6483da623f131be2e618f1f2b79cb8d",
        "https://github.com/xwiki/xwiki-platform/commit/9f8cc88497418750b09ce9fde5d67d840f038fbf",
        "https://github.com/xwiki/xwiki-platform/commit/d88da4572fb7d4f95e1f54bb0cce33fce3df08d9",
        "https://github.com/xwiki/xwiki-platform/commit/d9f5043da289ff106f08e23576746fd8baf98794"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-352"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31988.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-31988",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 491644,
  "published_at": "2024-04-10T20:40:36.954+00:00"
}