CVE-2025-61023
Description
An issue in the st_compare component of openlink virtuoso-opensource v7.2.11 allows attackers to cause a Denial of Service (DoS) via crafted SQL statements.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
1- Range: = 7.2.11
Patches
Vulnerability mechanics
Root cause
"A crafted SQL statement with a nested subquery in a CHECK constraint and a GROUP BY CUBE clause causes a crash in the st_compare function during query compilation."
Attack vector
An attacker can trigger a denial of service by sending a crafted SQL statement containing a `CREATE TABLE` with a nested correlated subquery in a `CHECK` constraint followed by an `INSERT ... GROUP BY CUBE` query. The PoC uses a `SELECT` subquery inside a `CHECK` constraint and a `GROUP BY CUBE` clause with a comparison `'xwvutsr' < 0` to cause a crash in `st_compare` during query compilation. No authentication or special privileges beyond the ability to execute SQL statements are required.
Affected code
The crash occurs in `st_compare` (frame #0) during query compilation when processing a crafted SQL statement that includes a `GROUP BY CUBE` clause. The backtrace shows the failure propagates through `make_grouping_bitmap_set`, `sqlg_make_sort_nodes`, and `sqlg_group_node` before reaching `st_compare` via `bsearch` and `qsort_r`.
What the fix does
No patch is included in the bundle. The advisory [ref_id=1] documents the crash but does not provide a fix. The vendor would need to add bounds checking or input validation in the `st_compare` function or its callers to handle malformed grouping expressions that cause `bsearch`/`qsort_r` to operate on invalid comparison data.
Preconditions
- authAttacker must be able to execute arbitrary SQL statements against the Virtuoso server.
- configThe server must be running the affected version (v7.2.11).
Generated on Jun 24, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
1News mentions
0No linked articles in our index yet.