MongoDB has disclosed a critical security vulnerability tracked as CVE-2025-14847 that could allow attackers to extract uninitialized heap memory from database servers without authentication.
The flaw, affecting multiple MongoDB versions dating back to v3.6, stems from a client-side exploit in the server’s zlib compression implementation.
Vulnerability Overview and Impact
The security issue enables malicious actors to retrieve sensitive data from server memory by exploiting the zlib compression mechanism used to compress network messages.
What makes this vulnerability particularly dangerous is that attackers can execute the exploit without authenticating to the MongoDB server, significantly lowering the barrier to exploitation.
The vulnerability affects a wide range of MongoDB deployments across various versions. Affected installations include MongoDB 8.2.0 through 8.2.2, MongoDB 8.0.0 through 8.0.16, MongoDB 7.0.0 through 7.0.26, MongoDB 6.0.0 through 6.0.26, MongoDB 5.0.0 through 5.0.31, and MongoDB 4.4.0 through 4.4.29.
Additionally, all instances of MongoDB Server versions 4.2, 4.0, and 3.6 remain vulnerable to this exploit.
The exposed heap memory may contain highly sensitive information, including authentication credentials, query data, encryption keys, or other confidential database contents stored temporarily in server memory during processing.
MongoDB strongly recommends upgrading to a patched version immediately to eliminate this security risk.
Organizations should upgrade to MongoDB 8.2.3, 8.0.17, 7.0.28, 6.0.27, 5.0.32, or 4.4.30, which contain fixes that address the uninitialized memory exposure issue.
For organizations unable to upgrade immediately, MongoDB provides a temporary workaround: disable zlib compression on MongoDB servers.
This involves starting mongod or mongos with the networkMessageCompressors or net. compression.compressors configuration option that explicitly excludes zlib. Safe alternative compression values include “snappy,zstd” or “disabled”.
Database administrators should prioritize patching this vulnerability given its critical nature and the absence of authentication requirements for exploitation.
The vulnerability was resolved on December 19, 2025, and patches are now available across all supported MongoDB versions.
| Field | Description |
|---|---|
| CVE ID | CVE-2025-14847 |
| Severity | Critical |
| Vulnerability Type | Uninitialized Memory Exposure |
| Attack Vector | Client-side exploit via zlib compression |
| Authentication Required | No |
| Affected Versions | MongoDB 3.6 through 8.2.2 |
| Fixed Versions | 8.2.3, 8.0.17, 7.0.28, 6.0.27, 5.0.32, 4.4.30 |
| Disclosure Date | December 19, 2025 |
| Workaround Available | Disable zlib compression |
Follow us on Google News , LinkedIn and X to Get More Instant Updates. Set Cyber Press as a Preferred Source in Google.