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

- Severity: High 8.5 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-12-01T15:43:12.662Z
- Modified: 2026-12-01T16:18:27.203Z
- Weaknesses: CWE-78
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- MrOlm inStrain: before 1.12.1

## Every score

- VulnCheck: CVSS:4.0 8.5 High `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`
- VulnCheck: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/MrOlm/inStrain/issues/231> (issue-tracking)
- <https://github.com/MrOlm/inStrain/commit/a2b18e9648d58ddac2bde393ba9da308a5384cdd> (patch)
- <https://github.com/MrOlm/inStrain/blob/v1.12.0/inStrain/quickProfile.py#L82-L93> (technical-description)
- <https://www.vulncheck.com/advisories/instrain-before-1.12.1-os-command-injection-via-bam-or-sam-file-name> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-141338](https://www.cve.org/CVERecord?id=CVE-2026-141338), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-141338](https://nvd.nist.gov/vuln/detail/CVE-2026-141338), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-141338 · Whole record: https://cve.day/CVE-2026-141338.json · Rebuilt by cve.day 2026-12-01T16:32:21.726Z
