derived tables

About this tag
Derived tables in MariaDB and MySQL are temporary result sets created within SQL queries, often used in subqueries or complex joins. A recent vulnerability, CVE-2023-52969, highlights a denial-of-service crash in MariaDB triggered during derived-table optimization, specifically in functions like make_aggr_tables_info and optimize_stage2. This bug affects multiple MariaDB release lines and can be exploited by submitting a crafted SQL query, causing a deterministic crash. Understanding derived tables is crucial for database administrators and developers working with query optimization, as improper handling can lead to performance issues or security risks. The tag covers discussions on derived table behavior, related vulnerabilities, and best practices for stable query execution.
  1. CVE-2023-52969: MariaDB DoS Crash in Derived Tables Explained

    MariaDB servers in multiple supported release lines can crash without producing an actionable backtrace, producing a deterministic denial‑of‑service (DoS) condition tied to query optimization paths — a bug tracked as CVE‑2023‑52969 in public vulnerability catalogs and triaged in MariaDB’s issue...