{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "1.0"
              },
              {
                "fixed": "15.10.16"
              }
            ]
          },
          "events": [
            {
              "introduced": "93d8322eda7b68fd66f33334b982b047d7cf4f36"
            },
            {
              "fixed": "110b60483db6e4ba9b1edfc0747a94a81d5296cf"
            }
          ],
          "repo": "https://github.com/xwiki/xwiki-platform",
          "type": "GIT"
        },
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "16.0.0-rc-1"
              },
              {
                "fixed": "16.4.7"
              }
            ]
          },
          "events": [
            {
              "introduced": "6f103dbca9c98cf3b53bfadb83d982facb198d56"
            },
            {
              "fixed": "f5a9a0762750936523187286919ec4c1892d6fea"
            }
          ],
          "repo": "https://github.com/xwiki/xwiki-platform",
          "type": "GIT"
        },
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "16.5.0-rc-1"
              },
              {
                "fixed": "16.10.2"
              }
            ]
          },
          "events": [
            {
              "introduced": "ed06c998964cae931ccfe7005a67eeaedaf60e58"
            },
            {
              "fixed": "105d934fe5a2f9a74958fef57cede8436c5cb63c"
            }
          ],
          "repo": "https://github.com/xwiki/xwiki-platform",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-prwh-7838-xf82"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-89"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56158.json"
  },
  "details": "XWiki is a generic wiki platform. It's possible to execute any SQL query in Oracle by using the function like DBMS_XMLGEN or DBMS_XMLQUERY. The XWiki query validator does not sanitize functions that would be used in a simple select and Hibernate allows using any native function in an HQL query. This vulnerability is fixed in 16.10.2, 16.4.7, and 15.10.16.",
  "id": "CVE-2024-56158",
  "modified": "2026-04-01T23:08:20.109990595Z",
  "published": "2025-06-12T14:56:56.939Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://jira.xwiki.org/browse/XWIKI-22734"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56158.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-prwh-7838-xf82"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-56158"
    },
    {
      "type": "FIX",
      "url": "https://github.com/xwiki/xwiki-platform/commit/ce855aae38eefd8ee3fc86353d51ac03d6cb7f8d"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "XWiki allows SQL injection in query endpoint of REST API with Oracle"
}