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.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- purpleracc00n/CVE-2019-16941 (4 stars, last pushed 2019-10-03): PoC for CVE-2019-16941
Also mentioned in 4 other repositories (0xT11/CVE-POC, developer3000S/PoC-in-GitHub, geeksniper/reverse-engineering-toolkit, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
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
This CVE has public exploit evidence. See the latest CVEs with public exploits.