CVE-2026-141338: inStrain before 1.12.1 OS Command Injection via BAM or SAM File Name

Published Dec 1, 2026
·
Updated

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

1 affected component
pypi/inStrain<1.12.1

Event History

Dec 1, 2026
CVE Published
via OSV·03:43 PM
Data Sourced
via OSV·03:43 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203