Skip to content
HighVulnerability

CVE-2022-25882: onnx directory traversal through the external_data field of tensor proto

Identifier
CVE-2022-25882
Published
Record updated
View JSON
Affected
  • onnx < 1.13.0
Fixed in
1.13.0
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.6%

Summary

CVE-2022-25882 affects versions of the onnx package before 1.13.0. The external_data field of a tensor proto can contain a path to a file outside the model's current directory or a user-provided directory, such as "../../../etc/passwd". The weakness is classified as CWE-22, Improper Limitation of a Pathname to a Restricted Directory.

Mitigation

The source text references a patch commit (github.com/onnx/onnx/commit/f369b0e859024095d721f1d1612da5a8fa38988d) and a pull request (github.com/onnx/onnx/pull/4400), but does not explicitly state the fixed version or describe the fix in its own words. The affected range is versions before 1.13.0.