Repository navigation
MariaDB CONNECT MDEV-41946: reproduce format-string DoS; RCE unproven - #1
Closed
yunshingng wants to merge 32 commits into
Closed
yunshingng wants to merge 32 commits into
yunshingng wants to merge 32 commits into
Conversation
yunshingng
marked this pull request as ready for review
November 15, 2026 16:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an isolated Docker/GitHub Actions harness for MariaDB CONNECT issue MDEV-41946. This is a research-only directory; it does not modify Node.js runtime code.
Reproduced
Upstream confirmation
MariaDB upstream commit b01a176de5d4c814333fead0c85e431666e00fee explicitly describes MDEV-41946 as a table-option value used as a printf format string in GetRealString() and FileExists(), and fixes the substitution. It also adds a regression test containing %p, %d, %n, and %% tokens.
RCE assessment
RCE is not proven for this specific path. The vulnerable call is snprintf(sv, size, s, partname): only one explicit variadic argument is supplied. partname is an in-object char[65] buffer, and GetPartName() returns that buffer. Thus a first %n targets that fixed buffer, not an attacker-chosen address; additional conversions consume missing arguments (undefined behavior), which is not proof of controlled instruction flow. The tested fortified build aborts before the write.
Demonstrated impact: server-process denial of service on the tested fortified build.
Not demonstrated: arbitrary-address write, information disclosure, privilege escalation, code execution, or unauthenticated remote reachability. Do not conflate this with the separate historical CVE-2022-24051 / ZDI-22-318 advisory; that older advisory does not establish exploitability of MDEV-41946.
The test uses a privileged local SQL connection to create a partitioned CONNECT table. Exploitability depends on required SQL privileges and build configuration.