CVE-2026-40029 Details
Description
parseusbs before 1.9 contains an OS command injection vulnerability in parseUSBs.py where LNK file paths are passed unsanitized into an os.popen() shell command, allowing arbitrary command execution via crafted .lnk filenames containing shell metacharacters. An attacker can craft a .lnk filename with embedded shell metacharacters that execute arbitrary commands on the forensic examiner's machine during USB artifact parsing.
A command injection vulnerability has been identified in parseusbs versions prior to 1.9. The issue arises in the parseUSBs.py file, where LNK file paths are passed into an os.popen() shell command without proper sanitization. This flaw allows for arbitrary command execution on the forensic examiner's machine by embedding shell metacharacters in .lnk filenames. The vulnerability is exploited during the parsing of USB artifacts.
Users can update to parseusbs version 1.9 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 9, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/khyrenz/parseusbs/commit/99f05996494e7e41ea0c7e13145ba20eb793e46b | [email protected] | Patch |
| https://github.com/khyrenz/parseusbs/pull/10 | [email protected] | Issue Tracking |
| https://mobasi.ai/sentinel | [email protected] | Third Party Advisory |
| https://www.vulncheck.com/advisories/parseusbs-command-injection-via-crafted-lnk-filename | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| khyrenz parseusbs | < 1.9 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 13, 2026 | Initial Analysis | [email protected] |
| Apr 8, 2026 | New CVE Received | [email protected] |