MongoDB Server
cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*
- 4.2.25
- 4.4.29
- 6.0.20
- 5.0.31
- 8.0.5
- 7.0.17
A vulnerability exists in MongoDB Server that may allow upsert operations, when retried within a transaction, to bypass unique index constraints. This could lead to an invariant failure and cause the server to crash during the commit process. The issue arises from improper management of WriteUnitOfWork state. Affected versions include MongoDB Server v6.0 prior to 6.0.25, v7.0 prior to 7.0.22, and v8.0 prior to 8.0.12.
Exploitation of this vulnerability can cause a server crash.
The vulnerability can be reproduced by performing an upsert operation within a transaction that violates a unique index constraint. When the operation encounters a duplicate key error, it can be retried, which may result in the upsert succeeding and the unique constraint being violated. This issue has been observed in MongoDB Server v6.0, v7.0, and v8.0.
Users can upgrade to MongoDB Server v6.0.25, v7.0.22, or v8.0.12 to address this vulnerability.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.