Skip to content
Heist/ feed
Back to feed
High

org.xwiki.platform:xwiki-platform-oldcore allows SQL injection in short form select requests through the script query API

Type: advisorySources: OSV

XWiki is a generic wiki platform. In versions starting from 1.6-milestone-1 to before 15.10.16, 16.4.6, and 16.10.1, it is possible for a user with SCRIPT right to escape from the HQL execution context and perform a blind SQL injection to execute arbitrary SQL statements on the database backend. Depending on the used database backend, the attacker may be able to not only obtain confidential information such as password hashes from the database, but also execute UPDATE/INSERT/DELETE queries. This issue has been patched in versions 16.10.1, 16.4.6 and 15.10.16. There is no known workaround, other than upgrading XWiki. The protection added to this REST API is the same as the one used to validate complete select queries, making it more consistent. However, while the script API always had this protection for complete queries, it's important to note that it's a very strict protection and some valid, but complex, queries might suddenly require the author to have programming right.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-32968
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 21:22 UTC · Revision 1

Source evidence

org.xwiki.platform:xwiki-platform-oldcore allows SQL injection in short form select requests through the script query API

core-osv · Original source

Published 23 Apr 2025, 15:27 UTC

XWiki is a generic wiki platform. In versions starting from 1.6-milestone-1 to before 15.10.16, 16.4.6, and 16.10.1, it is possible for a user with SCRIPT right to escape from the HQL execution context and perform a blind SQL injection to execute arbitrary SQL statements on the database backend. Depending on the used database backend, the attacker may be able to not only obtain confidential information such as password hashes from the database, but also execute UPDATE/INSERT/DELETE queries. This issue has been patched in versions 16.10.1, 16.4.6 and 15.10.16. There is no known workaround, other than upgrading XWiki. The protection added to this REST API is the same as the one used to validate complete select queries, making it more consistent. However, while the script API always had this protection for complete queries, it's important to note that it's a very strict protection and some valid, but complex, queries might suddenly require the author to have programming right.

osv:CVE-2025-32968
Complete source record
{
  "id": "a959820438a190b0b63d73f7cde45ee032a14279dba96604b245ab15c8c517f7",
  "url": "https://osv.dev/vulnerability/CVE-2025-32968",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "org.xwiki.platform:xwiki-platform-oldcore allows SQL injection in short form select requests through the script query API",
    "summary": "XWiki is a generic wiki platform. In versions starting from 1.6-milestone-1 to before 15.10.16, 16.4.6, and 16.10.1, it is possible for a user with SCRIPT right to escape from the HQL execution context and perform a blind SQL injection to execute arbitrary SQL statements on the database backend. Depending on the used database backend, the attacker may be able to not only obtain confidential information such as password hashes from the database, but also execute UPDATE/INSERT/DELETE queries. This issue has been patched in versions 16.10.1, 16.4.6 and 15.10.16. There is no known workaround, other than upgrading XWiki. The protection added to this REST API is the same as the one used to validate complete select queries, making it more consistent. However, while the script API always had this protection for complete queries, it's important to note that it's a very strict protection and some valid, but complex, queries might suddenly require the author to have programming right.",
    "evidence": "osv:CVE-2025-32968",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-32968",
      "aliases": [
        "CVE-2025-32968",
        "GHSA-g9jj-75mx-wjcx"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/xwiki/xwiki-commons",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "d8a509c53e75e2773666a2824b6f8e24c650419f"
                },
                {
                  "introduced": "918ea43fe0d277c28efa21a871175b329c75157c"
                },
                {
                  "fixed": "8c14d05055fc563d2838c2c9bb141e91d7401386"
                },
                {
                  "introduced": "526fcc68b3f75862a2af7395b5a6dfdd3d2166a5"
                },
                {
                  "last_affected": "a29ceaa6a74f0fee7b8131549bb67aa489d66399"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.6"
                      },
                      {
                        "fixed": "15.10.16"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "16.0.0"
                      },
                      {
                        "fixed": "16.4.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "16.5.0"
                      },
                      {
                        "last_affected": "16.10.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            },
            {
              "repo": "https://github.com/xwiki/xwiki-platform",
              "type": "GIT",
              "events": [
                {
                  "introduced": "ab58bfe0674281cafb24fc9911c131eec9b244f6"
                },
                {
                  "fixed": "110b60483db6e4ba9b1edfc0747a94a81d5296cf"
                },
                {
                  "introduced": "3c6f5cf138d8095f63631e554ba448e4b780e162"
                },
                {
                  "fixed": "5292357f68df062a1b2f6a48410c3753e94771d3"
                },
                {
                  "introduced": "177e524c2e218fe5de776619271b7cd12c929488"
                },
                {
                  "last_affected": "ce9ec01ee77a3c38f1038e567a34e4f215472f7a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.6"
                      },
                      {
                        "fixed": "15.10.16"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "16.0.0"
                      },
                      {
                        "fixed": "16.4.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "16.5.0"
                      },
                      {
                        "last_affected": "16.10.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "xwiki-commons-16.10.1",
            "xwiki-commons-15.10.15",
            "xwiki-commons-16.10.0",
            "xwiki-commons-16.10.0-rc-1",
            "xwiki-commons-15.10.14",
            "xwiki-commons-16.4.5",
            "xwiki-commons-15.10.13",
            "xwiki-commons-16.4.4",
            "xwiki-commons-16.4.3",
            "xwiki-commons-15.10.12",
            "xwiki-commons-16.4.2",
            "xwiki-commons-16.4.1",
            "xwiki-commons-15.10.11",
            "xwiki-commons-16.4.0",
            "xwiki-commons-15.10.10",
            "xwiki-commons-16.4.0-rc-1",
            "xwiki-commons-15.10.9",
            "xwiki-commons-15.10.8",
            "xwiki-commons-15.10.7",
            "xwiki-commons-15.10.6",
            "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-15.10",
            "xwiki-commons-15.10-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-2025-32968.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.450587121Z",
      "provider": "osv",
      "references": [
        "https://jira.xwiki.org/browse/XWIKI-22718",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/32xxx/CVE-2025-32968.json",
        "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-g9jj-75mx-wjcx",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-32968"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-89"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/32xxx/CVE-2025-32968.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-32968",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 507203,
  "published_at": "2025-04-23T15:27:27.181+00:00"
}