Description
Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. Prior to version 1.21.0, there is an issue in onnx.load, the code checks for symlinks to prevent path traversal, but completely misses hardlinks because a hardlink looks exactly like a regular file on the filesystem. This issue has been patched in version 1.21.0.
Problem types
CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CWE-61: UNIX Symbolic Link (Symlink) Following
Product status
References
github.com/onnx/onnx/security/advisories/GHSA-cmw6-hcpp-c6jp
github.com/...ommit/4755f8053928dce18a61db8fec71b69c74f786cb