MongoDB 4.x — End of Life

EOL Actively exploited
EOL: Feb 29, 20243 releases in this series2 CVEs

MongoDB 4.x reached end of life on Feb 29, 2024, 967 days ago, and no longer receives security fixes. The most recent release in this series is 4.4.31. 2 CVEs are tracked for this series, including 1 actively exploited according to CISA KEV. 2 of them were published after the end of life of the affected cycle and will not get an official patch. The next major version is MongoDB 5. See MongoDB 5 →

MongoDB 4.x — All releases

VersionReleasedActive supportEOL dateLatest patchStatusAlert me
4.4Jul 31, 2020—Feb 29, 20244.4.31EOL
4.2Aug 31, 2019—Apr 30, 20234.2.25EOL
4.0Jun 30, 2018—Apr 30, 20224.0.28EOL

CVEs affecting MongoDB 4.x (6)

CVESeverityCVSSEPSSKEVCycleDescriptionPublished
CVE-2026-9753HIGH8.10.52%—4.0The $_internalApplyOplogUpdate aggregation pipeline stage can be used to execute a document diff containing a malformed …Jun 9, 2026
CVE-2026-9753HIGH8.10.52%—4.2The $_internalApplyOplogUpdate aggregation pipeline stage can be used to execute a document diff containing a malformed …Jun 9, 2026
CVE-2026-9753HIGH8.10.52%—4.4The $_internalApplyOplogUpdate aggregation pipeline stage can be used to execute a document diff containing a malformed …Jun 9, 2026
CVE-2025-14847HIGH7.583.21% KEV 4.0Mismatched length fields in Zlib compressed protocol headers may allow a read of uninitialized heap memory by an unauthe…Dec 19, 2025
CVE-2025-14847HIGH7.583.21% KEV 4.2Mismatched length fields in Zlib compressed protocol headers may allow a read of uninitialized heap memory by an unauthe…Dec 19, 2025
CVE-2025-14847HIGH7.583.21% KEV 4.4Mismatched length fields in Zlib compressed protocol headers may allow a read of uninitialized heap memory by an unauthe…Dec 19, 2025

MongoDB 4.x is EOL — migrate to MongoDB 5.x

MongoDB 5.x is the next major release. Plan your upgrade before MongoDB 4.x stops receiving security patches.

See MongoDB 5.x

Add a MongoDB 4 EOL badge to your README

Show your users which MongoDB version your project runs and whether it is still supported. The badge updates automatically. More formats and options →

MongoDB 4 EOL status
[![MongoDB 4 EOL status](https://eolcanary.com/badge/mongodb/4.svg)](https://eolcanary.com/explore/mongodb/4)

Frequently asked questions

Is MongoDB 4 end of life?

Yes. All MongoDB 4.x releases have reached end of life and no longer receive security patches. There are 2 known CVEs affecting MongoDB 4.x. Migrate to MongoDB 5.x as soon as possible.

What CVEs affect MongoDB 4?

There are 2 CVEs tracked for MongoDB 4.x and 1 listed in the CISA Known Exploited Vulnerabilities catalog. See the full list above with CVSS and EPSS scores.

What is the latest MongoDB 4 version?

The latest MongoDB 4.x patch release is 4.4.31, released on June 24, 2026. Always run the latest patch to benefit from all security fixes.

How to migrate from MongoDB 4 to MongoDB 5?

To migrate from MongoDB 4 to MongoDB 5: (1) review the official MongoDB 5 migration guide for breaking changes, (2) update dependencies and configuration accordingly, (3) test thoroughly in a staging environment, (4) deploy with a rollback plan. Starting early gives you time to resolve compatibility issues before your current version reaches end of life.

Is it safe to run MongoDB 4 in production?

No. MongoDB 4 has reached end of life and security vulnerabilities are no longer patched. Critically, 1 CVE affecting MongoDB 4.x is in the CISA KEV catalog — meaning it is actively exploited in the wild. Upgrade to a supported version immediately.

Data sourced from endoflife.date · CVE data from NVD · EPSS from FIRST.org · KEV from CISA