CVE-2024-8013
CSFLE and Queryable Encryption self-lookup may fail to encrypt values in subpipelines
- Published
- Updated
- Reserved
- Assigned by
- mongodb
Description
A bug in query analysis of certain complex self-referential $lookup subpipelines may result in literal values in expressions for encrypted fields to be sent to the server as plaintext instead of ciphertext. Should this occur, no documents would be returned or written. This issue affects mongocryptd binary (v5.0 versions prior to 5.0.29, v6.0 versions prior to 6.0.17, v7.0 versions prior to 7.0.12 and v7.3 versions prior to 7.3.4) and mongo_crypt_v1.so shared libraries (v6.0 versions prior to 6.0.17, v7.0 versions prior to 7.0.12 and v7.3 versions prior to 7.3.4) released alongside MongoDB Enterprise Server versions.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| mongodbCNA (assigner) | 3.1 | Low2.2 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N |
| NVDNVD · Analyzed | 3.1 | Low3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
- EPSS (exploitation in 30 days)
- 0.12% · top 98% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Low 2.2.
Weakness
Affected products
- affected 5.0 – < 5.0.29
- affected 6.0 – < 6.0.17
- affected 7.0 – < 7.012
- affected 7.3 – < 7.3.4
MongoDB Inc · Mongo_crypt_v1.so
- affected 6.0 – < 6.0.17
- affected 7.0 – < 7.0.12
- affected 7.3 – < 7.3.4
References (1)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2024-8013)Record last updated .