Post-authentication use-after-free in server-side JavaScript BSON-to-array conversion
MongoDB
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| MongoDB MongoDB |
| No fix yet |
Original description
A use-after-free vulnerability exists in MongoDB Server's server-side JavaScript engine when converting BSON documents to JavaScript arrays. An authenticated user with read privileges who is able to run server-side JavaScript (for example, via $where or $function) can cause the server to access memory that has already been freed. This may result in disclosure of information from the mongod process memory or a denial of service through a server crash.