CVE-2026-141338: inStrain before 1.12.1 OS Command Injection via BAM or SAM File Name
inStrain before 1.12.1 contains an OS command injection vulnerability that allows attackers to execute commands by embedding shell syntax in mapping file names. Attackers can supply a BAM or SAM file named with $(...) or backticks, which runcoverm, samtobam, or subsetbam pass unquoted to a shell, executing commands as the analyst.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to exploitation?
Analysts using affected inStrain versions are exposed when they process a BAM or SAM mapping file whose filename is attacker-controlled or otherwise contains shell syntax. The injected command executes with the privileges of the analyst running inStrain.
What must an attacker provide to trigger the issue?
The attacker needs to cause an affected workflow to process a BAM or SAM file with shell command-substitution syntax in its name, such as $(...) or backticks. The vulnerable paths identified are run_coverm, _sam_to_bam, and subset_bam, which pass the filename to a shell without quoting.
Are versions with the fix affected?
No. The issue affects inStrain versions before 1.12.1; upgrading to 1.12.1 or later addresses the affected version range described.