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

- Severity: Low 2.2 (CVSS:3.1, scored by mongodb) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:N/A: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.12%, higher than 2% of CVEs (2026-12-02)
- Published: 2024-10-28T12:58:05.317Z
- Modified: 2026-06-17T08:21:40.377Z
- Weaknesses: CWE-319
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- MongoDB Inc mongocryptd: from 5.0 before 5.0.29; from 6.0 before 6.0.17; from 7.0 before 7.012; from 7.3 before 7.3.4
- MongoDB Inc Mongo_crypt_v1.so: from 6.0 before 6.0.17; from 7.0 before 7.0.12; from 7.3 before 7.3.4
- mongodb mongo_crypt_v1.so: from 6.0.0 before 6.0.17; from 7.0.0 before 7.0.12; from 7.3.0 before 7.3.4
- mongodb mongocryptd: from 5.0.0 before 5.0.29; from 6.0.0 before 6.0.17; from 7.0.0 before 7.0.12; from 7.3.0 before 7.3.4

## Every score

- mongodb: CVSS:3.1 2.2 Low `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://jira.mongodb.org/browse/SERVER-96254> (vendor-advisory)

## Sources

- CVE List: [CVE-2024-8013](https://www.cve.org/CVERecord?id=CVE-2024-8013), CVE Terms of Use, modified 2024-10-28
- NVD: [CVE-2024-8013](https://nvd.nist.gov/vuln/detail/CVE-2024-8013), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-8013 · Whole record: https://cve.day/CVE-2024-8013.json · Rebuilt by cve.day 2026-11-25T22:58:47.392Z
