p PatchFirst

PatchFirst · Latest vulnerabilities

onnx vulnerabilities

Vulnerabilities published for onnx in the last 30 days: 4. Listed in the KEV catalogue: 0.

Filter vulnerabilities
Clear filters

Vulnerabilities: 17

  1. CVE-2026-115922

    Medium · CVSS 6.2EPSS 0.13%Fix available

    ONNX: Denial of service via unchecked expansion of packed sub-byte tensors in ONNX Python APIs

    Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. Prior to 1.22.0, _unpack_2bit() and _unpack_4bit() resize unpacked arrays according to attacker-controlled TensorProto.dims without verifying that raw_data or int32_data encodes the declared number of elements. Materializing an untrusted UINT2, INT2, UINT4, INT4, or FLOAT4E2M1 tensor through onnx.numpy_helper.to_array() or onnx.reference.ReferenceEvaluator can therefore expand a small packed payload into a disproportionately large allocation and exhaust memory. This issue is fixed in version 1.22.0.

    • Update to 1.22.0
    Published Updated
  2. CVE-2026-115921

    Medium · CVSS 6.2EPSS 0.13%Fix available

    ONNX: Null Pointer Dereference in ScanInferenceFunction Due to Missing Required Attribute

    Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. From 1.4.0 until 1.22.0, ScanInferenceFunction, ScanInferenceFunction_opset8, and ScanInferenceFunction_opset9 do not safely validate the required num_scan_inputs attribute. A missing attribute is dereferenced as a null pointer, while a negative value is converted to size_t and can reach an exceptional oversized allocation path. An untrusted model can therefore terminate or disrupt shape inference, including a negative-value model that can pass onnx.checker.check_model(). This issue is fixed in version 1.22.0.

    • Update to 1.22.0
    Published Updated
  3. CVE-2026-115920

    Medium · CVSS 6.2EPSS 0.18%Fix available

    ONNX: Out-of-bounds read in ConvTranspose shape inference via undersized weight rank

    Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. From 1.2.1 until 1.22.0, ConvTranspose shape inference processes a weight tensor with fewer than three dimensions without a kernel_shape attribute by deriving an empty effective_kernel_shape and indexing it for the input's spatial dimensions. The flaw affects convTransposeShapeInference_opset11() and the current inference path, and an untrusted model that can pass onnx.checker.check_model() can crash onnx.shape_inference.infer_shapes(), causing denial of service without demonstrated confidentiality or integrity impact. This issue is fixed in version

    • Update to 1.22.0
    Published Updated
  4. CVE-2026-115919

    Medium · CVSS 6.2EPSS 0.18%Fix available

    ONNX: Out-of-Bounds Read in RNN/GRU/LSTM Shape Inference (Old Opsets, Missing Rank Check)

    Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. Prior to 1.22.0, RNNShapeInference_opset1_to_6() processes malformed RNN and LSTM nodes from opsets 1 through 6 and GRU nodes from opsets 3 through 6 without verifying that the first input has rank three. The function accesses dim(0) and dim(1) on an undersized protobuf shape, which can read outside the intended repeated field and terminate an application when onnx.shape_inference.infer_shapes() processes an untrusted model that can pass onnx.checker.check_model(). This issue is fixed in version 1.22.0.

    • Update to 1.22.0
    Published Updated
  5. CVE-2026-49114

    Medium · CVSS 6.8EPSS 0.16%Fix available

    ONNX symlink-following and path-traversal arbitrary file write

    In ONNX before 1.21.0, the 'save_external_data' function builds the external-data file path from the model's external_data location field and opens it for writing without 'O_NOFOLLOW/O_EXCL', after a non-atomic 'os.path.isfile()' check. A local attacker with write access to the directory where a victim serializes external data can deterministically pre-plant a symlink that is being followed, causing the victim's write to append to any file the victim can write, e.g. ~/.ssh/authorized_keys, cron files, or application configs. Fixed in 1.21.0.

    • Update to 1.21.0
    Published Updated
  6. CVE-2026-63632

    Low · CVSS 3.3EPSS 0.17%Fix available

    ONNX: Heap-Buffer-Overflow READ in Gemm Version Converter Adapter via Undersized Input Shape

    Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. From 1.3.0 until 1.22.0, onnx.version_converter.convert_version() can perform an out-of-bounds read in Gemm_7_6::adapt_gemm_7_6() in onnx/version_converter/adapters/gemm_7_6.h when a Gemm node has input tensors with fewer than two dimensions because B_shape[1], A_shape[0], or A_shape[1] is accessed without a rank check, potentially causing a process crash during an opset 7 to 6 downgrade. This issue is fixed in version 1.22.0.

    • Update to 1.22.0
    Published Updated
  7. CVE-2026-44512

    Medium · CVSS 5.5EPSS 0.19%Fix available

    ONNX: Null Pointer Dereference in Upsample Version Converter Adapter (Zero Inputs)

    Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. From 1.9.0 before 1.22.0, onnx.version_converter.convert_version() can dereference a null pointer in Upsample_6_7::adapt_upsample_6_7() in onnx/version_converter/adapters/upsample_6_7.h when processing an untrusted model with an Upsample node that has zero inputs, causing an unrecoverable denial of service. This issue is fixed in version 1.22.0.

    • Update to 1.22.0
    Published Updated
  8. CVE-2026-34447

    Medium · CVSS 5.5EPSS 0.26%Fix available

    ONNX: External Data Symlink Traversal

    Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. Prior to version 1.21.0, there is a symlink traversal vulnerability in external data loading allows reading files outside the model directory. This issue has been patched in version 1.21.0.

    • Update to 1.21.0
    Published Updated
  9. CVE-2026-34446

    Medium · CVSS 4.7EPSS 0.18%Fix available

    ONNX: Arbitrary File Read via ExternalData Hardlink Bypass in ONNX load

    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.

    • Update to 1.21.0
    Published Updated
  10. CVE-2026-27489

    High · CVSS 8.7EPSS 0.62%Fix available

    ONNX: Path Traversal via Symlink

    Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. Prior to version 1.21.0, a path traversal vulnerability via symlink allows to read arbitrary files outside model or user-provided directory. This issue has been patched in version 1.21.0.

    • Update to 1.21.0
    Published Updated
  11. CVE-2026-34445

    High · CVSS 8.6EPSS 0.29%Fix available

    ONNX: Malicious ONNX models can crash servers by exploiting unprotected object settings.

    Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. Prior to version 1.21.0, the ExternalDataInfo class in ONNX was using Python’s setattr() function to load metadata (like file paths or data lengths) directly from an ONNX model file. It didn’t check if the "keys" in the file were valid. Due to this, an attacker could craft a malicious model that overwrites internal object properties. This issue has been patched in version 1.21.0.

    • Update to 1.21.0
    Published Updated
  12. CVE-2026-28500

    High · CVSS 8.6EPSS 0.32%Fix available

    ONNX Untrusted Model Repository Warnings Suppressed by silent=True in onnx.hub.load() — Silent Supply-Chain Attack

    Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. In versions up to and including 1.20.1, a security control bypass exists in onnx.hub.load() due to improper logic in the repository trust verification mechanism. While the function is designed to warn users when loading models from non-official sources, the use of the silent=True parameter completely suppresses all security warnings and confirmation prompts. This vulnerability transforms a standard model-loading function into a vector for Zero-Interaction Supply-Chain Attacks. When chained with file-system vulnerabilities, an attacker can silently e

    • Update to 1.21.0rc1
    Published Updated
  13. CVE-2024-7776

    High · CVSS 8.1EPSS 1.53%Fix available

    Arbitrary File Overwrite in onnx/onnx

    A vulnerability in the `download_model` function of the onnx/onnx framework, before and including version 1.16.1, allows for arbitrary file overwrite due to inadequate prevention of path traversal attacks in malicious tar files. This vulnerability can be exploited by an attacker to overwrite files in the user's directory, potentially leading to remote command execution.

    • Update to 1.16.2
    • Update to 1.17.0
    Published Updated
  14. CVE-2024-5187

    High · CVSS 8.8EPSS 1.17%Fix available

    Arbitrary File Overwrite in download_model_with_test_data in onnx/onnx

    A vulnerability in the `download_model_with_test_data` function of the onnx/onnx framework, version 1.16.0, allows for arbitrary file overwrite due to inadequate prevention of path traversal attacks in malicious tar files. This vulnerability enables attackers to overwrite any file on the system, potentially leading to remote code execution, deletion of system, personal, or application files, thus impacting the integrity and availability of the system. The issue arises from the function's handling of tar file extraction without performing security checks on the paths within the tar file, as demonstrated by the ability to overwrite the `/home/k

    • Update to 1.16.2
    Published Updated
  15. CVE-2024-27318

    High · CVSS 7.5EPSS 1.19%Fix available

    CVE-2024-27318

    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.

    • Update to 1.16.0
    Published Updated
  16. CVE-2022-25882

    High · CVSS 7.5EPSS 1.61%Fix available

    CVE-2022-25882

    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"

    • Update to 1.13.0
    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →