patchminder
Proof of concept · GitHub CVE-2025-6713

Broken access controlin MongoDB Server.

Published 7 Jul 2025 · Updated 18 Jul 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
High 7.7
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.5% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 6.0.22, 7.0.19, 8.0.7
In plain words

An unauthorized user may leverage a specially crafted aggregation pipeline to access data without proper authorization due to improper handling of the $mergeCursors stage in MongoDB Server. This may lead to access to data without further authorisation. This issue affects MongoDB Server MongoDB Server v8.0 versions prior to 8.0.7, MongoDB Server v7.0 versions prior to 7.0.19 and MongoDB Server v6.0 versions prior to 6.0.22

What to do now
  • Upgrade MongoDB Server to 6.0.22, 7.0.19, 8.0.7 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
MongoDB Server
6.0 to before 6.0.22
6.0.22
CVE record
MongoDB Server
7.0 to before 7.0.19
7.0.19
CVE record
MongoDB Server
8.0 to before 8.0.7
8.0.7
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 26 Jun 2025
    CVE ID reserved by mongodb.
  2. 7 Jul 2025
    Published in the CVE List.
  3. 18 Jul 2025
    CVE record last updated.
  4. 23 Aug 2025
    First public proof of concept on GitHub.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
1 repository
GitHubno warning signs foundc137req/CVE-2025-67131 stars · created 23 Aug 2025craft aggregation pipeline to access data without proper authorisation due to improper handling of $mergeCursors in MongoDB >v8.0 <8.0.7, >v7.0 <7.0.19, >v6.0 <6.0.22

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Server vulnerabilities

Same weakness: Improper authorization

All CWE-285 vulnerabilities

References
Cite this page

Patchminder. CVE-2025-6713: Broken access control in MongoDB Server. https://patchminder.com/cve/cve-2025-6713/ (accessed 5 December 2026).