ADVISORIES

Vulnerability

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 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.

49 advisories report this vulnerability, across 15 ecosystems.

Advisories

  • ALAS2023-2026-3406

    Amazon Linux 2023 - ALAS2023-2026-3406: Medium priority package update for python3.14

    Medium CVE-2026-114583CVE-2026-115557CVE-2026-12345CVE-2026-87910 Amazon Linux Updated 9 November 2026
  • ALAS2023-2026-3407

    Amazon Linux 2023 - ALAS2023-2026-3407: Medium priority package update for python3.13

    Medium CVE-2026-114583CVE-2026-115557CVE-2026-12345 Amazon Linux Updated 9 November 2026
  • ALAS2023-2026-3408

    Amazon Linux 2023 - ALAS2023-2026-3408: Medium priority package update for python3.12

    Medium CVE-2026-114583CVE-2026-115557CVE-2026-12345 Amazon Linux Updated 9 November 2026
  • ALPINE-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 the temporary…

    CVE-2026-12345 Alpine Updated 6 November 2026
  • ALPINE-EDGE-CVE-2026-12345
    CVE-2026-12345 Alpine Updated 18 November 2026
  • ALSA-2026:85239

    Important: python3 security update

    CVE-2026-12345CVE-2026-19445CVE-2026-19553 AlmaLinux Updated 29 October 2026
  • ALSA-2026:89742

    Important: python3.9 security update

    CVE-2026-12345CVE-2026-19445CVE-2026-19553 AlmaLinux Updated 29 October 2026
  • ALSA-2026:98615

    Moderate: python3.12 security, bug fix, and enhancement update

    CVE-2026-12345CVE-2026-19553 AlmaLinux Updated 16 November 2026
  • AZL-105684

    CVE-2026-12345 affecting package python3 for versions less than 3.12.16-1

    CVE-2026-12345 Azure Linux Updated 2 November 2026
  • AZL-105912

    CVE-2026-12345 affecting package tensorflow 2.16.1-11

    CVE-2026-12345 Azure Linux Updated 15 October 2026
  • CGA-2w26-qvh7-3jhg
    CVE-2026-12345 ChainguardWolfi Updated 5 November 2026
  • CGA-3ghx-j4h4-2hj2
    CVE-2026-12345 ChainguardWolfi Updated 30 October 2026
  • CGA-5hh2-cq82-m3hc
    CVE-2026-12345 ChainguardWolfi Updated 5 November 2026
  • CGA-6p3c-479h-x32j
    CVE-2026-12345 ChainguardWolfi Updated 5 November 2026
  • CGA-856h-m5xq-m9xq
    CVE-2026-12345 ChainguardWolfi Updated 5 November 2026
  • CGA-g73w-6cxg-73cx
    CVE-2026-12345 ChainguardWolfi Updated 31 October 2026
  • CGA-m48m-44w3-h42c
    CVE-2026-12345 ChainguardWolfi Updated 5 November 2026
  • CGA-mc6m-j8hf-7329
    CVE-2026-12345 ChainguardWolfi Updated 5 November 2026
  • CGA-mp3h-w2rr-vq2f
    CVE-2026-12345 ChainguardWolfi Updated 5 November 2026
  • CGA-qq2w-53jr-v29w
    CVE-2026-12345 ChainguardWolfi Updated 5 November 2026
  • CGA-qx8x-26cc-44gv
    CVE-2026-12345 ChainguardWolfi Updated 31 October 2026
  • CGA-x8vg-p55m-fr9h
    CVE-2026-12345 ChainguardWolfi Updated 30 October 2026
  • CNA-CVE-2026-12345

    Race condition in tempfile.TemporaryDirectory cleanup allows deleting files outside the temporary directory

    CVE-2026-12345 Python Updated 19 November 2026
  • DEBIAN-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 the temporary…

    CVE-2026-12345 Debian Updated 19 November 2026
  • ELSA-2026-85239

    ELSA-2026-85239: python3 security update (IMPORTANT)

    Important CVE-2026-12345CVE-2026-19445CVE-2026-19553 Oracle Linux Updated 20 October 2026
  • ELSA-2026-89742

    ELSA-2026-89742: python3.9 security update (IMPORTANT)

    Important CVE-2026-12345CVE-2026-19445CVE-2026-19553 Oracle Linux Updated 26 October 2026
  • ELSA-2026-98511

    ELSA-2026-98511: python3.9 security update (MODERATE)

    Moderate CVE-2026-114583CVE-2026-12345CVE-2026-19445CVE-2026-19553 Oracle Linux Updated 20 November 2026
  • FEDORA-2026-1520dedf55

    python3-docs-3.14.10-1.fc43 python3.14-3.14.10-1.fc43

    Important CVE-2026-114583CVE-2026-115557CVE-2026-12345 Fedora Updated 10 November 2026
  • FEDORA-2026-2a34d74310

    python3-docs-3.14.10-1.fc44 python3.14-3.14.10-1.fc44

    Important CVE-2026-12345 Fedora Updated 4 November 2026
  • FEDORA-2026-4e3279af04

    python3.12-3.12.16-2.fc43

    Important CVE-2026-114583CVE-2026-115557CVE-2026-12345 Fedora Updated 8 November 2026
  • FEDORA-2026-5a90f8090a

    python3.6-3.6.15-60.fc44

    Important CVE-2026-12345CVE-2026-19445CVE-2026-19553 Fedora Updated 20 November 2026
  • FEDORA-2026-848bbd442b

    python3.6-3.6.15-60.fc43

    Important CVE-2026-12345CVE-2026-19445CVE-2026-19553 Fedora Updated 20 November 2026
  • FEDORA-2026-a85529a028

    python3.13-3.13.18-1.fc44

    Important CVE-2026-114583CVE-2026-12345 Fedora Updated 5 November 2026
  • FEDORA-2026-d6b8383232

    python3.13-3.13.18-1.fc43

    Important CVE-2026-114583CVE-2026-12345 Fedora Updated 5 November 2026
  • RHSA-2026:74870

    Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

    CVE-2026-12345 Red Hat Updated 23 November 2026
  • RHSA-2026:74922

    Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

    CVE-2026-12345 Red Hat Updated 23 November 2026
  • RHSA-2026:75119

    Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

    CVE-2026-12345 Red Hat Updated 23 November 2026
  • RHSA-2026:85239

    Red Hat Security Advisory: python3 security update

    CVE-2026-12345CVE-2026-19445CVE-2026-19553 Red Hat Updated 24 November 2026
  • RHSA-2026:89742

    Red Hat Security Advisory: python3.9 security update

    CVE-2026-12345CVE-2026-19445CVE-2026-19553 Red Hat Updated 24 November 2026
  • RHSA-2026:98511

    Red Hat Security Advisory: python3.9 security update

    CVE-2026-114583CVE-2026-12345CVE-2026-19445CVE-2026-19553 Red Hat Updated 24 November 2026
  • RHSA-2026:98615

    Red Hat Security Advisory: python3.12 security, bug fix, and enhancement update

    CVE-2026-12345 Red Hat Updated 23 November 2026
  • RHVEX-CVE-2026-12345

    python: python: Arbitrary file deletion via race condition during temporary directory cleanup

    Moderate CVE-2026-12345 Red Hat Updated 24 November 2026
  • RLSA-2026:85239

    Important: python3 security update

    CVE-2026-12345CVE-2026-19445CVE-2026-19553 Rocky Linux Updated 21 October 2026
  • RLSA-2026:89742

    Important: python3.9 security update

    CVE-2026-12345CVE-2026-19445CVE-2026-19553 Rocky Linux Updated 27 October 2026
  • RLSA-2026:98615

    Moderate: python3.12 security, bug fix, and enhancement update

    CVE-2026-12345 Rocky Linux Updated 13 November 2026
  • SUSE-SU-2026:5251-1

    Security update for python3

    CVE-2026-115557CVE-2026-12345CVE-2026-19445CVE-2026-87910 SUSE Updated 17 November 2026
  • SUSEVEX-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 the temporary…

    Moderate CVE-2026-12345 SUSEopenSUSE Updated 19 November 2026
  • UBUNTU-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 the temporary…

    CVE-2026-12345 Ubuntu Updated 17 October 2026
  • openSUSE-SU-2026:12125-1

    python315-3.15.0-1.1 on GA media

    CVE-2026-12345CVE-2026-87910 openSUSE Updated 14 October 2026

References