Skip to main content
Menu
CVEs

MrOlm inStrain OS command injection via BAM file names in run_coverm

Affects inStrain 1.12.0 and earlier when run on BAM or SAM files with crafted names, via quick_profile, .sam input, or --max_reads. Fixed in 1.12.1.

CVE-2026-141338Published December 1, 2026, updated

8.5HighCNA
Exploited
No known exploitation
Fix
Fixed in 1.12.1
Who is exposed
Specific setups only

Summary

Written by a model

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 run_coverm, _sam_to_bam, or subset_bam pass unquoted to a shell, executing commands as the analyst.

Who should check

Teams running inStrain 1.12.0 or earlier with quick_profile, .sam input to profile, or --max_reads, especially those processing BAM/SAM files from sequencing cores or collaborators on shared compute or HPC accounts.

“Affected versions: <= 1.12.0”

github.com

What to do

  1. Check whether your setup matches what the bug needs.

    inStrain before 1.12.1 (affected versions are 1.12.0 and earlier) Running quick_profile on a BAM file with a crafted name Running profile with a .sam input file (conversion to BAM) Running profile or compare with --max_reads
  2. Upgrade to a fixed version: 1.12.1.

  3. Workaround: Avoid running quick_profile, .sam input, or --max_reads on mapping files whose names you did not choose.

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

Check whether my systems are affected by CVE-2026-141338 (inStrain before 1.12.1 OS Command Injection via BAM or SAM File Name), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-141338 (entry last updated 2026-12-01):
Affected:
- PyPI package instrain: fixed in 1.12.1
Fixed versions: 1.12.1.
Conditions (all must be true for the bug to be hit):
- inStrain before 1.12.1 (affected versions are 1.12.0 and earlier) (source: https://www.vulncheck.com/advisories/instrain-before-1.12.1-os-command-injection-via-bam-or-sam-file-name)
- Running quick_profile on a BAM file with a crafted name (source: https://github.com/MrOlm/inStrain/issues/231)
- Running profile with a .sam input file (conversion to BAM) (source: https://github.com/MrOlm/inStrain/issues/231)
- Running profile or compare with --max_reads (source: https://github.com/MrOlm/inStrain/issues/231)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: local access, no login, a user action.
Workaround: Avoid running quick_profile, .sam input, or --max_reads on mapping files whose names you did not choose. (source: https://github.com/MrOlm/inStrain/issues/231)
CISA KEV: CVE-2026-141338 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-141338 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Packages (PyPI): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/MrOlm/inStrain/commit/a2b18e9648d58ddac2bde393ba9da308a5384cdd
- https://github.com/MrOlm/inStrain/issues/231
- https://github.com/MrOlm/inStrain/blob/v1.12.0/inStrain/quickProfile.py#L82-L93
- https://www.vulncheck.com/advisories/instrain-before-1.12.1-os-command-injection-via-bam-or-sam-file-name
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-141338
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-141338"}.

Affected versions

cve.now Index

24Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure5/25Specific setups only
  • Reach10/20Affects PyPI packages
  • Severity8.5/10CVSS 8.5
  • No patch0/5No signal

What would change the score

  • Would score about 74 if added to CISA KEV
  • Would score about 69 if CISA's SSVC rates exploitation active
  • Would score about 34 if CISA's SSVC rates it automatable

Timeline

  1. CVE published
  2. First seen by cve.now

Evidence 6

Questions about CVE-2026-141338

Is CVE-2026-141338 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: cve.now feed data

What does this mean?

A BAM or SAM file whose name contains shell command substitution such as $(...) can make inStrain run that embedded command as the user running the analysis. The commands run with the analyst's permissions, which on a shared compute or HPC account can reach other projects' data.

Source: vulncheck.com, github.com

Which versions are affected by CVE-2026-141338?

instrain (PyPI): before 1.12.1.

Source: cve.now feed data

Am I affected, and how do I check?

The affected versions are inStrain 1.12.0 and earlier, so check the installed version with inStrain --version or pip show instrain. The issue is reached through running quick_profile on a BAM file, running profile with a .sam input file (which is converted to BAM), or running profile or compare with --max_reads.

Source: vulncheck.com, github.com

How do I fix CVE-2026-141338?

Upgrade to inStrain 1.12.1, which is the fixed release published on PyPI. Until you upgrade, avoid running quick_profile, .sam input, or --max_reads on mapping files whose names you did not choose.

Source: vulncheck.com, github.com

No corrections so far. Something wrong on this page? Report an error.