ubuntu-cve-2026-4358
Vulnerability from osv_ubuntu
Published
2026-03-17 20:16
Modified
2026-04-22 07:57
Summary
Details

A specially crafted aggregation query with $lookup by an authenticated user with write privileges can cause a double-free or use-after-free memory issue in the slot-based execution (SBE) engine when an in-memory hash table is spilled to disk.


{
  "affected": [
    {
      "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"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:14.04:LTS",
        "name": "mongodb",
        "purl": "pkg:deb/ubuntu/mongodb@1:2.4.9-1ubuntu2+esm2?arch=source\u0026distro=esm-infra-legacy/trusty"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "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"
      ]
    },
    {
      "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"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:16.04:LTS",
        "name": "mongodb",
        "purl": "pkg:deb/ubuntu/mongodb@1:2.6.10-0ubuntu1+esm2?arch=source\u0026distro=esm-apps/xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1:2.6.10-0ubuntu1",
        "1:2.6.10-0ubuntu1+esm2"
      ]
    },
    {
      "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"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:18.04:LTS",
        "name": "mongodb",
        "purl": "pkg:deb/ubuntu/mongodb@1:3.6.3-0ubuntu1.4+esm2?arch=source\u0026distro=esm-apps/bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "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"
      ]
    },
    {
      "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"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:20.04:LTS",
        "name": "mongodb",
        "purl": "pkg:deb/ubuntu/mongodb@1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3+esm1?arch=source\u0026distro=esm-apps/focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "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"
      ]
    }
  ],
  "aliases": [],
  "details": "A specially crafted aggregation query with $lookup by an authenticated user with write privileges can cause a double-free or use-after-free memory issue in the slot-based execution (SBE) engine when an in-memory hash table is spilled to disk.",
  "id": "UBUNTU-CVE-2026-4358",
  "modified": "2026-04-22T07:57:43Z",
  "published": "2026-03-17T20:16:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2026-4358"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-4358"
    },
    {
      "type": "REPORT",
      "url": "https://jira.mongodb.org/browse/SERVER-118849"
    }
  ],
  "related": [],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2026-4358"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…