Advisory

GHSA-whh8-fjgc-qp73

Also known as: CVE-2024-27318, PYSEC-2024-222

Summary

Onnx Directory Traversal vulnerability

Details

Versions of the package onnx before and including 1.15.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. The vulnerability occurs as a bypass for the patch added for CVE-2022-25882.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-02-23 18:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

onnx

PyPI · All systems

Affected

  • introduced 0, fixed 1.16.0 (ecosystem)

Fixed versions

1.16.0

Fix

  • Fixed version 1.16.0
    pip install --upgrade onnx==1.16.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