Advisory

GHSA-ffxj-547x-5j7c

Also known as: CVE-2022-25882, PYSEC-2023-38

Summary

Directory Traversal in onnx

Details

Versions of the package onnx before 1.13.0 are vulnerable to Directory Traversal as the external_data field of the tensor proto can have a path to the file which is outside the model current directory or user-provided directory, for example "../../../etc/passwd"

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-01-26 21:30 UTC
Modified
2025-04-01 21:59 UTC

Affected packages and fixes

onnx

PyPI · All systems

Affected

  • introduced 0, fixed 1.13.0 (ecosystem)

Fixed versions

1.13.0

Fix

  • Fixed version 1.13.0
    pip install --upgrade onnx==1.13.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences