# CVE-2024-8013: CSFLE and Queryable Encryption self-lookup may fail to encrypt values in subpipelines

> CVE-2024-8013: CSFLE and Queryable Encryption self-lookup may fail to encrypt values in subpipelines. CVSS 2.2 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2024-8013
Last updated: 2026-06-17T08:21:40Z

- Published: 2024-10-28 12:58 UTC · Updated: 2026-06-17 08:21 UTC · Assigner: mongodb
- CVSS: 2.2 (CVSS 3.1) · Severity: Low · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N
- EPSS: 0.12%, 2th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-319

## 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.

## Affected vendors and products

- MongoDB Inc: mongocryptd
- MongoDB Inc: Mongo\_crypt\_v1.so

## Tracked companies

- [MongoDB Atlas](https://rewindex.com/company/mongodb-atlas.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2024-8013)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2024-8013)
- [https://jira.mongodb.org/browse/SERVER-96254](https://jira.mongodb.org/browse/SERVER-96254)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2024-8013 · Markdown: https://rewindex.com/cve/CVE-2024-8013.md · JSON: https://rewindex.com/api/v1/cves/CVE-2024-8013 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:09:05.746Z
