ADVISORIES

Vulnerability

CVE-2026-32274

Black is the uncompromising Python code formatter. Starting in version 24.3.0 and prior to version 26.3.1, Black writes a cache file, the name of which is computed from various formatting options. The value of the --python-cell-magics option was placed in the filename without sanitization, which allowed an attacker who controls the value of this argument to write cache files to arbitrary file system locations. Fixed in Black 26.3.1.

17 advisories report this vulnerability, across 8 ecosystems.

Advisories

  • CGA-365r-9rwh-6hwv
    CVE-2026-32274 Chainguard Updated 5 November 2026
  • CGA-44r9-2q5m-8c2r
    CVE-2026-32274 ChainguardWolfi Updated 5 November 2026
  • CGA-cr7f-4g7v-pg5v
    CVE-2026-32274 Chainguard Updated 5 November 2026
  • CGA-mh32-3c65-4r77
    CVE-2026-32274 ChainguardWolfi Updated 5 November 2026
  • CGA-vf7h-9xph-57j9
    CVE-2026-32274 ChainguardWolfi Updated 5 November 2026
  • CGA-vp72-7m37-c9pm
    CVE-2026-32274 ChainguardWolfi Updated 5 November 2026
  • CGA-x274-x33x-vrm5
    CVE-2026-32274 Chainguard Updated 5 November 2026
  • DEBIAN-CVE-2026-32274

    Black is the uncompromising Python code formatter. Starting in version 24.3.0 and prior to version 26.3.1, Black writes a cache file, the name of which is computed from various formatting options. The value of the…

    CVE-2026-32274 Debian Updated 1 October 2026
  • GHSA-3936-cmfr-pm3m

    Black: Arbitrary file writes from unsanitized user input in cache file name

    High CVE-2026-32274 PyPI Updated 10 September 2026
  • OESA-2026-4064

    python-black security update

    High CVE-2026-32274 openEuler Updated 25 September 2026
  • PYSEC-2026-2121

    Black is the uncompromising Python code formatter. Prior to 26.3.1, Black writes a cache file, the name of which is computed from various formatting options. The value of the --python-cell-magics option was placed in…

    CVE-2026-32274 PyPI Updated 13 July 2026
  • SUSE-SU-2026:0900-1

    Security update for python-black

    CVE-2026-32274 openSUSE Updated 23 March 2026
  • SUSE-SU-2026:20928-1

    Security update for python-black

    CVE-2026-31900CVE-2026-32274 SUSE Updated 2 April 2026
  • UBUNTU-CVE-2026-32274

    Black is the uncompromising Python code formatter. Starting in version 24.3.0 and prior to version 26.3.1, Black writes a cache file, the name of which is computed from various formatting options. The value of the…

    CVE-2026-32274 Ubuntu Updated 17 October 2026
  • openSUSE-SU-2026:10372-1

    python311-black-26.3.1-1.1 on GA media

    CVE-2026-31900CVE-2026-32274 openSUSE Updated 15 March 2026
  • openSUSE-SU-2026:11856-1

    ansible-lint-26.9.0-1.1 on GA media

    CVE-2026-32274 openSUSE Updated 24 September 2026
  • openSUSE-SU-2026:20417-1

    Security update for python-black

    CVE-2026-31900CVE-2026-32274 openSUSE Updated 29 March 2026

References