Vulnerability  ·  2026-11-17

REBUILD MCP QueryRecords prefix-match oracle lets a low-privileged user recover the administrator password hash

VulnerabilityHigh impactGlobalCVE-2026-129875
REBUILD 4.5.0-4.5.4 exposes an MCP tool surface whose QueryRecords tool filters records by field without restricting sensitive columns. By sending prefix-match filters against User.password, a low-privileged user can treat the gateway's count response as a blind oracle to recover the admin password hash character by character and then authenticate as the administrator.
This turns an MCP integration (the agent-tool boundary) into a blind oracle that defeats password hashing, allowing privilege escalation to administrator via the agent gateway — a direct AI-system auth bypass, not just an info leak.
The MCP QueryRecords tool lets an authenticated low-privileged user filter the User.password field; an attacker sends LK2 prefix-match filters to the /gw/mcp/sse gateway and uses the returned record total count as an oracle to recover the administrator's SHA-256 hash one character at a time (CWE-202), then logs in as administrator.
REBUILD 4.5.0 through 4.5.4
Upgrade REBUILD to a patched release and restrict MCP QueryRecords field filtering (QueryRecords.java / AdvFilterParser.java).
VulnCheck advisory — REBUILD password-hash disclosure via MCP QueryRecords
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →