CVE-2026-49496 Ghidra < 12.1 - Heap-Use-After-Free in SleighBuilder::generatePointerAdd via Vector Reallocation

Medium 6.9 Published Updated

Attackers can trigger memory corruption and potential code execution by decompiling malicious binaries in Ghidra via the Sleigh API.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-49496?

CVE-2026-49496 is a medium-severity use after free vulnerability in nationalsecurityagency ghidra, published on 10 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Ghidra before 12.1 contains a heap-use-after-free vulnerability in SleighBuilder::generatePointerAdd caused by iterator invalidation when PcodeCacher::allocateInstruction reallocates the issued vector. Attackers can trigger memory corruption by decompiling malicious binaries through the public Sleigh::oneInstruction C++ API, affecting downstream SLEIGH library consumers.

Weakness: CWE-416

Which versions are affected by CVE-2026-49496?

It affects 1 product.

Products include Nsa Ghidra.

How do I fix CVE-2026-49496?

No fix has been published for CVE-2026-49496 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2026-49496 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49496 exists.

Sources

Also known as GHSA-gqh9-2c72-wpjc.

Is CVE-2026-49496 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free