DoS via $trim/$ltrim/$rtrim in MongoDB 7.0-8.3 (pre 7.0.34, 8.0.23, 8.2.9, 8.3.2)
CVE-2026-8202 Published on May 13, 2026
Post-authentication CPU utilization DoS via $trim/$ltrim/$rtrim operators
Using a densely populated chars mask and a large input string in the MongoDB aggregation operators $trim, $ltrim, and $rtrim, an authenticated user with aggregation permissions can pin CPU utilization at 100% for an extended period of time.
This issue impacts MongoDB Server v7.0 versions prior to 7.0.34, v8.0 versions prior to 8.0.23, v8.2 versions prior to 8.2.9 and v8.3 versions prior to 8.3.2.
Vulnerability Analysis
CVE-2026-8202 is exploitable with network access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a small impact on availability.
Weakness Type
Allocation of Resources Without Limits or Throttling
The software allocates a reusable resource or group of resources on behalf of an actor without imposing any restrictions on the size or number of resources that can be allocated, in violation of the intended security policy for that actor.
Products Associated with CVE-2026-8202
Want to know whenever a new CVE is published for MongoDB? stack.watch will email you.
Affected Versions
MongoDB, Inc. MongoDB Server:- Version 7.0 and below 7.0.34 is affected.
- Version 8.0 and below 8.0.23 is affected.
- Version 8.2 and below 8.2.9 is affected.
- Version 8.3 and below 8.3.2 is affected.