Description
Ghidra before 12.1 contains a path traversal vulnerability in SameDirDebugInfoProvider that fails to validate filenames from ELF binary .gnu_debuglink sections before constructing file paths. Attackers can craft malicious ELF binaries with traversal sequences to probe filesystem existence and leak CRC32 hashes of arbitrary files during automatic DWARF analysis.
Published: 2026-06-10
Score: 4.6 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in Ghidra versions prior to 12.1. The SameDirDebugInfoProvider component fails to validate filenames extracted from ELF binary .gnu_debuglink sections, allowing a crafted ELF binary to introduce traversal sequences. When Ghidra automatically resolves DWARF external debug files, it concatenates the untrusted filename with a directory path, enabling path traversal. As a result, an attacker can probe the file system to discover the existence of files and leak CRC32 hashes of arbitrary files without needing direct file read permissions. The weakness is classified as CWE-22, leading to information‑disclosure risk.

Affected Systems

The affected product is Ghidra from the National Security Agency. Any deployment of Ghidra 12.0 or earlier is vulnerable. No sub‑version range is provided beyond the <12.1 threshold. The attack requires that the malicious ELF binary be processed by Ghidra, so the exploit surface is limited to systems where analysis of user‑supplied binaries is performed.

Risk and Exploitability

The CVSS score of 4.6 indicates a moderate impact, and the EPSS score is currently unavailable, suggesting no active exploitation data. Being absent from KEV also points to low immediate risk. The likely attack vector involves local or remote binaries that are fed to Ghidra’s DWARF analysis; therefore, any system that automatically processes potentially untrusted ELF files is at risk. Mitigation hinges on ensuring that the vulnerability is patched or that Ghidra is configured to avoid resolving external debug info from untrusted sources.

Generated by OpenCVE AI on June 10, 2026 at 14:36 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Ghidra 12.1 or later, which includes proper validation of .gnu_debuglink filenames.
  • If an upgrade is not feasible, configure Ghidra to disable automatic DWARF external debug file resolution or restrict access to debug link handling during analysis.
  • Restrict the set of ELF binaries that are analysis targets by scanning for .gnu_debuglink sections and rejecting those containing traversal characters, or by enforcing strict file permission controls on the directories Ghidra uses for debug files.

Generated by OpenCVE AI on June 10, 2026 at 14:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 10 Jun 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 10 Jun 2026 13:30:00 +0000

Type Values Removed Values Added
Description Ghidra before 12.1 contains a path traversal vulnerability in SameDirDebugInfoProvider that fails to validate filenames from ELF binary .gnu_debuglink sections before constructing file paths. Attackers can craft malicious ELF binaries with traversal sequences to probe filesystem existence and leak CRC32 hashes of arbitrary files during automatic DWARF analysis.
Title Ghidra < 12.1 - Path Traversal via .gnu_debuglink in DWARF External Debug File Resolution
First Time appeared Nsa
Nsa ghidra
Weaknesses CWE-22
CPEs cpe:2.3:a:nsa:ghidra:*:*:*:*:*:*:*:*
Vendors & Products Nsa
Nsa ghidra
References
Metrics cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N'}

cvssV4_0

{'score': 4.6, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-06-10T15:09:15.581Z

Reserved: 2026-05-31T11:54:34.994Z

Link: CVE-2026-49497

cve-icon Vulnrichment

Updated: 2026-06-10T15:09:07.852Z

cve-icon NVD

Status : Received

Published: 2026-06-10T14:16:34.643

Modified: 2026-06-10T14:16:34.643

Link: CVE-2026-49497

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-10T14:45:32Z

Weaknesses