CVE-2024-1351: MongoDB Server may allow successful untrusted connection
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.
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2024-1351?
CVE-2024-1351 has a high severity due to the risk of untrusted connections succeeding, compromising TLS security guarantees.
How do I fix CVE-2024-1351?
To fix CVE-2024-1351, ensure that the TLS certificate validation is properly configured and avoid using untrusted CA files.
Which versions of MongoDB Server are affected by CVE-2024-1351?
CVE-2024-1351 affects MongoDB Server versions up to 7.0.5, 6.0.13, 5.0.24, and 4.4.28.
What configuration issues lead to CVE-2024-1351?
CVE-2024-1351 occurs when the configurations of --tlsCAFile and tls.CAFile are set improperly, skipping peer certificate validation.
What are the potential consequences of CVE-2024-1351?
The potential consequences of CVE-2024-1351 include the establishment of untrusted connections, which can lead to data breaches and unauthorized access.