Sync missing CVE/security fixes from upstream - #80
Merged
Conversation
- Bump pytest to 9.0.3 (CVE-2025-71176) + pytest-rerunfailures 15.0 (intel#1035) - Pin Alpine base image to 3.24.1 instead of floating latest (intel#1010) - Add backports.tarfile==1.2.0 and pyinstaller hiddenimport (tarfile hardening)
prashantbytesyntax
approved these changes
Aug 19, 2026
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
This PR backports security fixes that landed in upstream (
intel/gprofiler) but were never synced into our fork. The two forks diverged in May 2024, and a scan of upstream's CVE-related PRs found three runtime/build hardening changes we are missing. Each change below mirrors upstream exactly.Changes & rationale
1. Bump
pytestto9.0.3(+pytest-rerunfailures==15.0)Backports intel/gprofiler#1035.
/tmp/pytest-of-{user}name pattern, which allows local users to cause a denial of service or possibly gain privileges via the predictable tmpdir handling.pytest-rerunfailures==15.0is added alongside for pytest 9.x compatibility, matching upstream.Test/dev dependency only — not shipped in the profiler runtime.
2. Pin Alpine base image to
3.24.1Backports intel/gprofiler#1010 (later bumped to 3.24.1 in intel/gprofiler#1046).
container.DockerfileusedFROM alpine(floatinglatest), which is non-reproducible and can silently pull a stale/vulnerable image from cache.3. Add
backports.tarfile==1.2.0+ pyinstaller hidden importBackports the tarfile-extraction hardening from intel/gprofiler#1010.
backports.tarfile==1.2.0torequirements.txt.hiddenimports=['backports.tarfile']inpyinstaller.specso the module is bundled into the PyInstaller executable.Notes
cpuiddependency, removal ofbitmath) were intentionally excluded — this PR is scoped strictly to the CVE/security fixes.requests==2.33.0andblack==26.3.1are already present in our fork.Test plan
backports.tarfile.