# CVE-2026-4148: ExpressionContext use-after-free in classic engine $lookup and $graphLookup aggregation operators

- Severity: High 8.7 (CVSS:4.0, scored by mongodb) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-02)
- Published: 2026-03-17T15:53:57.874Z
- Modified: 2026-09-08T08:45:15.174Z
- Also known as: BIT-MONGODB-2026-4148
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mongodb

## Description

A use-after-free vulnerability can be triggered in sharded clusters by an authenticated user with the read role who issues a specially crafted $lookup or $graphLookup aggregation pipeline.

(As written by CVE List.)

## Affected

- MongoDB Inc MongoDB Server: from 8.2 before 8.2.6; from 8.0 before 8.0.20; from 7.0 before 7.0.31
- mongodb mongodb: from 7.0.0 before 7.0.31; from 8.0.0 before 8.0.20; from 8.2.0 before 8.2.6; 8.3.0
- mongodb (Bitnami): from 7.0.0 before 7.0.31; from 8.0.0 before 8.0.20; from 8.2.0 before 8.2.6; from 8.3.0 before 8.3.1

## Every score

- mongodb: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- mongodb: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://jira.mongodb.org/browse/SERVER-119319> (advisory, patch, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-4148> (web)

## Sources

- CVE List: [CVE-2026-4148](https://www.cve.org/CVERecord?id=CVE-2026-4148), CVE Terms of Use, modified 2026-03-18
- NVD: [CVE-2026-4148](https://nvd.nist.gov/vuln/detail/CVE-2026-4148), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MONGODB-2026-4148](https://osv.dev/vulnerability/BIT-MONGODB-2026-4148), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-4148 · Whole record: https://cve.day/CVE-2026-4148.json · Rebuilt by cve.day 2026-11-25T22:59:16.046Z
