CVE-2024-4774 Memory corruption in Firefox
Undefined behavior in Firefox's shared memory handling could allow attackers to execute arbitrary code via crafted content.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-4774?
CVE-2024-4774 is a medium-severity memory corruption vulnerability in Mozilla Firefox, published on 14 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The `ShmemCharMapHashEntry()` code was susceptible to potentially undefined behavior by bypassing the move semantics for one of its data members. This vulnerability affects Firefox < 126.
Weakness: CWE-758
Which versions are affected by CVE-2024-4774?
It affects 1 product.
Products include Mozilla Firefox.
How do I fix CVE-2024-4774?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-4774 being exploited?
There is no known exploitation of CVE-2024-4774 in the wild and no public exploit code.
Other vulnerabilities in Mozilla Firefox
Sources
Also known as GHSA-36cp-x9pq-r87w, OESA-2025-1691, OESA-2025-1692, UBUNTU-CVE-2024-4774.