{"schemaVersion":3,"id":"CVE-2026-32274","aliases":["GHSA-3936-cmfr-pm3m","PYSEC-2026-2121","UBUNTU-CVE-2026-32274","DEBIAN-CVE-2026-32274","CGA-44r9-2q5m-8c2r","CGA-mh32-3c65-4r77","CGA-vf7h-9xph-57j9","CGA-vp72-7m37-c9pm","SUSE-SU-2026:0900-1","openSUSE-SU-2026:11856-1","CGA-365r-9rwh-6hwv","CGA-cr7f-4g7v-pg5v","CGA-x274-x33x-vrm5"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2026-03-12T19:47:07.464Z","modified":"2026-08-03T20:36:42.572Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.7,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Wolfi","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00744,"percentile":0.53923,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.12300000000000003,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00621},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00621,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00621,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00621,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00621,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00621,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00621,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00621,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00621,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00621,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00621,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00744,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00744,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00744,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00744,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00744,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00744,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00744,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00744,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00744,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00744,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00744,"percentile":0.53923}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00621,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00621,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00621,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00621,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00621,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00716,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00744,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00744,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00744,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00744,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00744,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00744,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00744,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00744,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00744,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00744,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00744,"percentile":0.53923}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"chainguard","product":"kserve-storage-controller","name":"kserve-storage-controller","label":"kserve-storage-controller","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/kserve-storage-controller","purlType":"apk","versions":[{"text":"< 0.16.0-r22","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.16.0-r22","eol":null,"hubHref":null},{"vendor":"chainguard","product":"label-studio","name":"label-studio","label":"label-studio","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/label-studio","purlType":"apk","versions":[{"text":"< 1.23.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.23.0-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"nemo","name":"nemo","label":"nemo","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/nemo","purlType":"apk","versions":[{"text":"< 2.7.0-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.7.0-r2","eol":null,"hubHref":null},{"vendor":"chainguard","product":"open-webui","name":"open-webui","label":"open-webui","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/open-webui","purlType":"apk","versions":[{"text":"< 0.8.10-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.8.10-r1","eol":null,"hubHref":null},{"vendor":"wolfi","product":"kserve-storage-controller","name":"kserve-storage-controller","label":"kserve-storage-controller","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/kserve-storage-controller","purlType":"apk","versions":[{"text":"< 0.16.0-r22","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.16.0-r22","eol":null,"hubHref":null},{"vendor":"wolfi","product":"open-webui","name":"open-webui","label":"open-webui","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/open-webui","purlType":"apk","versions":[{"text":"< 0.8.10-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.8.10-r1","eol":null,"hubHref":null},{"vendor":"debian","product":"black","name":"black","label":"black","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/black","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 25.1.0-3+deb13u1","noFixRecorded":false,"fixedIn":null},{"text":"< 26.3.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 25.1.0-3+deb13u1 | < 26.3.1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"black","name":"black","label":"black","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/black","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"psf","product":"black","name":"black","label":"black","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 24.3.0, < 26.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 24.3.0, < 26.3.1","eol":null,"hubHref":"/vendor/psf/black"},{"vendor":"PyPI","product":"black","name":"black","label":"black","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/black","purlType":"pypi","versions":[{"text":"≥ 24.3.0, < 26.3.1","noFixRecorded":false,"fixedIn":null},{"text":"< 26.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 24.3.0, < 26.3.1 | < 26.3.1","eol":null,"hubHref":null},{"vendor":"python","product":"black","name":"black","label":"black","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 26.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 26.3.1","eol":null,"hubHref":"/vendor/python/black"},{"vendor":"opensuse","product":"ansible-lint&distro=openSUSE Tumbleweed","name":"ansible-lint","label":"ansible-lint&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/ansible-lint&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 26.9.0-1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 26.9.0-1.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"python-black&distro=openSUSE Leap 15.6","name":"python-black","label":"python-black&distro=openSUSE Leap 15.6","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/python-black&distro=openSUSE Leap 15.6","purlType":"rpm","versions":[{"text":"< 24.3.0-150400.9.11.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 24.3.0-150400.9.11.1","eol":null,"hubHref":null}],"affectedCount":13,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/psf/black/security/advisories/GHSA-3936-cmfr-pm3m","label":"github.com/psf/black/security/advisories/GHSA-3936-cmfr-pm3m","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","REPORT","Vendor Advisory"]},{"url":"https://github.com/psf/black/pull/4176","label":"github.com/psf/black/pull/4176","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX"]},{"url":"https://github.com/psf/black/pull/5038","label":"github.com/psf/black/pull/5038","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","REPORT","Issue Tracking","Patch"]},{"url":"https://github.com/psf/black/commit/4937fe6cf241139ddbfc16b0bdbb5b422798909d","label":"github.com/psf/black/commit/4937fe6cf241139ddbfc16b0bdbb5b422798909d","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch"]},{"url":"https://github.com/psf/black/commit/ed770ba4dd50c419148a0fca2b43937a7447e1f9","label":"github.com/psf/black/commit/ed770ba4dd50c419148a0fca2b43937a7447e1f9","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX"]},{"url":"https://access.redhat.com/errata/RHSA-2026:10184","label":"access.redhat.com/errata/RHSA-2026:10184","hostname":"access.redhat.com","tags":["X Refsource MISC","WEB","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2026:13545","label":"access.redhat.com/errata/RHSA-2026:13545","hostname":"access.redhat.com","tags":["X Refsource MISC","WEB","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2026:13553","label":"access.redhat.com/errata/RHSA-2026:13553","hostname":"access.redhat.com","tags":["X Refsource MISC","WEB","Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-32274","label":"access.redhat.com/security/cve/CVE-2026-32274","hostname":"access.redhat.com","tags":["X Refsource MISC","WEB"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2447111","label":"bugzilla.redhat.com/show_bug.cgi?id=2447111","hostname":"bugzilla.redhat.com","tags":["X Refsource MISC","WEB","REPORT"]},{"url":"https://github.com/psf/black/releases/tag/26.3.1","label":"github.com/psf/black/releases/tag/26.3.1","hostname":"github.com","tags":["X Refsource MISC","WEB","Advisory","Release Notes"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/black/PYSEC-2026-2121.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/black/PYSEC-2026-2121.yaml","hostname":"github.com","tags":["X Refsource MISC","WEB","Advisory"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32274.json","label":"security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32274.json","hostname":"security.access.redhat.com","tags":["X Refsource MISC","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-32274","label":"nvd.nist.gov/vuln/detail/CVE-2026-32274","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/psf/black","label":"github.com/psf/black","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://ubuntu.com/security/CVE-2026-32274","label":"ubuntu.com/security/CVE-2026-32274","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-32274","label":"www.cve.org/CVERecord?id=CVE-2026-32274","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-32274","label":"security-tracker.debian.org/tracker/CVE-2026-32274","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/32xxx/CVE-2026-32274.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/32xxx/CVE-2026-32274.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://www.suse.com/support/update/announcement/2026/suse-su-20260900-1/","label":"www.suse.com/support/update/announcement/2026/suse-su-20260900-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1259608","label":"bugzilla.suse.com/1259608","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2026-32274","label":"www.suse.com/security/cve/CVE-2026-32274","hostname":"www.suse.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:10372-1","OPENSUSE-SU-2026:20417-1","SUSE-SU-2026:20928-1"],"duplicates":[],"related":["CGA-FHC2-GPH6-PRWR","OPENSUSE-SU-2026:10372-1","OPENSUSE-SU-2026:20417-1","SUSE-SU-2026:20928-1"]},"timeline":[{"kind":"published","date":"2026-03-12T19:47:07.464Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-08-03T20:36:42.572Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T02:27:03.343Z","stale":false,"partial":false}}