Repository navigation
fix: temporarily safelist unreleased Python tempfile fix - #1022
Merged
Merged
Conversation
Anchore fails on CVE-2026-12345 in CPython 3.14.8 (python:3.14-slim): a race condition in tempfile.TemporaryDirectory cleanup. The fix is merged for 3.15 (3.15.0rc3) but not backported to 3.14, and no released 3.14 version includes it, so there is nothing to upgrade to. Add a documented temporary safelist entry, following the existing policy for Python vulnerabilities whose fix is unavailable on the supported runtime line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011q1hrRfsosZzADmnXZuLi2
benbrasso
pushed a commit
that referenced
this pull request
Oct 3, 2026
🤖 I have created a release *beep* *boop* --- ## [3.48.0](nofos-v3.47.1...nofos-v3.48.0) (2026-10-03) ### Features * auto-save a readability snapshot on import and re-import ([#1021](#1021)) ([1dfb51e](1dfb51e)) * save a readability snapshot when the PDF is downloaded ([#1024](#1024)) ([43178cc](43178cc)) ### Bug Fixes * temporarily safelist unreleased Python tempfile fix ([#1022](#1022)) ([8620f9d](8620f9d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Anchore now fails every PR (first seen on #1021) on a single finding:
CVE-2026-12345in CPython 3.14.8 frompython:3.14-slim. Add a documented temporary safelist entry, following the existing policy for Python vulnerabilities whose fix is unavailable on the supported runtime line (same approach as #1017). This suppresses the finding; it does not patch the vulnerability.tempfile.TemporaryDirectorycleanup. An attacker who can modify the temporary tree during cleanup can swap a directory for a symlink, so files outside the temporary directory can be deleted or have permissions/flags reset. Medium severity (CVSS 4.0 score 5.9), local attack vector. Published 2026-09-29.python:3.14-slimships a 3.14 release with the backport and Grype recognizes it.Mirrored in simpler-grants-gov's
.grype.ymlso the deploy scan enforces the same rule.References:
tempfile.TemporaryDirectorypython/cpython#157579Test plan
python 3.14.8 / CVE-2026-12345 / Medium / fixed in 3.15.0..grype.ymlparses as valid YAML. The Anchore Scan check on this PR should pass.Checklist
make test): no application code changeddocumentation/IMPORT_RULES.mddoesn't need updating🤖 Generated with Claude Code
https://claude.ai/code/session_011q1hrRfsosZzADmnXZuLi2