Menu

inStrain Passed BAM File Names Straight to a Shell
📰

inStrain Passed BAM File Names Straight to a Shell

DEV Community: cybersecurity·andreagomez·3 days ago
#reTBTVYn
#devtocybersecurity#devto#dev#shell#file
Long article (552 words) — no AI summary yet.
Reading 0:00
15s threshold

inStrain Passed BAM File Names Straight to a Shell

inStrain is a bioinformatics tool for strain-level analysis of microbial sequencing data. Before version 1.12.1, several code paths built shell commands with the path to a BAM or SAM file and did not quote the filename. A file named with command substitution or backticks could run an operating-system command with the analyst's privileges.

The issue is CVE-2026-141338. The public description names run_coverm , _sam_to_bam , and subset_bam as paths that passed the mapping-file name through a shell. The vendor fix in 1.12.1 states that mapping-file paths are no longer sent through a shell and that paths with spaces now work in those paths.

A filename is attacker-controlled input

Scientific workflows exchange BAM and SAM files through shared storage, job queues, sample sheets, and email. The person who runs inStrain may not be the person who created the filename.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.