Skip to content

fix: temporarily safelist unreleased Python tempfile fix - #1022

Merged
benbrasso merged 1 commit into
HHS:mainfrom
benbrasso:claude/safelist-cve-2026-12345
Oct 3, 2026
Merged

benbrasso merged 1 commit into
HHS:mainfrom
benbrasso:claude/safelist-cve-2026-12345

Conversation

@benbrasso

Copy link
Copy Markdown
Collaborator

Summary

Anchore now fails every PR (first seen on #1021) on a single finding: CVE-2026-12345 in CPython 3.14.8 from python: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.

  • What it is: a race condition in tempfile.TemporaryDirectory cleanup. 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.
  • Why safelist instead of upgrade: 3.14.8 is the latest 3.14 release. The fix is merged for 3.15 (3.15.0rc3) and has not been backported to 3.14, so there is nothing to upgrade to. Grype lists the fix only in 3.15.0.
  • When to remove: once python:3.14-slim ships a 3.14 release with the backport and Grype recognizes it.

Mirrored in simpler-grants-gov's .grype.yml so the deploy scan enforces the same rule.

References:

Test plan

  • Anchore output on feat: auto-save a readability snapshot on import and re-import #1021 before this change: only python 3.14.8 / CVE-2026-12345 / Medium / fixed in 3.15.0.
  • Checked the CVE record (CVEProject/cvelistV5) and CPython's 3.14 branch: no 3.14 backport or release yet.
  • .grype.yml parses as valid YAML. The Anchore Scan check on this PR should pass.

Checklist

  • Tests pass locally (make test): no application code changed
  • No import-rule changes, so documentation/IMPORT_RULES.md doesn't need updating

🤖 Generated with Claude Code

https://claude.ai/code/session_011q1hrRfsosZzADmnXZuLi2

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
benbrasso requested review from mikec-ai and removed request for mikec-ai October 3, 2026 15:20
@benbrasso
benbrasso merged commit 8620f9d into HHS:main Oct 3, 2026
6 checks passed
@benbrasso
benbrasso deleted the claude/safelist-cve-2026-12345 branch October 3, 2026 15:27
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>
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.

2 participants

Sponsor
SponsoredKunjungi sekarang
Promo