Hunt prep
Before you test MariaDB
What 61 disclosed reports say about MariaDB: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing 14
Ideas drawn from this program's disclosed reports and our class lessons. None of them is a known bug: each is a place to look, and the reports linked under it are why. Check the current scope before testing anything.
-
1
Test other geometry functions for the same short-WKB over-read
Memory corruption Read the lesson
The spatial over-read in #816 came from geometry functions reading a fixed-width integer without checking the buffer length. Try the remaining spatial accessors and predicates (area, centroid, point count, envelope and similar) against truncated WKB and WKT values, since the fix likely touched only the reported functions. Also check the GeoJSON and WKT parsers for the same missing length checks.
-
2
Probe other Connector/ODBC functions for handle-type confusion
Memory corruption Read the lesson
Report #882 showed descriptor-handle macros used on statement objects. Audit the other ODBC handle types (environment, connection, descriptor) and the remaining catalog and attribute functions for the same wrong-macro pattern, since a single fix may not cover every call site. A malicious server can supply the values that make the write land usefully.
-
3
Check other Connector/C++ metadata methods for escaper re-escaping
The string escaper in #886 re-scanned its own output, and sibling helpers were noted as hardcoding behaviour. Test the other DatabaseMetaData methods and any identifier-quoting path with crafted schema, table and column names to see whether the same double-escaping or missing quoting appears. The savepoint and multi-statement issues in #884 suggest identifier handling is a weak area.
Backed byConnector/C++ string escaper re-escapes its own output, enabling... (2026) Connector/C++ ignores allowMultiQueries and injects savepoint na... (2026) Connector/ODBC injects unquoted column names into positioned DEL... (2026)From the lessons: Database client libraries and command line utilities.; Review Node.js database libraries for missing parameter escaping and t...
-
4
Test other client utilities for unescaped database-supplied names
Reports #866 and #1054 show dump and show tools building SQL from stored identifiers without escaping. Exercise the remaining command-line utilities and SHOW variants against a database with crafted identifiers, including the restore path where a privileged user imports attacker-controlled output. The root cause is shared, so sibling tools are worth checking.
Backed byMariaDB CLI Utility Issues (2026) `SHOW [CREATE|GRANTS] ...` / `mariadb-dump` Unescaped SQL Genera... (2026) Stack Buffer Overflow in mariadb-dump quote_name() Allows Malici... (2026)From the lessons: Database client libraries and command line utilities.; Review Node.js database libraries for missing parameter escaping and t...
-
5
Look for more auth-switch guard logic flaws in connectors
Access control Read the lesson
The TLS auth-switch guard in #876 failed only on hostname verification because of a bitmask comparison. Test the equivalent guard in the other connectors and in the server auth plugins, varying which verification flags fail, to see whether a cleartext or weaker auth plugin can still be negotiated. This is a logic class that tends to repeat across implementations.
-
6
Probe other server-controlled lengths for unbounded allocation
Several reports (#1067, #1073, #1038) show the client trusting a server-supplied length or count. Test the remaining protocol fields that size buffers or loop counts in the C, C++ and Java connectors, including prepared-statement metadata and result-set headers, for missing upper bounds. The pattern is consistent enough that other fields are likely unguarded.
-
7
Test other privilege-grant cleanup paths for stale grants
Access control Read the lesson
Report #1050 found DROP PACKAGE left a grant behind. Check the other DROP and RENAME statements for procedures, functions, roles and users to see whether grants, definers or cache entries survive and can be inherited by a later object of the same name. The privilege cache collision in #22448 is a related angle.
-
8
Check other definer and option strings for newline injection
Access control Read the lesson
Report #1055 showed definer identities serialised without escaping. Test other stored option strings that carry user-controlled names, such as view algorithms, SQL SECURITY clauses and routine characteristics, for the same injection of extra options. The legacy alias handling in #1056 and #1057 suggests name parsing is broadly fragile.
-
9
Exercise other storage engines for the same units and bounds mistakes
Memory corruption Read the lesson
Reports #22446, #22411 and #1034 show storage engines trusting sizes or widths from files and rows. Test the remaining engines (Aria, ARCHIVE, SEQUENCE and the CONNECT table types) with crafted widths, key segments and row counts for under-allocation or unclamped writes. The CONNECT file UDF privilege gap in #1052 is a related access-control angle.
-
10
Look for more unbounded recursion in parsers
Reports #1040 and #22456 show geometry parsers recursing without a depth limit. Test the other recursive parsers in the server, such as JSON functions, XML handling and nested subquery or view expansion, for missing stack-overrun checks. The fix for one parser may not have been applied to its siblings.
-
11
Test other cursor and array growth paths for use-after-free
Memory corruption Read the lesson
Reports #1059 and #1058 show a growable cursor array leaving dangling pointers. Exercise other dynamic arrays that hold pointers into themselves, such as prepared-statement parameter arrays, HANDLER cursors and the MEMORY engine index in #22415, by forcing reallocation during execution. The stale key version in #22415 is the same class in a different subsystem.
-
12
Check other archive and file extraction paths for traversal
Path traversal Read the lesson
Report #1068 found mbstream only blocked absolute paths. Test the other extraction and file-writing paths, such as mariadb-dump restore, LOAD DATA and the DATA DIRECTORY handling in #1053, with parent-directory segments and symlinks. The command-line client traversal in #16439 is a related client-side variant.
-
13
Probe the web estate for the same CRLF and disclosure classes
Info disclosure Read the lesson
The mariadb.org reports include several CRLF injections (#14915, #14927, #14942) and exposed files (#17993, #16101). Re-test redirect and header-building parameters across the current site and subdomains for CRLF, and check for exposed repository metadata, debug logs and backup paths. These classes recurred over multiple years, so the current estate is worth a fresh pass.
-
14
Test the WordPress and third-party web surfaces for known issues
Misconfiguration Read the lesson
Reports #16282 and #14653 show WordPress endpoints left reachable and unthrottled. Check the current mariadb.org WordPress install for enabled XML-RPC, script loader abuse and plugin-specific issues, and check the Grafana and Jira instances referenced in #18846 and #18669 for current versions and exposure. These are recurring web findings on this program.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Memory corruption lesson | 17 | 0 | – | – | $0 |
| DoS lesson | 10 | 0 | – | – | $0 |
| Access control lesson | 9 | 0 | – | – | $0 |
| SQL injection lesson | 5 | 0 | – | – | $0 |
| Path traversal lesson | 5 | 0 | – | – | $0 |
| Crypto lesson | 4 | 0 | – | – | $0 |
| Info disclosure lesson | 4 | 0 | – | – | $0 |
| Smuggling / CRLF lesson | 3 | 0 | – | – | $0 |
| RCE lesson | 2 | 0 | – | – | $0 |
| Misconfiguration lesson | 1 | 0 | – | – | $0 |
| Race condition lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Spatial functions perform 4-byte heap buffer over-reads on truncated WKB inputs
The affected functions should add the same no_data(m_data, 4) bounds check that Gis_geometry_collection::num_geometries already uses.
Disclosed
-
Connector/C TLS auth-switch bypass exposes plaintext password on hostname verification failure
The bitmask check should be replaced with a nonzero check so that any TLS verification failure blocks non-hashing plugins on auth-switch.
Disclosed
-
Connector/C Out-of-bounds read from unterminated GSSAPI SPN in `parse_server_packet()`
The fix should replace strncpy with bounded memcpy plus explicit NUL termination and correct the mechanism-parsing boundary check.
Disclosed
-
Connector/ODBC: MADB_Stmt::ArrayOffset is not reset when an exception unwinds out of MADB_StmtExecute, so the next paramset reads out of bounds
The offset should be reset on every exit from the execute function, for example with a scope guard or in the catch block, and the pointer addition should only happen after the array pointer is checked for NULL.
Disclosed
-
Connector/ODBC: SqlwcsOctetLen sizes UTF-16 with a byte-oriented helper, reading past the caller's buffer and sending client memory to the server
The fix should test the code unit for a high surrogate directly rather than delegating to the byte-oriented mb_charlen, and give the loop an end pointer as SqlwcsCharLen already has.
Disclosed
-
r2dbc-mariadb: server message accepted with no command in flight desynchronises the connection and serves one user's rows to another
The driver should reject a message arriving when no command is outstanding as a protocol error, and validating the received sequence id against the expected value would close the class more thoroughly.
Disclosed
-
Connector/ODBC injects unquoted column names into positioned DELETE and UPDATE via MADB_DynStrGetWhere
The identifier should be wrapped in backticks with any embedded backtick doubled, the same treatment the value already receives.
Disclosed
-
Connector/ODBC SQLGetDescRec treats descriptor handle as statement handle, heap OOB write on every call
The two functions should use the descriptor-handle error-clearing macro, matching the adjacent SQLGetDescField functions; the text shows this change removes both effects.
Disclosed
-
Stack buffer overflow in 9 of 10 Connector/ODBC catalog functions via unbounded name
Identifiers longer than NAME_LEN should be rejected or clamped before escaping, the same check MADB_StmtTables already performs, and adding -fstack-protector-strong to the project's own build flags would be worthwhile independently.
Disclosed
-
Connector/C++ ignores allowMultiQueries and injects savepoint names into SQL
The text does not state a fix; it notes quoteIdentifier would not reliably quote savepoint names.
Disclosed
-
Connector/C++ aborts client process on server session-tracking packet via std::stoi
The value should be fetched with mysql_session_track_get_next before parsing, and parsed with something that reports failure rather than throwing, or wrapped so only SQLException escapes.
Disclosed
-
Connector/C++ string escaper re-escapes its own output, enabling SQL injection
The text says correcting replaceInternal closed every payload shape tried, and recommends also fixing the hardcoded flag and routing escaping through mysql_real_escape_string.
Disclosed
-
r2dbc-mariadb Parsec auth: server-controlled PBKDF2 iteration count causes CPU-exhaustion DoS ( regression from b7766de )
The iteration exponent should be capped at a small hard limit, such as the pre-regression value of 3.
Disclosed
-
Server crash (stack-overflow DoS) via unbounded recursion in MariaDB WKB GEOMETRYCOLLECTION parser
It should be fixed by calling check_stack_overrun() at the top of the geometry-collection parsing functions, or by enforcing a maximum nesting depth and returning a clean parse error.
Disclosed
-
MariaDB HandlerSocket Improper Request Field-Count Validation Causes Server Crash
HandlerSocket should reject an excessive field count before allocating memory and keep the MariaDB service running.
Disclosed