Skip to content

[GHSA-3936-cmfr-pm3m] Black: Arbitrary file writes from unsanitized user input in cache file name#8507

Open
shaked-seal wants to merge 1 commit into
shaked-seal/advisory-improvement-8507from
shaked-seal-GHSA-3936-cmfr-pm3m
Open

[GHSA-3936-cmfr-pm3m] Black: Arbitrary file writes from unsanitized user input in cache file name#8507
shaked-seal wants to merge 1 commit into
shaked-seal/advisory-improvement-8507from
shaked-seal-GHSA-3936-cmfr-pm3m

Conversation

@shaked-seal

Copy link
Copy Markdown

Updates

  • Affected products

Comments
Versions before 24.3.0 aren't affected. The unsanitized --python-cell-magics value only reaches the cache filename because of PR #4176 (commit ed770ba4dd50, released in 24.3.0), which hashes the magics into the cache key only when longer than 32 chars. Before 24.3.0, get_cache_key() always sha256-hashed the magics, so no path traversal was possible. Fixed in 26.3.1 (#5038) by restoring unconditional
hashing.

@github

github commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Hi there @JelleZijlstra! A community member has suggested an improvement to your security advisory. If approved, this change will affect the global advisory listed at github.com/advisories. It will not affect the version listed in your project repository.

This change will be reviewed by our Security Curation Team. If you have thoughts or feedback, please share them in a comment here! If this PR has already been closed, you can start a new community contribution for this advisory

@github-actions github-actions Bot changed the base branch from main to shaked-seal/advisory-improvement-8507 July 6, 2026 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants