MongoDB 4.2

End of life

Is MongoDB 4.2 still supported?

No

MongoDB 4.2 reached end of life on Apr 30, 2023 (3 years ago). It no longer gets updates, including security fixes. Upgrade to MongoDB 9.0 (latest 9.0.2), supported until Oct 31, 2031.

Released
Aug 31, 2019
End of life
Apr 30, 2023
3 years ago
Latest version
4.2.25
Dec 4, 2023

Upgrade path

The recommended upgrade is MongoDB 9.0, currently at 9.0.2 and supported until Oct 31, 2031.

Not sure? Run mongod --version

How to upgrade from MongoDB 4.2 to MongoDB 9.0

Upgrade one major version at a time, and set featureCompatibilityVersion after each step.

Ubuntu / Debian (MongoDB repository)

sudo apt update
sudo apt install --only-upgrade mongodb-org

Docker

docker pull mongo:9.0

Official upgrade guide ↗ Back up first, and test on a non-production machine when you move to a new branch.

Quick answers

Is MongoDB 4.2 still supported?
No. MongoDB 4.2 reached end of life on Apr 30, 2023 (3 years ago). It no longer gets updates, including security fixes. Upgrade to MongoDB 9.0 (latest 9.0.2), supported until Oct 31, 2031.
When is MongoDB 4.2 end of life?
MongoDB 4.2 reached end of life on Apr 30, 2023. It gets no more updates, including security fixes.
What is the latest version of MongoDB 4.2?
The latest MongoDB 4.2 release is 4.2.25, released on Dec 4, 2023.
When was MongoDB 4.2 released?
MongoDB 4.2 was released on Aug 31, 2019.
What should I upgrade MongoDB 4.2 to?
The recommended upgrade is MongoDB 9.0, currently at 9.0.2 and supported until Oct 31, 2031.
How do I check which MongoDB version I have?
Run mongod --version, then paste the result into the “Am I up to date?” box on this page.

Other MongoDB branches

All 33 →

← MongoDB 4.0 MongoDB 4.4 →

MongoDB 4.2 release history

RSS

Release dates for 26 MongoDB 4.2 versions, newest first.

  1. 4.2.25
  2. 4.2.24
  3. 4.2.23
  4. 4.2.22
  5. 4.2.21
  6. 4.2.20
  7. 4.2.19
  8. 4.2.18
  9. 4.2.17
  10. 4.2.16
All 26 releases
  1. 4.2.15
  2. 4.2.14
  3. 4.2.13
  4. 4.2.12
  5. 4.2.11
  6. 4.2.10
  7. 4.2.9
  8. 4.2.8
  9. 4.2.7
  10. 4.2.6
  11. 4.2.5
  12. 4.2.4
  13. 4.2.3
  14. 4.2.2
  15. 4.2.1
  16. 4.2.0

Keep track

MongoDB 4.2 latest version badge

Official release policy · Checked 2 hours ago