
Catalogo CVE
CVE-2026-12345
The cleanup of tempfile.TemporaryDirectory is vulnerable to a race condition. An attacker who can modify the tree during cleanup can replace a directory with a symbolic link, causing files outside of
- Gravità
- Medium · CVSS 6.3
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.18% · Oct 22, 2026
The cleanup of tempfile.TemporaryDirectory is vulnerable to a race condition. An attacker who can modify the tree during cleanup can replace a directory with a symbolic link, causing files outside of the temporary directory to be deleted or have their permissions and file flags reset, with the privileges of the process performing the cleanup. Note that platforms where shutil.rmtree.avoids_symlink_attacks is false, remain affected, and file flags may still be reset outside of the tree on all platforms.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | pypy3 | sid | 8.0.1+dfsg-1 | vulnerable |
| Debian | pypy3 | forky | 8.0.1+dfsg-1 | vulnerable |
| Debian | pypy3 | trixie | 7.3.19+dfsg-2 | vulnerable |
| Debian | pypy3 | bookworm | 7.3.11+dfsg-2+deb12u3 | vulnerable |
| Debian | python3.11 | bookworm | 3.11.2-6+deb12u8 | vulnerable |
| Debian | python3.11 | bookworm-security | 3.11.2-6+deb12u9 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | pypy3 | source | sid | (unfixed) | not yet assigned | Not reported | [1150804] |
| Debian | pypy3 | source | forky | (unfixed) | not yet assigned | Not reported | [1150804] |
| Debian | pypy3 | source | trixie | (unfixed) | not yet assigned | Not reported | [1150804] |
| Debian | pypy3 | source | bookworm | (unfixed) | not yet assigned | Not reported | [1150804] |
| Debian | python3.11 | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
Notes
[trixie] pypy3: Minor issue [bookworm] pypy3: Minor issue [bookworm] python3.11: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [idle-python3.11]Interessata
Pacchetto sorgente: [python3.11]
Dettagli (4)
3.11.2-6+deb12u8· all · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u8· all · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· all · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· all · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
- [libpython3.11]Interessata
Pacchetto sorgente: [python3.11]
Dettagli (4)
3.11.2-6+deb12u8· amd64 · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u8· arm64 · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· amd64 · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· arm64 · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
- [libpython3.11-dbg]Interessata
Pacchetto sorgente: [python3.11]
Dettagli (4)
3.11.2-6+deb12u8· amd64 · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u8· arm64 · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· amd64 · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· arm64 · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
- [libpython3.11-dev]Interessata
Pacchetto sorgente: [python3.11]
Dettagli (4)
3.11.2-6+deb12u8· amd64 · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u8· arm64 · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· amd64 · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· arm64 · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
- [libpython3.11-minimal]Interessata
Pacchetto sorgente: [python3.11]
Dettagli (4)
3.11.2-6+deb12u8· amd64 · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u8· arm64 · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· amd64 · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· arm64 · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
- [libpython3.11-stdlib]Interessata
Pacchetto sorgente: [python3.11]
Dettagli (4)
3.11.2-6+deb12u8· amd64 · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u8· arm64 · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· amd64 · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· arm64 · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
- [libpython3.11-testsuite]Interessata
Pacchetto sorgente: [python3.11]
Dettagli (4)
3.11.2-6+deb12u8· all · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u8· all · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· all · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· all · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
- [pypy3]Interessata
Dettagli (2)
7.3.11+dfsg-2+deb12u3· amd64 · bookwormInteressata
nvd · pypy3 · debian · bookworm
7.3.11+dfsg-2+deb12u3· arm64 · bookwormInteressata
nvd · pypy3 · debian · bookworm
- [pypy3-dev]Interessata
Pacchetto sorgente: [pypy3]
Dettagli (2)
7.3.11+dfsg-2+deb12u3· all · bookwormInteressata
nvd · pypy3 · debian · bookworm
7.3.11+dfsg-2+deb12u3· all · bookwormInteressata
nvd · pypy3 · debian · bookworm
- [pypy3-doc]Interessata
Pacchetto sorgente: [pypy3]
Dettagli (2)
7.3.11+dfsg-2+deb12u3· all · bookwormInteressata
nvd · pypy3 · debian · bookworm
7.3.11+dfsg-2+deb12u3· all · bookwormInteressata
nvd · pypy3 · debian · bookworm
- [pypy3-lib]Interessata
Pacchetto sorgente: [pypy3]
Dettagli (2)
7.3.11+dfsg-2+deb12u3· amd64 · bookwormInteressata
nvd · pypy3 · debian · bookworm
7.3.11+dfsg-2+deb12u3· arm64 · bookwormInteressata
nvd · pypy3 · debian · bookworm
- [pypy3-lib-testsuite]Interessata
Pacchetto sorgente: [pypy3]
Dettagli (2)
7.3.11+dfsg-2+deb12u3· all · bookwormInteressata
nvd · pypy3 · debian · bookworm
7.3.11+dfsg-2+deb12u3· all · bookwormInteressata
nvd · pypy3 · debian · bookworm
- [pypy3-tk]Interessata
Pacchetto sorgente: [pypy3]
Dettagli (2)
7.3.11+dfsg-2+deb12u3· amd64 · bookwormInteressata
nvd · pypy3 · debian · bookworm
7.3.11+dfsg-2+deb12u3· arm64 · bookwormInteressata
nvd · pypy3 · debian · bookworm
- [pypy3-venv]Interessata
Pacchetto sorgente: [pypy3]
Dettagli (2)
7.3.11+dfsg-2+deb12u3· all · bookwormInteressata
nvd · pypy3 · debian · bookworm
7.3.11+dfsg-2+deb12u3· all · bookwormInteressata
nvd · pypy3 · debian · bookworm
- [python3.11]Interessata
Dettagli (4)
3.11.2-6+deb12u8· amd64 · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u8· arm64 · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· amd64 · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· arm64 · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
- [python3.11-dbg]Interessata
Pacchetto sorgente: [python3.11]
Dettagli (4)
3.11.2-6+deb12u8· amd64 · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u8· arm64 · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· amd64 · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· arm64 · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
- [python3.11-dev]Interessata
Pacchetto sorgente: [python3.11]
Dettagli (4)
3.11.2-6+deb12u8· amd64 · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u8· arm64 · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· amd64 · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· arm64 · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
- [python3.11-doc]Interessata
Pacchetto sorgente: [python3.11]
Dettagli (4)
3.11.2-6+deb12u8· all · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u8· all · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· all · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· all · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
- [python3.11-examples]Interessata
Pacchetto sorgente: [python3.11]
Dettagli (4)
3.11.2-6+deb12u8· all · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u8· all · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· all · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· all · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
- [python3.11-full]Interessata
Pacchetto sorgente: [python3.11]
Dettagli (4)
3.11.2-6+deb12u8· amd64 · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u8· arm64 · bookwormInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· amd64 · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
3.11.2-6+deb12u3· arm64 · bookworm-securityInteressata
nvd · python3.11 · debian · bookworm
Osservato:
Riferimenti
- [https://access.redhat.com/errata/RHSA-2026:74870]
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2026_85239.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-12345]
- [https://osv.dev/vulnerability/CVE-2026-12345]
- [https://security-tracker.debian.org/tracker/CVE-2026-12345]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-3656.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]