Allows arbitrary filesystem writes outside the extraction directory during extraction with filter="data". You are affected by this vulnerability if using the tarfile module to extract untrusted tar archives using TarFile.extractall() or TarFile.extract() using the filter= parameter with a value of "data" or "tar". See the tarfile extraction filters documentation https://docs.python.org/3/library/tarfile.html#tarfile-extraction-filter for more information. Note that for Python 3.14 or later the default value of filter= changed from "no filtering" to `"data", so if you are relying on this new default behavior then your usage is also affected. Note that none of these vulnerabilities significantly affect the installation of source distributions which are tar archives as source distributions already allow arbitrary code execution during the build process. However when evaluating source distributions it's important to avoid installing source distributions with suspicious links.
shell-quote's `quote()` function did not validate object-token inputs against the operator model used by `parse()`. The `.op` field was backslash-escaped character by character using `/(.)/g`, which in JavaScript does not match line terminators (\n, \r, U+2028, U+2029). A line terminator in `.op` therefore passed through unescaped into the output; POSIX shells treat a literal newline as a command separator, so any content after it would execute as a second command. The vulnerable code path is reachable in two ways: (1) direct construction of `{ op: '...\n...' }` from external input, and (2) via `parse(cmd, envFn)` when `envFn` returns object tokens whose `.op` is attacker-influenced. Both are documented API surface. Fixed by replacing the per-character escape with strict shape validation: `.op` must match the parser's control-operator allowlist; `{ op: 'glob', pattern }` validates `pattern` and forbids line terminators; `{ comment }` validates `comment` and forbids line terminators; any other object shape throws `TypeError`.
via cve_org
| Version | Type | Source | Base | Exp | Imp |
|---|---|---|---|---|---|
| 3.1 | Primary | cve.org | 8.1 | — | — |
| 3.1 | Primary | cve.org | 8.1 | — | — |
| 3.1 | Primary | cve.org | 8.1 | — | — |
| 3.1 | Primary | cve.org | 8.1 | — | — |
| 3.1 | Primary | cve.org | 8.1 | — | — |
| 3.1 | Primary | cve.org | 8.1 | — | — |
| 3.1 | Primary | cve.org | 8.1 | — | — |
| 3.1 | Primary | cve.org | 8.1 | — | — |
| 3.1 | Primary | cve.org | 8.1 | — | — |
| 3.1 | Primary | cve.org | 8.1 | — | — |
| 3.1 | Primary | cve.org | 8.1 | — | — |
| 3.1 | Primary | cve.org | 8.1 | — | — |
| 3.1 | Primary | cve.org | 8.1 | — | — |
| 3.1 | Primary | cve.org | 8.1 | — | — |
| 3.1 | Primary | cve.org | 8.1 | — | — |
| 3.1 | Primary | cve.org | 8.1 | — | — |
| 3.1 | Primary | cve.org | 8.1 | — | — |
| 3.1 | Primary | cve.org | 8.1 | — | — |
| 3.1 | Primary | cve.org | 8.1 | — | — |
| 3.1 | Primary | cve.org | 8.1 | — | — |
| 3.1 | Secondary | NVD | 8.1 | 2.2 | 5.9 |
| 3.1 | Secondary | GHSA | 8.1 | — | — |
| 3.1 | Secondary | NVD | 8.1 | 2.2 | 5.9 |
| 4.0 | Primary | cve.org | 9.2 | — | — |
| 4.0 | Secondary | ENISA EUVD | 9.2 | — | — |
| 4.0 | Secondary | NVD | 9.2 | — | — |
| 4.0 | Secondary | GHSA | 9.2 | — | — |