Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-1849 EUVD-2026-6757GHSA-cf58-vmg8-228p

Mongod can run out of stack memory when expressions create deeply nested documents

Published Feb 10, 2026 · Updated Feb 10, 2026 · Assigned by mongodb

Description

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.

Affected products

VendorProductAffectedFixed
MongoDB MongoDB Server 8.0 – < 8.0.18, 7.0 – < 7.0.29, 8.2 – < 8.2.2 8.0.18

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS mongodb No fix yet —
Ubuntu Pro 18.04 LTS mongodb No fix yet —

Advisories 1

References