CVE-2026-1849

Source
https://cve.org/CVERecord?id=CVE-2026-1849
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-1849.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-1849
Aliases
Downstream
Published
2026-02-10T18:52:52.737Z
Modified
2026-07-22T00:33:50.858793Z
Severity
  • 7.1 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Mongod can run out of stack memory when expressions create deeply nested documents
Details

MongoDB Server may experience an out-of-memory failure while evaluating expressions that produce deeply nested documents. The issue arises in recursive functions because the server does not periodically check the depth of the expression.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/1xxx/CVE-2026-1849.json",
    "cna_assigner": "mongodb",
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "introduced": "8.0"
                },
                {
                    "fixed": "8.0.18"
                },
                {
                    "introduced": "7.0"
                },
                {
                    "fixed": "7.0.29"
                },
                {
                    "introduced": "8.2"
                },
                {
                    "fixed": "8.2.2"
                }
            ]
        }
    ],
    "cwe_ids": [
        "CWE-674"
    ]
}
References

Affected packages

Git / github.com/mongodb/mongo

Affected ranges

Type
GIT
Repo
https://github.com/mongodb/mongo
Events
Database specific
{
    "cpe": "cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*",
    "source": "CPE_RANGE",
    "extracted_events": [
        {
            "introduced": "7.0.0"
        },
        {
            "fixed": "7.0.29"
        },
        {
            "introduced": "8.0.0"
        },
        {
            "fixed": "8.0.18"
        },
        {
            "introduced": "8.2.0"
        },
        {
            "fixed": "8.2.2"
        }
    ]
}

Affected versions

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.21
r7.0.21-alpha0
r7.0.21-rc0
r7.0.22
r7.0.22-rc0
r7.0.23
r7.0.23-rc0
r7.0.23-rc1
r7.0.24
r7.0.24-rc0
r7.0.25-alpha0
r7.0.26
r7.0.26-rc0
r7.0.27-alpha0
r7.0.28
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.10
r8.0.10-rc0
r8.0.12
r8.0.12-rc0
r8.0.13
r8.0.13-rc0
r8.0.13-rc1
r8.0.13-rc2
r8.0.14
r8.0.14-rc0
r8.0.14-rc1
r8.0.16
r8.0.16-rc0
r8.0.16-rc1
r8.0.17
r8.0.17-alpha0
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
r8.2.0
r8.2.1
r8.2.1-rc0
r8.2.1-rc1

Database specific

vanir_signatures
[
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "11272611040114298527385613556453291829",
                "175117650864466198429070599697755025763",
                "259372737161260841017051100781998432651",
                "190191220307360414594805946771026217001",
                "29054105381567763046288516247318577171",
                "80859590129831648960865656848228415255",
                "259393610319526121774434945054847506142"
            ]
        },
        "signature_version": "v1",
        "source": "https://github.com/mongodb/mongo/commit/b409fb494004bf0f7284059b806b3b751a2ec5d9",
        "signature_type": "Line",
        "target": {
            "file": "src/mongo/db/service_entry_point_common.cpp"
        },
        "id": "CVE-2026-1849-b3f79aa4",
        "deprecated": false
    },
    {
        "digest": {
            "length": 9728.0,
            "function_hash": "59615453827642453525115701432201606392"
        },
        "signature_version": "v1",
        "source": "https://github.com/mongodb/mongo/commit/b409fb494004bf0f7284059b806b3b751a2ec5d9",
        "signature_type": "Function",
        "target": {
            "function": "ExecCommandDatabase::_initiateCommand",
            "file": "src/mongo/db/service_entry_point_common.cpp"
        },
        "id": "CVE-2026-1849-b50a3bee",
        "deprecated": false
    }
]
vanir_signatures_modified
"2026-07-22T00:33:50Z"
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-1849.json"