# CVE-2026-106057: patool before 4.0.6 OS Command Injection on Windows via shell_quote_nt

- 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
- Likelihood of exploitation in the next 30 days (EPSS): 0.75%, higher than 56% of CVEs (2026-12-01)
- Published: 2026-10-07T11:59:37.019Z
- Modified: 2026-10-07T16:02:48.300Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

patool before 4.0.6 contains an OS command injection vulnerability on Windows because shell_quote_nt fails to escape cmd.exe metacharacters or embedded double quotes in archive filenames. Attackers can supply crafted filenames like report&calc.gz for single-file formats run with shell=True to execute commands with patool process privileges.

(As written by CVE List.)

## Affected

- wummel patool: before 4.0.6 (not affected: 4.0.6)

## 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/wummel/patool/commit/592f35761f428afbcde2888ecd3cc4af43881aeb> (patch)
- <https://github.com/wummel/patool> (product)
- <https://github.com/wummel/patool/blob/4.0.5/patoolib/util.py#L110-L116> (technical-description)
- <https://www.vulncheck.com/advisories/patool-before-4.0.6-os-command-injection-on-windows-via-shell-quote-nt> (third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2026-106057 · Whole record: https://cve.day/CVE-2026-106057.json · Rebuilt by cve.day 2026-11-25T22:59:42.707Z
