---
id: CVE-2026-82056
title: >-
  A race condition in MongoDB server's text index query parsing can cause a heap
  use-after-free read when handling upsert retry paths
summary: >-
  A race condition in MongoDB server's text index query parsing can cause a heap
  use-after-free read when handling upsert retry paths. Under certain concurrent
  index lifecycle operations, a raw pointer to internal text index metadata may
  b…
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-416
vendor: mongodb
product: mongodb
affected:
  - 'mongodb >= 7.0.0, < 7.0.41'
  - 'mongodb >= 8.0.0, < 8.0.30'
  - 'mongodb >= 8.3.0, < 8.3.9'
patched:
  - mongodb 8.3.9
published: '2026-09-08'
updated: '2026-09-16'
sourceUpdated: '2026-09-16T20:35:00.040'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-82056'
references:
  - url: 'https://jira.mongodb.org/browse/SERVER-130306'
    label: cna@mongodb.com
tags:
  - nvd
  - cve.org
epss: 0.00248
epssPercentile: 0.16468
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-08T18:01:11.265849Z'
ingestedAt: '2026-09-08T16:34:19.257Z'
---

## Overview

A race condition in MongoDB server's text index query parsing can cause a heap use-after-free read when handling upsert retry paths. Under certain concurrent index lifecycle operations, a raw pointer to internal text index metadata may be dereferenced after the underlying structures have been freed, leading to a server crash. An authenticated user with readWrite privileges can trigger this condition through specific concurrent text-search and index management operations, resulting in denial of service for all connected clients. This

## Affected

- `mongodb >= 7.0.0, < 7.0.41`
- `mongodb >= 8.0.0, < 8.0.30`
- `mongodb >= 8.3.0, < 8.3.9`

## Remediation

Upgrade past the affected range:

- `mongodb 8.3.9`
