Skip to main content

Xwiki EUVDEUVD-2024-54677

| CVE-2024-56158 CRITICAL
SQL Injection (CWE-89)
2025-06-12 security-advisories@github.com GHSA-prwh-7838-xf82
9.8
CVSS 3.1 · GitHub Advisory
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

This vulnerability presents extreme real-world risk. The CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H vector confirms: network-accessible, low attack complexity, no privileges required, no user interaction, and unrestricted scope with complete compromise of CIA triad. The pre-authentication requirement (PR:N) combined with network accessibility (AV:N) means any internet-connected XWiki instance is exploitable by unauthenticated attackers. While KEV status and EPSS data are not provided in the context, the combination of unauthenticated remote SQL injection, database function escalation, and the 9.8 CVSS score indicates this is a critical priority vulnerability with high likelihood of active exploitation. The low attack complexity (AC:L) means no special conditions or timing are required—straightforward HTTP requests can trigger code execution. This is not a theoretical high-CVSS issue; it is a practical, immediately exploitable vulnerability affecting production Wiki systems.

Exploit ScenarioDerived

An unauthenticated attacker identifies a publicly accessible XWiki instance (e.g., https://wiki.example.com) connected to an Oracle database. The attacker crafts an HTTP GET or POST request to a XWiki query endpoint (such as search, filter, or report generation features) and injects malicious HQL with embedded Oracle DBMS_XMLGEN functions: DBMS_XMLGEN.getxml('SELECT * FROM users') or similar payload. The request bypasses XWiki's query validator because it does not recognize DBMS_XMLGEN as a dangerous function. Hibernate processes the HQL and passes the native function call to the Oracle database driver. The Oracle database executes the function with the privileges of the XWiki database account (typically elevated), allowing the attacker to: extract sensitive data (users, credentials, confidential documents), modify data (alter user accounts, inject backdoors), or execute system commands via Oracle's PL/SQL execution capabilities. The attack requires no authentication, no social engineering, and no database-level vulnerabilities—it exploits pure application logic failures. Attack complexity is low: straightforward parameter manipulation in existing application features.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 14, 2026

Critical SQL injection vulnerability in XWiki that allows unauthenticated remote attackers to execute arbitrary SQL queries against Oracle databases by exploiting insufficient validation of native SQL functions (DBMS_XMLGEN, DBMS_XMLQUERY) in Hibernate query processing. The vulnerability affects XWiki versions before 16.10.2, 16.4.7, and 15.10.16, with a CVSS score of 9.8 indicating critical severity and complete compromise of confidentiality, integrity, and availability. This is a pre-authentication remote code execution vector with no user interaction required.

RemediationAI

Immediate patching is required: upgrade to XWiki 16.10.2, 16.4.7, or 15.10.16 depending on your current version line. For version 15.x: upgrade to 15.10.16 or later. For version 16.4.x: upgrade to 16.4.7 or later. For version 16.10.x: upgrade to 16.10.2 or later. Interim mitigations pending patch deployment: (1) Restrict network access to XWiki instances using firewall rules or WAF rules that block requests containing suspicious SQL function names (DBMS_XMLGEN, DBMS_XMLQUERY); (2) implement database-level access controls to limit SQL execution capabilities of the XWiki database user account; (3) disable or restrict use of Hibernate native query features if not required by application logic; (4) monitor database logs for suspicious function calls. However, these mitigations are not a substitute for patching and should only be temporary measures.

Affected VersionsENISA

xwiki-platform 1.0, < 15.10.16
xwiki-platform 16.5.0-rc-1, < 16.10.2
xwiki-platform 16.0.0-rc-1, < 16.4.7

Affected Packages

maven org.xwiki.platform:xwiki-platform-oldcore fix: 15.10.16, 16.4.7, 16.10.2
euvd xwiki_platform_16_0_0_rc_1 fix: 16.4.7
euvd xwiki_platform_16_5_0_rc_1 fix: 16.10.2
euvd xwiki_platform_1_0 fix: 15.10.16

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists at the intersection of XWiki's query validation layer and Hibernate ORM's native function support. XWiki uses Hibernate for database abstraction, which permits native SQL functions in HQL (Hibernate Query Language) queries. The XWiki query validator fails to properly sanitize or blocklist Oracle-specific functions like DBMS_XMLGEN and DBMS_XMLQUERY, which are privileged PL/SQL packages that can be abused to execute arbitrary SQL. This is rooted in CWE-89 (SQL Injection) where user-controllable input reaches SQL execution contexts without proper parameterization or validation. The root cause is inadequate input validation combined with overly permissive Hibernate function resolution, allowing attackers to bypass intended security controls by leveraging database-native capabilities that the validator does not account for.

Know when Xwiki gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Jun 12, 2025 - 15:15 nvd
CRITICAL 9.8

DescriptionGitHub Advisory

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.

Executive ViewAI

Why It Matters

XWiki instances using Oracle databases face critical SQL injection vulnerability allowing unauthorized database access and potential data exfiltration. Organizations running affected XWiki versions must take immediate action as patches are available but exploitation risk is elevated with 70% likelihood of active exploitation attempts.

Business Impact: Severe
Compensating Controls

Until patches applied: (1) Disable or restrict access to XWiki query/search functionality if possible; (2) Implement network segmentation restricting XWiki application server to read-only database connections with minimal required privileges; (3) Deploy WAF rules blocking DBMS_XMLGEN and DBMS_XMLQUERY function calls in HTTP requests; (4) Enable Oracle database audit logging for all XWiki user connections and flag any DDL/DML operations; (5) Implement IP whitelisting to limit XWiki application access to known sources only.

Threat Intelligence Overview

EPSS Score
0.7%
Top 29% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Xwiki

View all
CVE-2025-24893 CRITICAL POC
9.8 Feb 20

XWiki Platform allows unauthenticated remote code execution through the SolrSearch endpoint, enabling guests to execute

CVE-2024-21650 CRITICAL POC
10.0 Jan 08

XWiki Platform prior to specific patched versions contains a CVSS 10.0 remote code execution vulnerability through the u

CVE-2023-29525 HIGH POC
8.8 Apr 19

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Rated high seve

CVE-2025-32969 CRITICAL POC
9.3 Apr 23

XWiki is a generic wiki platform. Rated critical severity (CVSS 9.3), this vulnerability is remotely exploitable, no aut

CVE-2025-55727 CRITICAL POC
9.8 Sep 09

Remote code execution in XWiki Pro Macros 1.0 through 1.26.4 allows authenticated users who can edit at least one page o

CVE-2023-27479 CRITICAL POC
9.9 Mar 07

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Rated critical

CVE-2023-26055 CRITICAL POC
9.9 Mar 02

XWiki Commons are technical libraries common to several other top level XWiki projects. Rated critical severity (CVSS 9.

CVE-2024-31996 CRITICAL POC
9.8 Apr 10

XWiki Platform is a generic wiki platform. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl

CVE-2024-31982 CRITICAL POC
9.8 Apr 10

XWiki Platform is a generic wiki platform. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl

CVE-2023-46731 CRITICAL POC
9.8 Nov 06

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Rated critical

CVE-2023-26477 CRITICAL POC
9.8 Mar 02

XWiki Platform is a generic wiki platform. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl

CVE-2025-52472 CRITICAL POC
9.3 Oct 06

Unauthenticated HQL injection in the XWiki Platform REST search API lets remote attackers inject arbitrary Hibernate Que

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy