CVE-2026-49497

Ghidra < 12.1 - Path Traversal via .gnu_debuglink in DWARF External Debug File Resolution

Published Jun 10, 2026 CVSS 4.0 · 4.6 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 14, 2026, 9:33 PM
Reserved
May 31, 2026, 11:54 AM
Status
Analyzed
Published
Jun 10, 2026, 2:16 PM
Modified
Oct 25, 2026, 11:10 PM