# CVE-2024-11991: Uninitialized memory access in Motoko incremental garbage collector

- Severity: Medium 5.6 (CVSS:3.1, scored by Dfinity) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- 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.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-12-09T14:38:07.288Z
- Modified: 2026-06-17T06:58:50.457Z
- Weaknesses: CWE-908
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Dfinity

## Description

Motoko's incremental garbage collector is impacted by an uninitialized memory access bug, caused by incorrect use of write barriers in a few locations. This vulnerability could potentially allow unauthorized read or write access to a Canister's memory. However, exploiting this bug requires the Canister to enable the incremental garbage collector or enhanced orthogonal persistence, which are non-default features in Motoko.

(As written by CVE List.)

## Affected

- moc: from 0.9.0 up to 0.13.3
- dfinity motoko: from 0.9.0 before 0.13.4

## Every score

- Dfinity: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/dfinity/motoko/pull/4677> (issue-tracking, patch)
- <https://github.com/dfinity/motoko/security/advisories/GHSA-9rhg-3qf8-hrv3> (vendor-advisory)

## Sources

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

---

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