pytorch - 💡(How to fix) Fix Bump onnx to v1.21+ to resolve 4 High/Critical CVEs [4 comments, 4 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
pytorch/pytorch#179340Fetched 2026-04-08 02:43:33
View on GitHub
Comments
4
Participants
4
Timeline
22
Reactions
0
Author
Timeline (top)
labeled ×7commented ×4mentioned ×4subscribed ×4

PyTorch includes onnx as a submodule at third_party/onnx, which is currently pinned to v1.18.0.

This version contains 4 known High/Critical vulnerabilities:

AdvisorySeverityDescription
GHSA-hqmj-h5c6-369mCritical (CVSS 9.1)onnx.hub path traversal / arbitrary file write (fixed by onnx/onnx#7757)
GHSA-538c-55jv-c5g9HighInteger overflow in shape inference
GHSA-3r9x-f23j-gc73HighPath traversal via symlink in external data handling
GHSA-q56x-g2fj-4rj6HighTOCTOU race condition / symlink following in external_data_helper.py

All of these are fixed in v1.21+.

cc @justinchuby @titaiwangms

Root Cause

PyTorch includes onnx as a submodule at third_party/onnx, which is currently pinned to v1.18.0.

This version contains 4 known High/Critical vulnerabilities:

AdvisorySeverityDescription
GHSA-hqmj-h5c6-369mCritical (CVSS 9.1)onnx.hub path traversal / arbitrary file write (fixed by onnx/onnx#7757)
GHSA-538c-55jv-c5g9HighInteger overflow in shape inference
GHSA-3r9x-f23j-gc73HighPath traversal via symlink in external data handling
GHSA-q56x-g2fj-4rj6HighTOCTOU race condition / symlink following in external_data_helper.py

All of these are fixed in v1.21+.

cc @justinchuby @titaiwangms

Fix Action

Fix / Workaround

AdvisorySeverityDescription
GHSA-hqmj-h5c6-369mCritical (CVSS 9.1)onnx.hub path traversal / arbitrary file write (fixed by onnx/onnx#7757)
GHSA-538c-55jv-c5g9HighInteger overflow in shape inference
GHSA-3r9x-f23j-gc73HighPath traversal via symlink in external data handling
GHSA-q56x-g2fj-4rj6HighTOCTOU race condition / symlink following in external_data_helper.py
RAW_BUFFERClick to expand / collapse

Summary

PyTorch includes onnx as a submodule at third_party/onnx, which is currently pinned to v1.18.0.

This version contains 4 known High/Critical vulnerabilities:

AdvisorySeverityDescription
GHSA-hqmj-h5c6-369mCritical (CVSS 9.1)onnx.hub path traversal / arbitrary file write (fixed by onnx/onnx#7757)
GHSA-538c-55jv-c5g9HighInteger overflow in shape inference
GHSA-3r9x-f23j-gc73HighPath traversal via symlink in external data handling
GHSA-q56x-g2fj-4rj6HighTOCTOU race condition / symlink following in external_data_helper.py

All of these are fixed in v1.21+.

cc @justinchuby @titaiwangms

extent analysis

TL;DR

Upgrade the onnx submodule to version v1.21+ to fix the known High/Critical vulnerabilities.

Guidance

  • Identify the current version of onnx used in the project and verify it is indeed v1.18.0.
  • Check the release notes for onnx version v1.21+ to ensure the fixes for the mentioned vulnerabilities are included.
  • Update the onnx submodule to v1.21+ and retest the project to ensure compatibility and vulnerability fixes.
  • Review the project's dependencies and ensure no other submodules or dependencies are using vulnerable versions of onnx.

Notes

The fix assumes that upgrading to v1.21+ does not introduce breaking changes or compatibility issues with other project dependencies.

Recommendation

Upgrade to fixed version v1.21+ because it includes fixes for the known High/Critical vulnerabilities in onnx version v1.18.0.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING