CVE-2024-11991 Uninitialized memory access in Motoko incremental garbage collector
Attackers can read or write unauthorized memory in Motoko canisters if the incremental garbage collector is enabled.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-11991?
CVE-2024-11991 is a medium-severity memory corruption vulnerability in Internet Computer Motoko, published on 9 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-908
Which versions are affected by CVE-2024-11991?
It affects 1 product.
Products include Dfinity Motoko.
How do I fix CVE-2024-11991?
No fix has been published for CVE-2024-11991 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-11991 being exploited?
There is no known exploitation of CVE-2024-11991 in the wild and no public exploit code.
Sources
Also known as GHSA-9rhg-3qf8-hrv3.