Description
Bytebase DBHub through 2.1.0 contains a regular expression denial of service vulnerability that allows MCP clients to block the server by supplying crafted LIKE patterns to search_objects. Attackers can submit short patterns with many % wildcards that likePatternToRegex converts to unbounded .* expressions, causing polynomial backtracking that blocks the Node.js event loop for all sessions.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| bytebase | dbhub | 0 ≤2.1.0 | — |
References
- https://github.com/bytebase/dbhub/blob/dffb55f61866dfd6d168da58300cd19119aeb1dd/src/tools/search-objects.ts#L59-L67
- https://github.com/bytebase/dbhub/blob/dffb55f61866dfd6d168da58300cd19119aeb1dd/src/tools/search-objects.ts#L183-L200
- https://www.vulncheck.com/advisories/bytebase-dbhub-through-2.1.0-redos-via-search-objects-like-pattern