{"id":"CVE-2024-56158","summary":"XWiki allows SQL injection in query endpoint of REST API with Oracle","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.","aliases":["GHSA-prwh-7838-xf82"],"modified":"2026-04-10T05:18:40.068084Z","published":"2025-06-12T14:56:56.939Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56158.json","cwe_ids":["CWE-89"],"cna_assigner":"GitHub_M"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/xwiki/xwiki-platform","events":[{"introduced":"93d8322eda7b68fd66f33334b982b047d7cf4f36"},{"fixed":"110b60483db6e4ba9b1edfc0747a94a81d5296cf"}],"database_specific":{"versions":[{"introduced":"1.0"},{"fixed":"15.10.16"}]}},{"type":"GIT","repo":"https://github.com/xwiki/xwiki-platform","events":[{"introduced":"6f103dbca9c98cf3b53bfadb83d982facb198d56"},{"fixed":"f5a9a0762750936523187286919ec4c1892d6fea"}],"database_specific":{"versions":[{"introduced":"16.0.0-rc-1"},{"fixed":"16.4.7"}]}},{"type":"GIT","repo":"https://github.com/xwiki/xwiki-platform","events":[{"introduced":"ed06c998964cae931ccfe7005a67eeaedaf60e58"},{"fixed":"105d934fe5a2f9a74958fef57cede8436c5cb63c"}],"database_specific":{"versions":[{"introduced":"16.5.0-rc-1"},{"fixed":"16.10.2"}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56158.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","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"}]}