MongoDBGHSA-wx62-4j8r-3329
MongoDB: memory leak
Fix: upgrade to 1.30.15 or later (2 fixed versions below)
Impact
A memory management flaw in the MongoDB C Driver's handling of compressed responses may cause the client library to hold on to memory that is never released. An unauthenticated party that controls the database endpoint a client application connects to may cause repeated, unbounded memory growth in that application, which may result in the application becoming unavailable. No credentials, transport security settings, or user interaction are required.
Patches
The issue is fixed in MongoDB C Driver 1.30.15 and 2.5.8.
Workarounds
None.
References
- https://github.com/mongodb/mongo-c-driver/releases/tag/1.30.15
- https://github.com/mongodb/mongo-c-driver/releases/tag/2.5.8
- https://jira.mongodb.org/browse/CDRIVER-6521
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| MongoDB C Driver Product | >= 1.25.0, < 1.30.15 | 1.30.15 |
| >= 2.0.0, < 2.5.8 | 2.5.8 |
Details and references
- CVSS 4.0
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-401