Serious MongoDB vulnerability under active exploitation
MongoDB's security team has urged customers to patch immediately because of CVE-2025-14847. It can be exploited remotely by unauthenticated attackers, without user interaction and at low complexity. The flaw sits in MongoDB Server's zlib compression implementation and can expose uninitialised heap memory, in some cases allowing arbitrary code execution. That can reveal credentials, session tokens and other secrets held in memory. Public exploit code exists and the flaw is being exploited in the wild. Affected versions include 8.2.0 to 8.2.3, 8.0.0 to 8.0.16, 7.0.0 to 7.0.26, 6.0.0 to 6.0.26, 5.0.0 to 5.0.31, 4.4.0 to 4.4.29, and all 4.2, 4.0 and 3.6 releases. Where patching cannot happen at once, disabling zlib compression is advised.
What this means for your organisation
MongoDB often sits underneath applications built by a third party, and the organisation may not know it is there. Credentials leaking from memory give an attacker a foothold that survives the patch itself, because the keys are already out.
Berigo recommends
- Inventory every MongoDB instance, including those bundled with off-the-shelf products and cloud services.
- Upgrade to a fixed release, or disable zlib compression until you can.
- Rotate credentials and session tokens that may have been resident in memory on exposed instances.
- Verify that no database instance is directly reachable from the internet.
Source
Security that is understood, governed and works.
Let us help you turn security into an advantage, not a cost. Get in touch for a no-obligation conversation about where your organisation stands and what to prioritise first.
Get in touch