XWiki is a generic wiki platform. It's possible to execute any SQL query in Oracle by using the function like DBMSXMLGEN or DBMSXMLQUERY. 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.
{
"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"
}{
"extracted_events": [
{
"introduced": "1.0"
},
{
"fixed": "15.10.16"
},
{
"introduced": "16.0.0"
},
{
"fixed": "16.4.7"
},
{
"introduced": "16.5.0"
},
{
"fixed": "16.10.2"
}
],
"source": "CPE_RANGE",
"cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*"
}
{
"extracted_events": [
{
"introduced": "1.0"
},
{
"fixed": "15.10.16"
},
{
"introduced": "16.0.0"
},
{
"fixed": "16.4.7"
},
{
"introduced": "16.5.0"
},
{
"fixed": "16.10.2"
}
],
"source": [
"CPE_RANGE",
"REFERENCES"
],
"cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*"
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56158.json"
[
{
"target": {
"function": "isAllowedAllTableColumns",
"file": "xwiki-platform-core/xwiki-platform-oldcore/src/main/java/org/xwiki/query/hql/internal/StandardHQLCompleteStatementValidator.java"
},
"deprecated": false,
"source": "https://github.com/xwiki/xwiki-platform/commit/ce855aae38eefd8ee3fc86353d51ac03d6cb7f8d",
"id": "CVE-2024-56158-98d6d722",
"signature_version": "v1",
"digest": {
"length": 196.0,
"function_hash": "189245505877726022919220266294312434629"
},
"signature_type": "Function"
},
{
"target": {
"file": "xwiki-platform-core/xwiki-platform-oldcore/src/main/java/org/xwiki/query/hql/internal/StandardHQLCompleteStatementValidator.java"
},
"deprecated": false,
"source": "https://github.com/xwiki/xwiki-platform/commit/ce855aae38eefd8ee3fc86353d51ac03d6cb7f8d",
"id": "CVE-2024-56158-9f80c258",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"80858588069353650013320143885439827446",
"244162466944943738623198209739764373584",
"128299822323110704974936036485904507935",
"278794280172128963660463204001215916365",
"69931236865940592543432157197084614733",
"122481631644564978545989872820455096026",
"335186725883391693566888296506466643357",
"203518741667416764134949147521951714877",
"162192788590106360266772599423851516335",
"244191456151540658191586707207237093449",
"65253137047822419686460905649236005151",
"75930305575668025764964915306596655453",
"326111562040156768036525418841759250425",
"194233240734623404346961099412703402298",
"108157936597573392118458961010947783735",
"30583041099340244783965149916078370953",
"45664684365818546046021908645569060173",
"88082379301626145973782249255681196561",
"80188471245989518003253162538324821427"
]
},
"signature_type": "Line"
},
{
"target": {
"function": "addFromItem",
"file": "xwiki-platform-core/xwiki-platform-oldcore/src/main/java/org/xwiki/query/hql/internal/StandardHQLCompleteStatementValidator.java"
},
"deprecated": false,
"source": "https://github.com/xwiki/xwiki-platform/commit/ce855aae38eefd8ee3fc86353d51ac03d6cb7f8d",
"id": "CVE-2024-56158-c4a3cef4",
"signature_version": "v1",
"digest": {
"length": 225.0,
"function_hash": "128918765184430953151267115114836323634"
},
"signature_type": "Function"
},
{
"target": {
"function": "isSelectExpressionAllowed",
"file": "xwiki-platform-core/xwiki-platform-oldcore/src/main/java/org/xwiki/query/hql/internal/StandardHQLCompleteStatementValidator.java"
},
"deprecated": false,
"source": "https://github.com/xwiki/xwiki-platform/commit/ce855aae38eefd8ee3fc86353d51ac03d6cb7f8d",
"id": "CVE-2024-56158-ed8b8084",
"signature_version": "v1",
"digest": {
"length": 260.0,
"function_hash": "302343325834938897113750455795137054004"
},
"signature_type": "Function"
}
]
"2026-08-12T15:15:45Z"