Skip to content
Heist/ feed
Back to feed
Medium

mongodb — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-96297

Use of freed memory in the aggregation feature of MongoDB Server can cause the server to read data from a memory area after it has been released. When an internal aggregation stage is combined with a batch size of 0, the server may read from memory that is no longer in use. Because that memory can be reused for other data before it is read, query results returned to the client may contain unrelated data from the server process. Depending on the state of memory at the time, the server process may also terminate unexpectedly. The behavior can occur when an authenticated user with read privileges runs an aggregate command that combines these two settings.

Products
mongodb
Affected versions
1:2.4.6-0ubuntu5, 1:2.4.6-0ubuntu6, 1:2.4.8-1ubuntu1, 1:2.4.8-2, 1:2.4.9-1, 1:2.4.9-1ubuntu1, 1:2.4.9-1ubuntu2, 1:2.4.9-1ubuntu2+esm2, 1:2.6.10-0ubuntu1, 1:2.6.10-0ubuntu1+esm2, 1:3.4.14-3ubuntu1, 1:3.4.14-3ubuntu2, 1:3.4.7-1, 1:3.4.7-1ubuntu1, 1:3.4.7-1ubuntu2, 1:3.4.7-1ubuntu4, 1:3.6.3-0ubuntu1, 1:3.6.3-0ubuntu1.1, 1:3.6.3-0ubuntu1.3, 1:3.6.3-0ubuntu1.4, 1:3.6.3-0ubuntu1.4+esm1, 1:3.6.3-0ubuntu1.4+esm2, 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2, 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5, 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.2, 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3, 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3+esm1
Fixed versions
Not specified
CVEs
CVE-2026-96297
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:34 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-96297

core-osv · Original source

Published 13 Oct 2026, 16:17 UTC

Use of freed memory in the aggregation feature of MongoDB Server can cause the server to read data from a memory area after it has been released. When an internal aggregation stage is combined with a batch size of 0, the server may read from memory that is no longer in use. Because that memory can be reused for other data before it is read, query results returned to the client may contain unrelated data from the server process. Depending on the state of memory at the time, the server process may also terminate unexpectedly. The behavior can occur when an authenticated user with read privileges runs an aggregate command that combines these two settings.

osv:UBUNTU-CVE-2026-96297

mongodb

Fixed versions: Not specified

mongodb

Fixed versions: Not specified

mongodb

Fixed versions: Not specified

mongodb

Fixed versions: Not specified

Complete source record
{
  "id": "6d8daa4012dceb3dc4c304c7638b31bbb09f3e282dc39de9b76ae075fb36cb30",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-96297",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-96297",
    "summary": "Use of freed memory in the aggregation feature of MongoDB Server can cause the server to read data from a memory area after it has been released. When an internal aggregation stage is combined with a batch size of 0, the server may read from memory that is no longer in use. Because that memory can be reused for other data before it is read, query results returned to the client may contain unrelated data from the server process. Depending on the state of memory at the time, the server process may also terminate unexpectedly. The behavior can occur when an authenticated user with read privileges runs an aggregate command that combines these two settings.",
    "evidence": "osv:UBUNTU-CVE-2026-96297",
    "products": [
      {
        "name": {
          "value": "mongodb",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:2.4.6-0ubuntu5",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1:2.4.6-0ubuntu6",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1:2.4.8-1ubuntu1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1:2.4.8-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1:2.4.9-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1:2.4.9-1ubuntu1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1:2.4.9-1ubuntu2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1:2.4.9-1ubuntu2+esm2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mongodb",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:2.6.10-0ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1:2.6.10-0ubuntu1+esm2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mongodb",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:3.4.7-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:3.4.7-1ubuntu1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:3.4.7-1ubuntu2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:3.4.7-1ubuntu4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:3.4.14-3ubuntu1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:3.4.14-3ubuntu2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:3.6.3-0ubuntu1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:3.6.3-0ubuntu1.1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:3.6.3-0ubuntu1.3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:3.6.3-0ubuntu1.4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:3.6.3-0ubuntu1.4+esm1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:3.6.3-0ubuntu1.4+esm2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mongodb",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3+esm1",
            "evidence": "/affected/3/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-96297",
      "aliases": [
        "UBUNTU-CVE-2026-96297"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
        },
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mongodb",
            "purl": "pkg:deb/ubuntu/mongodb?arch=source&distro=esm-infra-legacy%2Ftrusty",
            "ecosystem": "Ubuntu:Pro:14.04:LTS"
          },
          "versions": [
            "1:2.4.6-0ubuntu5",
            "1:2.4.6-0ubuntu6",
            "1:2.4.8-1ubuntu1",
            "1:2.4.8-2",
            "1:2.4.9-1",
            "1:2.4.9-1ubuntu1",
            "1:2.4.9-1ubuntu2",
            "1:2.4.9-1ubuntu2+esm2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-96297.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "mongodb",
                "binary_version": "1:2.4.9-1ubuntu2+esm2"
              },
              {
                "binary_name": "mongodb-clients",
                "binary_version": "1:2.4.9-1ubuntu2+esm2"
              },
              {
                "binary_name": "mongodb-server",
                "binary_version": "1:2.4.9-1ubuntu2+esm2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mongodb",
            "purl": "pkg:deb/ubuntu/mongodb?arch=source&distro=esm-apps%2Fxenial",
            "ecosystem": "Ubuntu:Pro:16.04:LTS"
          },
          "versions": [
            "1:2.6.10-0ubuntu1",
            "1:2.6.10-0ubuntu1+esm2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-96297.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "mongodb",
                "binary_version": "1:2.6.10-0ubuntu1+esm2"
              },
              {
                "binary_name": "mongodb-clients",
                "binary_version": "1:2.6.10-0ubuntu1+esm2"
              },
              {
                "binary_name": "mongodb-server",
                "binary_version": "1:2.6.10-0ubuntu1+esm2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mongodb",
            "purl": "pkg:deb/ubuntu/mongodb?arch=source&distro=esm-apps%2Fbionic",
            "ecosystem": "Ubuntu:Pro:18.04:LTS"
          },
          "versions": [
            "1:3.4.7-1",
            "1:3.4.7-1ubuntu1",
            "1:3.4.7-1ubuntu2",
            "1:3.4.7-1ubuntu4",
            "1:3.4.14-3ubuntu1",
            "1:3.4.14-3ubuntu2",
            "1:3.6.3-0ubuntu1",
            "1:3.6.3-0ubuntu1.1",
            "1:3.6.3-0ubuntu1.3",
            "1:3.6.3-0ubuntu1.4",
            "1:3.6.3-0ubuntu1.4+esm1",
            "1:3.6.3-0ubuntu1.4+esm2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-96297.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "mongodb",
                "binary_version": "1:3.6.3-0ubuntu1.4+esm2"
              },
              {
                "binary_name": "mongodb-clients",
                "binary_version": "1:3.6.3-0ubuntu1.4+esm2"
              },
              {
                "binary_name": "mongodb-server",
                "binary_version": "1:3.6.3-0ubuntu1.4+esm2"
              },
              {
                "binary_name": "mongodb-server-core",
                "binary_version": "1:3.6.3-0ubuntu1.4+esm2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mongodb",
            "purl": "pkg:deb/ubuntu/mongodb?arch=source&distro=esm-apps%2Ffocal",
            "ecosystem": "Ubuntu:Pro:20.04:LTS"
          },
          "versions": [
            "1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2",
            "1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5",
            "1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.2",
            "1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3",
            "1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3+esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-96297.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "mongodb",
                "binary_version": "1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3+esm1"
              },
              {
                "binary_name": "mongodb-clients",
                "binary_version": "1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3+esm1"
              },
              {
                "binary_name": "mongodb-server",
                "binary_version": "1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3+esm1"
              },
              {
                "binary_name": "mongodb-server-core",
                "binary_version": "1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3+esm1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:01:19.590766837Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-96297"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-96297",
        "https://www.cve.org/CVERecord?id=CVE-2026-96297",
        "https://jira.mongodb.org/browse/SERVER-132946"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-96297",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 361691,
  "published_at": "2026-10-13T16:17:00+00:00"
}