MongoDB Serverに解放後使用の脆弱性、認証済みユーザーによるサーバー停止や情報漏えいのおそれ
Summary
MongoDB Serverの集計処理で、解放済みのメモリを参照する脆弱性が見つかりました。readWrite権限を持つ認証済みユーザーが細工した集計パイプラインを実行すると、ヒープ領域の範囲外読み取りが起き、メモリ内容の一部が漏えいしたり、mongodが停止したりするおそれがあります。影響するのは9.0.0から9.0.6までと8.3.0から8.3.15までで、9.0.7と8.3.16で修正されています。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
MongoDB Serverの集計処理で、解放済みのメモリを参照する脆弱性が見つかりました。readWrite権限を持つ認証済みユーザーが細工した集計パイプラインを実行すると、ヒープ領域の範囲外読み取りが起き、メモリ内容の一部が漏えいしたり、mongodが停止したりするおそれがあります。影響するのは9.0.0から9.0.6までと8.3.0から8.3.15までで、9.0.7と8.3.16で修正されています。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| MongoDBMongoDB Server |
≥ 9.0.0, < 9.0.7→ 9.0.7 ≥ 8.3.0, < 8.3.16→ 8.3.16 |
9.0.7 8.3.16 |
Original description The description as published by the source.
A use-after-free issue exists in MongoDB’s SBE (Slot-Based Execution) implementation of a window function accumulator used by certain $setWindowFields aggregation pipelines. Under specific conditions, the accumulator can retain a dangling pointer to memory that has since been freed. When this stale pointer is later dereferenced during serialization of the carried-forward value, it can result in a heap out-of-bounds read that may expose adjacent heap contents and crash the mongod server. An authenticated user with readWrite privileges on a database can trigger this issue by crafting a specific aggregation pipeline.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web jira.mongodb.org
- web nvd.nist.gov
- web github.com