A BSON symbol namespace bypasses MongoDB's authorization check (CVE-2026-18690)
MongoDB's authorization check and command execution parse the collection name differently when it is sent as a BSON symbol instead of a string, causing the check to authorize against the database rather than the specific collection. A low-privileged user with a database-scoped role can bypass authorization on protected system collections, potentially dropping and recreating them.
hellorecon.com
Published on hellorecon.com
On August 11, 2026 MongoDB disclosed four Server vulnerabilities, all fixed in the same 8.0.29 / 7.0.40 / 8.3.8 releases. The one worth reading closely, CVE-2026-18690, is a small, exact bug with a familiar shape: a database command carries the name of the collection it targets, and MongoDB parses that name twice —…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The function that extracts the collection name from a command only accepts BSON strings; if the name is a BSON symbol, it returns a database-only namespace, so authorization is checked against the database instead of the specific collection.
Impact
A low-privileged user could bypass authorization to drop and recreate protected system collections, affecting integrity and availability; the proof-of-concept only reached execution errors because the targeted collections could not be capped.
What the attacker needed
A valid MongoDB account with a database-scoped role; MongoDB version below 7.0.40 / 8.0.29 / 8.3.8
The fix
The vulnerability was fixed in MongoDB 8.0.29 (and 7.0.40, 8.3.8) by also accepting BSON symbol type in the namespace parsing function.
How it was found
- Set up MongoDB 8.0.28 with authentication and a database-scoped user (readWrite on appdb only).
- Send a convertToCapped command targeting a protected system collection with the collection name as a normal string; observe Unauthorized.
- Send the same command with the collection name as a BSON symbol; observe BadValue, indicating the authorization check was bypassed.
- Verify on MongoDB 8.0.29 that both string and symbol requests return Unauthorized.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
MongoDB uses roles to control who can do what. A user with a limited role should only be able to touch certain collections. This bug lets that user trick the server into thinking they are allowed to access a protected system collection by sending the collection name in an unusual format, so the permission check looks at the wrong thing.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.