ExpressionContext use-after-free in classic engine $lookup and $graphLookup aggregation operators
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-416 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MongoDB | MongoDB Server | 8.2 to before 8.2.6; 8.0 to before 8.0.20; 7.0 to before 7.0.31 | 8.2.6, 8.0.20, 7.0.31 | Patch available | CNA |
- MongoDB Server VendorMongoDB Affected 8.2 to before 8.2.6; 8.0 to before 8.0.20; 7.0 to before 7.0.31 Fixed in 8.2.6, 8.0.20, 7.0.31 Patch available CNA
CPE configurations NVD · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:mongodb:mongodb:*:*:*:*:-:*:*:* | 7.0.0 to before 7.0.31; 8.0.0 to before 8.0.20; 8.2.0 to before 8.2.6 | Vulnerable | MongoDB |
| cpe:2.3:a:mongodb:mongodb:8.3.0:alpha0:*:*:-:*:*:* | 8.3.0 alpha0 | Vulnerable | MongoDB |
| cpe:2.3:a:mongodb:mongodb:8.3.0:alpha1:*:*:-:*:*:* | 8.3.0 alpha1 | Vulnerable | MongoDB |
| cpe:2.3:a:mongodb:mongodb:8.3.0:alpha2:*:*:-:*:*:* | 8.3.0 alpha2 | Vulnerable | MongoDB |
| cpe:2.3:a:mongodb:mongodb:8.3.0:alpha3:*:*:-:*:*:* | 8.3.0 alpha3 | Vulnerable | MongoDB |
| cpe:2.3:a:mongodb:mongodb:8.3.0:rc1:*:*:-:*:*:* | 8.3.0 rc1 | Vulnerable | MongoDB |
- cpe:2.3:a:mongodb:mongodb:*:*:*:*:-:*:*:* Versions 7.0.0 to before 7.0.31; 8.0.0 to before 8.0.20; 8.2.0 to before 8.2.6 Vulnerable ·MongoDB
- cpe:2.3:a:mongodb:mongodb:8.3.0:alpha0:*:*:-:*:*:* Versions 8.3.0 alpha0 Vulnerable ·MongoDB
- cpe:2.3:a:mongodb:mongodb:8.3.0:alpha1:*:*:-:*:*:* Versions 8.3.0 alpha1 Vulnerable ·MongoDB
- cpe:2.3:a:mongodb:mongodb:8.3.0:alpha2:*:*:-:*:*:* Versions 8.3.0 alpha2 Vulnerable ·MongoDB
- cpe:2.3:a:mongodb:mongodb:8.3.0:alpha3:*:*:-:*:*:* Versions 8.3.0 alpha3 Vulnerable ·MongoDB
- cpe:2.3:a:mongodb:mongodb:8.3.0:rc1:*:*:-:*:*:* Versions 8.3.0 rc1 Vulnerable ·MongoDB
Remediation
- Fix · CNA MongoDB Server (MongoDB Inc) Fixed in 8.2.6, 8.0.20, 7.0.31
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
MongoDB Server 7.0.31, 8.0.20, 8.2.6
3 records Highest priority Priority MEDIUM 1 MEDIUM, 2 LOW
Other records, highest priority first
- TI-2026-03595 Stack memory disclosure in filemd5 commandPriority LOW 31
- TI-2026-03794 Memory safety issues in slot-based execution hash table spillPriority LOW 27
Timeline
- 2026-10-02 Threatist record created from CVE-2026-4148
- 2026-10-03 Alias added: GHSA-5rch-679r-cv33
References
More Mongodb vulnerabilities
- TI-2025-13542 Zlib compressed protocol header length confusion may allow memory read KEVCVSS 4.0HIGH 8.7
- TI-2013-01669 MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the… CVSS 2.0MEDIUM 6.0
- TI-2026-56639 Uncontrolled Resource Consumption in MongoDB Sharded Cluster Router Allows Unauthenticated Denial of Service CVSS 4.0HIGH 8.7
- TI-2026-56628 Reachable assertion in MongoDB Server CVSS 4.0HIGH 8.7
- TI-2026-15322 Improper Input Validation in MongoDB Aggregation Framework Allows Unauthenticated Denial of Service on mongos CVSS 4.0HIGH 8.7
- TI-2026-08537 Unbounded recursion in BSONColumn interleaved-reference causes pre-auth stack overflow CVSS 4.0HIGH 8.7
Sources
- CVE-2026-4148 · CVE Program
- CVE-2026-4148 · NVD
- FIRST EPSS
- GHSA-5rch-679r-cv33 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences