[depthfirst-5913] Upgrade multiple packages in uv.lock #4
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.
Overview
Security Updates: PyTorch 2.8.0 and Starlette 0.47.2
Upgrade
This PR upgrades two critical dependencies to address security vulnerabilities:
The upgrade involved modifying
pyproject.tomlto add a version constrainttorch>=2.8.0and standardizing all Linux CUDA builds to use the CUDA 12.8 index. Theuv.lockfile was regenerated to reflect these changes and update all transitive dependencies.Changes
pyproject.toml: Added version constrainttorch>=2.8.0to ensure minimum version compliance for security fixescu124extra marker from thepytorch-cuda-124index to thepytorch-cuda-128index to align with the new PyTorch 2.8.0 CUDA support strategy (CUDA 12.8 is now the default for Linux builds)accelerate,aiohttp,attrs) to maintain compatibility with PyTorch 2.8.0Warnings
PyTorch 2.8.0 Breaking Changes
condand other HigherOrderOperators may need to add.clone()to outputs to avoid errorsdefinitely_trueanddefinitely_falsehave been removed and replaced withguard_or_trueandguard_or_falseCUDA Configuration Change
The
cu124extra now points to the CUDA 12.8 index instead of CUDA 12.4. This should not affect functionality but reviewers should verify that environments expecting CUDA 12.4 specifically are compatible with CUDA 12.8 builds.Vulnerabilities Fixed
CVE-2025-54121 - Starlette DoS via Large Multipart Forms
Summary: Starlette had a denial-of-service vulnerability when parsing multipart forms with large files (greater than the default max spool size). The library would block the main event thread when rolling files over to disk, preventing new connections from being accepted.
Details: The
UploadFile.write()method did not properly check if writing additional bytes would cause a rollover from memory to disk. This caused synchronous I/O on the event loop thread during the rollover operation. While the impact is low on systems with modern HDDs/SSDs, it could affect high-concurrency applications processing large file uploads.Fixed in: Starlette 0.47.2
References: GitHub Advisory | Fix PR #2962
CVE-2025-2953 - PyTorch Local Denial of Service
Summary: PyTorch 2.6.0+cu124 was vulnerable to a local denial of service attack through the
torch.mkldnn_max_pool2dfunction.Details: A problematic vulnerability was found in the
torch.mkldnn_max_pool2dfunction that could be exploited locally to cause denial of service. The exploit has been publicly disclosed.Fixed in: PyTorch 2.7.1-rc1 and later (resolved in 2.8.0)
References: GitHub Issue #149274
CVE-2025-3730 - PyTorch Improper Resource Shutdown
Summary: PyTorch 2.6.0 and 2.7.1 contained an improper resource shutdown vulnerability in the
torch.nn.functional.ctc_lossfunction.Details: The vulnerability was found in the function
torch.nn.functional.ctc_lossin the fileaten/src/ATen/native/LossCTC.cpp. The manipulation of this function leads to denial of service through improper resource release. The exploit has been publicly disclosed.Fixed in: PyTorch 2.8.0
Patch commits: 01f226bf | 46fc5d8e
References: GitHub Issue #150835 | GitHub PR #150981