black に パストラバーサル (CVE-2026-32274)
概要
black に パストラバーサル (CVE-2026-32274) が存在。データの不正な改ざんを許す可能性があります。対策: 26.3.1 以上に更新。
原文の説明
取得元が公開している説明をそのまま載せています (多くは英語)。
Impact
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.
Patches
Fixed in Black 26.3.1.
Workarounds
Do not allow untrusted user input into the value of the --python-cell-magics option.
出典: NIST National Vulnerability Database NVD GitHub Advisory
自動生成の要約
取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。
black という製品で、CVE-2026-32274 という番号がついた弱点 (脆弱性) が見つかりました。
データの不正な改ざんを許す可能性があります。重要度は CVSS スコア 7.5/10 です。
対策: black を 26.3.1 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「black CVE-2026-32274」を検索してください。
CVE-2026-32274 (black) — CWE-22 / CVSS v3 7.5
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 認証不要 / 被害者操作不要
修正バージョン: 26.3.1 (即時適用推奨)
暫定回避: Do not allow untrusted user input into the value of the --python-cell-magics option.
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
black に パストラバーサル (CWE-22) があります。
black の影響バージョンはベンダーのアドバイザリで確認してください。
重要度: 重要 (CVSS 7.5/10)。データの不正な改ざんを許す可能性があります。
26.3.1 に更新してください。
暫定回避: Do not allow untrusted user input into the value of the --python-cell-magics option.
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1影響範囲の特定 identify
grep -r 'black' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
blackを grep し、稼働しているサービス・バージョンを把握する。 -
2暫定回避策の適用 mitigate
Do not allow untrusted user input into the value of the `--python-cell-magics` option.パッチが適用されるまでの応急処置として、Do not allow untrusted user input into the value of the
--python-cell-magicsoption. を実施。回避策の副作用 (機能低下) を確認した上で。 -
3パッチ適用 patch
Upgrade black to 26.3.1ステージング環境で 26.3.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4事後検証 verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
ディストリビューション別の修正状況
各ディストリビューションが公開している、この CVE の修正パッケージ
- Debian DEBIAN-CVE-2026-32274 black
- Ubuntu UBUNTU-CVE-2026-32274 black
参照URL
- patch security-advisories@github.com
- patch security-advisories@github.com
- patch security-advisories@github.com
- web security-advisories@github.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web bugzilla.redhat.com
- web security.access.redhat.com
- web nvd.nist.gov
- web security-advisories@github.com
- web security-advisories@github.com
- web security-advisories@github.com
- web github.com