{
  "id": "CVE-2026-13077",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-13077",
  "published_at": "2026-07-22T19:12:11.37Z",
  "title": "Out-of-Bounds Heap Read in BSON CodeWScope Element Parsing via Malformed BSONColumn Data",
  "vendor": "MongoDB",
  "product": "MongoDB Server",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "A missing bounds check in the BSON CodeWScope element accessors allows an attacker to trigger an out-of-bounds heap read via a crafted aggregation pipeline. The vulnerability can be exploited by an authenticated user by generating a malformed BSONColumn data containing a CodeWScope element, bypassing wire-level BSON validation. When the forged element is decompressed, the unchecked size value is used in pointer arithmetic, causing either a server crash or disclosure of adjacent heap memory contents.",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "MongoDB",
        "product": "MongoDB Server",
        "ranges": [
          "\u003e= 7.0, \u003c 7.0.39",
          "\u003e= 8.0, \u003c 8.0.28",
          "\u003e= 8.2.0, \u003c 8.2.12",
          "\u003e= 8.3.0, \u003c 8.3.7"
        ],
        "fixed_in": [
          "7.0.39",
          "8.0.28",
          "8.2.12",
          "8.3.7"
        ]
      }
    ],
    "upgrade": [
      "Upgrade MongoDB Server to 7.0.39 or 8.0.28 or 8.2.12 or 8.3.7 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
