CVE-2025-6713

Source
https://cve.org/CVERecord?id=CVE-2025-6713
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-6713.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-6713
Aliases
Downstream
Published
2025-07-07T15:15:29.090Z
Modified
2026-04-12T19:16:07.614407Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
[none]
Details

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

References

Affected packages

Git / github.com/mongodb/mongo

Affected ranges

Type
GIT
Repo
https://github.com/mongodb/mongo
Events
Database specific
{
    "versions": [
        {
            "introduced": "6.0.0"
        },
        {
            "fixed": "6.0.22"
        },
        {
            "introduced": "7.0.0"
        },
        {
            "fixed": "7.0.19"
        },
        {
            "introduced": "8.0.0"
        },
        {
            "fixed": "8.0.7"
        }
    ]
}

Affected versions

r6.*
r6.0.0
r6.0.1
r6.0.1-rc0
r6.0.10
r6.0.10-rc0
r6.0.11
r6.0.11-rc0
r6.0.12
r6.0.12-rc0
r6.0.12-rc1
r6.0.13
r6.0.13-rc0
r6.0.14
r6.0.14-rc0
r6.0.14-rc1
r6.0.15
r6.0.15-rc0
r6.0.16
r6.0.16-rc0
r6.0.17
r6.0.17-rc0
r6.0.18
r6.0.18-rc0
r6.0.19
r6.0.2
r6.0.2-rc0
r6.0.2-rc1
r6.0.20
r6.0.20-rc0
r6.0.20-rc1
r6.0.20-rc2
r6.0.20-rc3
r6.0.21
r6.0.3
r6.0.3-rc0
r6.0.3-rc1
r6.0.3-rc2
r6.0.4
r6.0.4-rc0
r6.0.4-rc1
r6.0.5
r6.0.5-rc0
r6.0.5-rc1
r6.0.6
r6.0.6-rc0
r6.0.6-rc1
r6.0.7
r6.0.7-rc0
r6.0.8
r6.0.8-rc0
r6.0.9
r6.0.9-rc0
r6.0.9-rc1
r7.*
r7.0.0
r7.0.1
r7.0.1-rc0
r7.0.10
r7.0.10-rc0
r7.0.11
r7.0.11-rc0
r7.0.11-rc1
r7.0.11-rc2
r7.0.12
r7.0.12-rc0
r7.0.12-rc1
r7.0.13
r7.0.13-rc0
r7.0.13-rc1
r7.0.14
r7.0.14-rc0
r7.0.15
r7.0.15-rc0
r7.0.15-rc1
r7.0.16
r7.0.16-rc0
r7.0.16-rc1
r7.0.17
r7.0.18
r7.0.2
r7.0.2-rc0
r7.0.2-rc1
r7.0.2-rc2
r7.0.3
r7.0.3-rc0
r7.0.3-rc1
r7.0.4
r7.0.4-rc0
r7.0.5
r7.0.5-rc0
r7.0.6
r7.0.6-rc0
r7.0.7
r7.0.7-rc0
r7.0.7-rc1
r7.0.7-rc2
r7.0.8
r7.0.8-rc0
r7.0.9
r7.0.9-rc0
r7.0.9-rc1
r8.*
r8.0.0
r8.0.1
r8.0.1-rc0
r8.0.2
r8.0.3
r8.0.4
r8.0.4-rc0
r8.0.5
r8.0.5-rc0
r8.0.5-rc1
r8.0.5-rc2
r8.0.6

Database specific

vanir_signatures_modified
"2026-04-12T19:16:07Z"
vanir_signatures
[
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "214643683530774032100036489942452737529",
                "318477943940252881987496373792852256683",
                "198474435809438694509794776280487724710"
            ]
        },
        "deprecated": false,
        "signature_type": "Line",
        "source": "https://github.com/mongodb/mongo/commit/6cf88233f0c649695862b1b5be20c04b87f7e8f1",
        "signature_version": "v1",
        "id": "CVE-2025-6713-0b4e0751",
        "target": {
            "file": "src/mongo/db/pipeline/lite_parsed_document_source.h"
        }
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "138467260949863329498805639538379507808",
                "223198180086728900778837498337912589521",
                "148430034972700418827909772528237080451",
                "98898776309116250111447806208156160681",
                "140132014256917882686791854219027715215",
                "2073529888411466178012965154365761325",
                "23439098951180303377135904545527049056"
            ]
        },
        "deprecated": false,
        "signature_type": "Line",
        "source": "https://github.com/mongodb/mongo/commit/6cf88233f0c649695862b1b5be20c04b87f7e8f1",
        "signature_version": "v1",
        "id": "CVE-2025-6713-2653d96c",
        "target": {
            "file": "src/mongo/s/query/document_source_merge_cursors.cpp"
        }
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "167971444258294881142130961071240963937",
                "40580703834568146500067455680138133324",
                "148430034972700418827909772528237080451",
                "98898776309116250111447806208156160681",
                "140132014256917882686791854219027715215",
                "2073529888411466178012965154365761325",
                "23439098951180303377135904545527049056"
            ]
        },
        "deprecated": false,
        "signature_type": "Line",
        "source": "https://github.com/mongodb/mongo/commit/f2b89463945f47376156f270dbf193f74484a623",
        "signature_version": "v1",
        "id": "CVE-2025-6713-5690edc3",
        "target": {
            "file": "src/mongo/s/query/document_source_merge_cursors.cpp"
        }
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "138467260949863329498805639538379507808",
                "223198180086728900778837498337912589521",
                "148430034972700418827909772528237080451",
                "98898776309116250111447806208156160681",
                "140132014256917882686791854219027715215",
                "2073529888411466178012965154365761325",
                "23439098951180303377135904545527049056"
            ]
        },
        "deprecated": false,
        "signature_type": "Line",
        "source": "https://github.com/mongodb/mongo/commit/fc15786481d4e5e9ae1192425944e19d446a418e",
        "signature_version": "v1",
        "id": "CVE-2025-6713-59c2835d",
        "target": {
            "file": "src/mongo/s/query/document_source_merge_cursors.cpp"
        }
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "214643683530774032100036489942452737529",
                "318477943940252881987496373792852256683",
                "198474435809438694509794776280487724710"
            ]
        },
        "deprecated": false,
        "signature_type": "Line",
        "source": "https://github.com/mongodb/mongo/commit/f2b89463945f47376156f270dbf193f74484a623",
        "signature_version": "v1",
        "id": "CVE-2025-6713-ddf202f8",
        "target": {
            "file": "src/mongo/db/pipeline/lite_parsed_document_source.h"
        }
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "214643683530774032100036489942452737529",
                "318477943940252881987496373792852256683",
                "198474435809438694509794776280487724710"
            ]
        },
        "deprecated": false,
        "signature_type": "Line",
        "source": "https://github.com/mongodb/mongo/commit/fc15786481d4e5e9ae1192425944e19d446a418e",
        "signature_version": "v1",
        "id": "CVE-2025-6713-fb98bdd7",
        "target": {
            "file": "src/mongo/db/pipeline/lite_parsed_document_source.h"
        }
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-6713.json"