Skip to content
Heist/ feed
Back to feed
Medium

XWiki Platform vulnerable to document deletion and overwrite from edit

Type: advisorySources: OSV

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. When a user has view but not edit right on a page in XWiki, that user can delete the page and replace it by a page with new content without having delete right. The previous version of the page is moved into the recycle bin and can be restored from there by an admin. As the user is recorded as deleter, the user would in theory also be able to view the deleted content, but this is not directly possible as rights of the previous version are transferred to the new page and thus the user still doesn't have view right on the page. It therefore doesn't seem to be possible to exploit this to gain any rights. This has been patched in XWiki 14.10.21, 15.5.5 and 15.10.6 by cancelling save operations by users when a new document shall be saved despite the document's existing already.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-37898
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 02:28 UTC · Revision 1

Source evidence

XWiki Platform vulnerable to document deletion and overwrite from edit

core-osv · Original source

Published 31 Jul 2024, 15:12 UTC

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. When a user has view but not edit right on a page in XWiki, that user can delete the page and replace it by a page with new content without having delete right. The previous version of the page is moved into the recycle bin and can be restored from there by an admin. As the user is recorded as deleter, the user would in theory also be able to view the deleted content, but this is not directly possible as rights of the previous version are transferred to the new page and thus the user still doesn't have view right on the page. It therefore doesn't seem to be possible to exploit this to gain any rights. This has been patched in XWiki 14.10.21, 15.5.5 and 15.10.6 by cancelling save operations by users when a new document shall be saved despite the document's existing already.

osv:CVE-2024-37898
Complete source record
{
  "id": "602a9329c7d1ef737104731407820ffc1e701692020037099c271f0718b1ee08",
  "url": "https://osv.dev/vulnerability/CVE-2024-37898",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "XWiki Platform vulnerable to document deletion and overwrite from edit",
    "summary": "XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. When a user has view but not edit right on a page in XWiki, that user can delete the page and replace it by a page with new content without having delete right. The previous version of the page is moved into the recycle bin and can be restored from there by an admin. As the user is recorded as deleter, the user would in theory also be able to view the deleted content, but this is not directly possible as rights of the previous version are transferred to the new page and thus the user still doesn't have view right on the page. It therefore doesn't seem to be possible to exploit this to gain any rights. This has been patched in XWiki 14.10.21, 15.5.5 and 15.10.6 by cancelling save operations by users when a new document shall be saved despite the document's existing already.",
    "evidence": "osv:CVE-2024-37898",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-37898",
      "aliases": [
        "CVE-2024-37898",
        "GHSA-33gp-gmg3-hfpq"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/xwiki/xwiki-commons",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3c4c45dbd8604be3d2e0c255fae73e3800bf1b13"
                },
                {
                  "fixed": "491547c4f74b9be58123ef22081ae7e6840a11c7"
                },
                {
                  "introduced": "57b99a782759720697322902b6e3c85b8eb26f14"
                },
                {
                  "fixed": "c6cc6af0637c7e8f8be850fe4af66576934f8a53"
                },
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5583e277218ab5de9930d969082a19ed0db4e472"
                },
                {
                  "introduced": "1e0e26611ad39442be884e876d902441a51fd34a"
                },
                {
                  "fixed": "5408ff53a61f0775cc5314a7ccde04c61c84caba"
                },
                {
                  "introduced": "fdba4ca1398766e912f7888af5bdefbeef60d8b0"
                },
                {
                  "last_affected": "fdba4ca1398766e912f7888af5bdefbeef60d8b0"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "13.10.4"
                      },
                      {
                        "fixed": "14.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "14.2"
                      },
                      {
                        "fixed": "14.10.21"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "15.5.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "15.6"
                      },
                      {
                        "fixed": "15.10.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:15.0:-:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "15.0-NA"
                      },
                      {
                        "last_affected": "15.0-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            },
            {
              "repo": "https://github.com/xwiki/xwiki-platform",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9e6485fbdb9eee07a0753df63cbe20f0960b3770"
                },
                {
                  "fixed": "198ef99386911c0f7af11a0957092d349961e3a6"
                },
                {
                  "introduced": "cb76b3247520065eadd38376d57ba0043bc5bf00"
                },
                {
                  "fixed": "1bcc6e962dc5701ae6f9745a209a5c0c97461128"
                },
                {
                  "introduced": "96b4a230ee41ef74268c9720722f6473c705583d"
                },
                {
                  "fixed": "447f13c6b159cf0671b65c6be8f790cf046d7ada"
                },
                {
                  "introduced": "201a8cdfdaad44618c79c6dd0c0bb855b446aafb"
                },
                {
                  "fixed": "150468c1e2cd64a2ad85b5053e9487943d3b9b1f"
                },
                {
                  "fixed": "0bc27d6ec63c8a505ff950e2d1792cb4f773c22e"
                },
                {
                  "fixed": "56f5d8aab7371d5ba891168f73890806551322c5"
                },
                {
                  "fixed": "c5efc1e519e710afdf3c5f40c0fcc300ad77149f"
                },
                {
                  "fixed": "e4968fe268e5644ffd9bfa4ef6257d2796446009"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "13.10.4"
                      },
                      {
                        "fixed": "14.0-rc-1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "14.2"
                      },
                      {
                        "fixed": "14.10.21"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "15.0"
                      },
                      {
                        "fixed": "15.5.5"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "15.6-rc-1"
                      },
                      {
                        "fixed": "15.10.6"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "0bc27d6ec63c8a505ff950e2d1792cb4f773c22e"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "56f5d8aab7371d5ba891168f73890806551322c5"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c5efc1e519e710afdf3c5f40c0fcc300ad77149f"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "e4968fe268e5644ffd9bfa4ef6257d2796446009"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "15.0-NA",
            "xwiki-commons-15.10.5",
            "xwiki-commons-15.10.4",
            "xwiki-commons-15.10.3",
            "xwiki-commons-15.10.2",
            "xwiki-commons-15.10.1",
            "xwiki-commons-14.10.20",
            "xwiki-commons-15.5.4",
            "xwiki-commons-15.10",
            "xwiki-commons-15.10-rc-1",
            "xwiki-commons-14.10.19",
            "xwiki-commons-14.10.18",
            "xwiki-commons-15.5.3",
            "xwiki-commons-14.10.17",
            "xwiki-commons-14.10.16",
            "xwiki-commons-15.5.2",
            "xwiki-commons-14.10.15",
            "xwiki-commons-15.5.1",
            "xwiki-commons-14.10.14",
            "xwiki-commons-15.5",
            "xwiki-commons-14.10.13",
            "xwiki-commons-15.5-rc-1",
            "xwiki-commons-14.10.12",
            "xwiki-commons-14.10.11",
            "xwiki-commons-14.10.10",
            "xwiki-commons-14.10.9",
            "xwiki-commons-14.10.8",
            "xwiki-commons-14.10.7",
            "xwiki-commons-14.10.6",
            "xwiki-commons-14.10.5",
            "xwiki-commons-14.10.4",
            "xwiki-commons-15.0",
            "xwiki-commons-14.10.3",
            "xwiki-commons-14.10.2",
            "xwiki-commons-14.10.1",
            "xwiki-commons-14.10",
            "xwiki-commons-14.0-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"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-37898.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:52.754333293Z",
      "provider": "osv",
      "references": [
        "https://jira.xwiki.org/browse/XWIKI-21553",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/37xxx/CVE-2024-37898.json",
        "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-33gp-gmg3-hfpq",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-37898",
        "https://github.com/xwiki/xwiki-platform/commit/0bc27d6ec63c8a505ff950e2d1792cb4f773c22e",
        "https://github.com/xwiki/xwiki-platform/commit/56f5d8aab7371d5ba891168f73890806551322c5",
        "https://github.com/xwiki/xwiki-platform/commit/c5efc1e519e710afdf3c5f40c0fcc300ad77149f",
        "https://github.com/xwiki/xwiki-platform/commit/e4968fe268e5644ffd9bfa4ef6257d2796446009"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-862"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/37xxx/CVE-2024-37898.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-37898",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 521786,
  "published_at": "2024-07-31T15:12:22.468+00:00"
}