CVE-2026-40029

parseusbs < 1.9 Command Injection via Crafted LNK Filename

Published Apr 8, 2026 CVSS 4.0 · 8.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is an OS command injection flaw in parseusbs, present in all versions before 1.9, caused by unsanitized .lnk filenames being fed directly into an os.popen() shell command. An attacker can craft a .lnk filename containing shell metacharacters, causing the forensic parser to execute arbitrary commands on the host machine. This flaw is a classic command‑line injection (CWE‑78) that can lead to full control of the machine running the parser.

Affected Systems

The affected product is parseusbs by khyrenz. All installations of parseusbs older than version 1.9 are vulnerable. No specific sub‑version is listed beyond the major release cutoff.

Risk and Exploitability

The CVSS score of 8.5 indicates a high severity vulnerability. The EPSS score is below 1%, meaning real‑world exploitation is currently unlikely, but the issue is not listed in the CISA KEV catalog. Exploitation requires an attacker to provide a USB drive with a specially crafted .lnk file and run parseusbs on a machine that will parse that file; thus the attack vector is local‑file based with the ability to execute arbitrary system commands.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update parseusbs to version 1.9 or later, or apply the patch available in commit 99f05996494e7e41ea0c7e13145ba20eb793e46b.
  • Avoid parsing USB drives that contain unknown or suspicious .lnk files until an update is applied.
  • If an update cannot be applied immediately, configure parseusbs to reject or sanitize filenames containing shell metacharacters before executing the parsing logic.
  • Audit parsing logs to detect any unexpected command execution attempts.

Generated by OpenCVE AI on April 13, 2026 at 21:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:khyrenz:parseusbs:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Khyrenz
Khyrenz parseusbs
Vendors & Products Khyrenz
Khyrenz parseusbs
Type Values Removed Values Added
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.
Title parseusbs < 1.9 Command Injection via Crafted LNK Filename
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:02 PM
Reserved
Apr 8, 2026, 1:36 PM
Status
Analyzed
Published
Apr 8, 2026, 10:16 PM
Modified
Jul 24, 2026, 9:10 PM