CVE-2024-1351: MongoDB Server may allow successful untrusted connection

CVE-2024-1351 affects 15 listed versions of MongoDB in the Dawnsentry catalogue.

9.8CVSS critical
None knownexploitation
under 1%EPSS (next 30 days)
7 March 2024published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

MongoDB

15 of 250 listed versions are affected. Fixed in 5.0.25, 4.4.29. The newest release, 9.0.8, is not affected.

5.0.24 5.0.23 5.0.22 5.0.21 4.4.28 4.4.27 4.4.26 4.4.25 4.4.24 4.4.23 4.4.22 4.4.21 4.4.20 4.4.19 4.4.18

What it is

Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which may result in untrusted connections to succeed. This may effectively reduce the security guarantees provided by TLS and open connections that should have been closed due to failing certificate validation. This issue affects MongoDB Server v7.0 versions prior to and including 7.0.5, MongoDB Server v6.0 versions prior to and including 6.0.13, MongoDB Server v5.0 versions prior to and including 5.0.24 and MongoDB Server v4.4 versions prior to and including 4.4.28. Required Configuration : A server process will allow incoming connections to skip peer certificate validation if the server process was started with TLS enabled (net.tls.mode set to allowTLS, preferTLS, or requireTLS) and without a net.tls.CAFile configured.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by Mongodb on 7 March 2024. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2024-1351 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.