XPath Injection in Nsa Ghidra
CVE-2019-16941
NSA Ghidra through 9.0.4, when experimental mode is enabled, allows arbitrary code execution if the Read XML Files feature of Bit Patterns Explorer is used with a modified XML document. This occurs in Features/BytePatterns/src/main/java/ghidra/bitpatterns/info/FileBitPatternInfoReader.java. An attack could start with an XML document that was originally created by DumpFunctionPatternInfoScript but then directly modified by an attacker (for example, to make a java.lang.Runtime.exec call).
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.051 (92.1th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 92nd percentile — 92.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.051 · newest: 0.051 · change: 0.000
Affected products
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/NationalSecurityAgency/ghidra/issues/1090 (Exploit, Patch, Third Party Advisory, Issue Tracking)
- github.com/NationalSecurityAgency/ghidra/blob/79d8f164f8bb8b15cfb60c5d4faeb8e1c… (Third Party Advisory)
- github.com/purpleracc00n/CVE-2019-16941
- github.com/NationalSecurityAgency/ghidra/commit/a17728f8c12effa171b17a25ccfb7e7…
- www.symantec.com/security-center/vulnerabilities/writeup/110223
- twitter.com/NSAGov/status/1178812792159248385
Frequently asked questions
- What is CVE-2019-16941?
- CVE-2019-16941 is a critical-severity vulnerability in Nsa Ghidra, classified under XML Injection (Blind XPath Injection). CVSS score: 9.8/10. Published 2019-09-28.
- How severe is CVE-2019-16941?
- Critical severity. CVSS v3 base score is 9.8 out of 10.
- Is CVE-2019-16941 known to be exploited?
- 5 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.