CVE-2026-49497: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in nationalsecurityagency ghidra
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.
AI Analysis
Technical Summary
CVE-2026-49497 is a path traversal vulnerability in the National Security Agency's Ghidra software before version 12.1. The issue exists in the SameDirDebugInfoProvider, which does not properly validate filenames obtained from the .gnu_debuglink sections of ELF binaries. An attacker can craft malicious ELF binaries containing directory traversal sequences to cause Ghidra to access files outside the intended directory scope. This can be exploited during automatic DWARF debug information analysis to probe for the existence of files on the filesystem and leak CRC32 hashes of arbitrary files. There is no vendor advisory or patch information currently available, and no known exploits in the wild have been reported.
Potential Impact
An attacker can use specially crafted ELF binaries to cause Ghidra to access and leak information about arbitrary files on the host filesystem, specifically CRC32 hashes. This could potentially aid in reconnaissance or further attacks by revealing file presence and content hashes. The vulnerability requires local access (attack vector: local) and user interaction, with low complexity and no privileges required. The overall impact is rated medium with a CVSS score of 4.6.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should exercise caution when analyzing untrusted ELF binaries with Ghidra versions prior to 12.1. Avoid opening suspicious or unverified ELF files to reduce risk.
CVE-2026-49497: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in nationalsecurityagency ghidra
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.
CVSS v4.0
Score 4.6medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-49497 is a path traversal vulnerability in the National Security Agency's Ghidra software before version 12.1. The issue exists in the SameDirDebugInfoProvider, which does not properly validate filenames obtained from the .gnu_debuglink sections of ELF binaries. An attacker can craft malicious ELF binaries containing directory traversal sequences to cause Ghidra to access files outside the intended directory scope. This can be exploited during automatic DWARF debug information analysis to probe for the existence of files on the filesystem and leak CRC32 hashes of arbitrary files. There is no vendor advisory or patch information currently available, and no known exploits in the wild have been reported.
Potential Impact
An attacker can use specially crafted ELF binaries to cause Ghidra to access and leak information about arbitrary files on the host filesystem, specifically CRC32 hashes. This could potentially aid in reconnaissance or further attacks by revealing file presence and content hashes. The vulnerability requires local access (attack vector: local) and user interaction, with low complexity and no privileges required. The overall impact is rated medium with a CVSS score of 4.6.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should exercise caution when analyzing untrusted ELF binaries with Ghidra versions prior to 12.1. Avoid opening suspicious or unverified ELF files to reduce risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-05-31T11:54:34.994Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a2967aec9170919df1fd473
Added to database: 06/10/2026, 13:33:34 UTC
Last enriched: 07/15/2026, 10:07:56 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 139
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.