ADVISORIES

Vulnerability

CVE-2024-4030

On Windows a directory returned by tempfile.mkdtemp() would not always have permissions set to restrict reading and writing to the temporary directory by other users, instead usually inheriting the correct permissions from the default location. Alternate configurations or users without a profile directory may not have the intended permissions. If you’re not using Windows or haven’t changed the temporary directory location then you aren’t affected by this vulnerability. On other platforms the returned directory is consistently readable and writable only by the current user. This issue was caused by Python not supporting Unix permissions on Windows. The fix adds support for Unix “700” for the mkdir function on Windows which is used by mkdtemp() to ensure the newly created directory has the proper permissions.

22 advisories report this vulnerability, across 5 ecosystems.

Advisories

  • CGA-2vj6-9jh9-57q6
    CVE-2024-4030 ChainguardWolfi Updated 5 November 2026
  • CGA-46j2-93m5-qvcg
    CVE-2024-4030 Chainguard Updated 5 November 2026
  • CGA-5hw4-rhmp-4rwq
    CVE-2024-4030 ChainguardWolfi Updated 5 November 2026
  • CGA-6376-fw76-9xff
    CVE-2024-4030 ChainguardWolfi Updated 5 November 2026
  • CGA-8639-mxc5-jh6m
    CVE-2024-4030 Chainguard Updated 5 November 2026
  • CGA-8wpg-jvm4-fw8g
    CVE-2024-4030 ChainguardWolfi Updated 5 November 2026
  • CGA-fwcr-xhmx-w4jc
    CVE-2024-4030 ChainguardWolfi Updated 5 November 2026
  • CGA-ghr8-f3p7-h5qg
    CVE-2024-4030 ChainguardWolfi Updated 5 November 2026
  • CGA-mv3v-v6j8-m9qq
    CVE-2024-4030 ChainguardWolfi Updated 5 November 2026
  • CGA-x94g-56rx-f36v
    CVE-2024-4030 ChainguardWolfi Updated 5 November 2026
  • CNA-CVE-2024-4030

    tempfile.mkdtemp() may be readable and writeable by all users on Windows

    CVE-2024-4030 Python Updated 7 September 2024
  • SUSE-SU-2024:2572-1

    Security update for python312

    CVE-2024-0397CVE-2024-4030CVE-2024-4032 SUSEopenSUSE Updated 2 May 2025
  • SUSE-SU-2025:20154-1

    Security update for python311

    CVE-2019-20907CVE-2019-9947CVE-2020-15523CVE-2020-15801 SUSE Updated 23 March 2026
  • SUSE-SU-2025:20374-1

    Security update for python311

    CVE-2022-25236CVE-2023-27043CVE-2023-52425CVE-2023-6597 SUSE Updated 23 March 2026
  • openSUSE-SU-2024:14109-1

    python313-3.13.0~b3-1.1 on GA media

    CVE-2011-3389CVE-2011-4944CVE-2012-0845CVE-2012-1150 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:14295-1

    python312-3.12.5-1.1 on GA media

    CVE-2024-0397CVE-2024-4030CVE-2024-4032CVE-2024-6923 openSUSE Updated 7 May 2025
  • openSUSE-SU-2024:14331-1

    python39-3.9.20-1.1 on GA media

    CVE-2024-4030 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:14340-1

    python38-3.8.20-1.1 on GA media

    CVE-2024-4030CVE-2024-6232 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:14345-1

    python310-3.10.15-1.1 on GA media

    CVE-2024-4030CVE-2024-6232CVE-2024-7592 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:14346-1

    python311-3.11.9-7.1 on GA media

    CVE-2024-4030CVE-2024-6232CVE-2024-7592 openSUSE Updated 7 May 2025
  • openSUSE-SU-2024:14434-1

    python314-3.14.0~a1-1.1 on GA media

    CVE-2011-3389CVE-2011-4944CVE-2012-0845CVE-2012-1150 openSUSE Updated 4 February 2026
  • openSUSE-SU-2025:15713-1

    python315-3.15.0~a1-1.1 on GA media

    CVE-2011-3389CVE-2011-4944CVE-2012-0845CVE-2012-1150 openSUSE Updated 23 March 2026

References