---
id: CVE-2026-115394
title: Ghidra through 12.2 Denial of Service via BinaryField Memory Allocation
summary: >-
  Ghidra through 12.2 contains an uncontrolled memory allocation vulnerability
  in BinaryField.read() that allows attackers to exhaust heap memory via an
  unchecked 32-bit length field. Attackers can persuade users to import a
  crafted GZF pa…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'
cvssSource: cna
cwe:
  - CWE-789
vendor: NationalSecurityAgency
product: ghidra
affected:
  - ghidra <= 12.2
published: '2026-10-22'
updated: '2026-10-22'
sourceUpdated: '2026-10-22T19:14:00.068Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-115394'
references:
  - url: >-
      https://github.com/NationalSecurityAgency/ghidra/security/advisories/GHSA-q538-hhhf-5jxp
    label: GitHub Security Advisory (GHSA-q538-hhhf-5jxp)
  - url: >-
      https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.2_build/Ghidra/Framework/DB/src/main/java/db/BinaryField.java#L105-L113
  - url: >-
      https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.2_build/Ghidra/Framework/DB/src/main/java/db/buffers/DataBuffer.java#L170-L174
  - url: 'https://github.com/NationalSecurityAgency/ghidra'
  - url: >-
      https://www.vulncheck.com/advisories/ghidra-through-12.2-denial-of-service-via-binaryfield-memory-allocation
    label: >-
      VulnCheck Advisory: Ghidra through 12.2 Denial of Service via BinaryField
      Memory Allocation
tags:
  - cve.org
ingestedAt: '2026-10-22T22:00:50.410Z'
---

## Overview

Ghidra through 12.2 contains an uncontrolled memory allocation vulnerability in BinaryField.read() that allows attackers to exhaust heap memory via an unchecked 32-bit length field. Attackers can persuade users to import a crafted GZF packed database file, triggering an OutOfMemoryError in PackedDatabase.open() that aborts the import and denies service.

## Affected

- `ghidra <= 12.2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
