Onnx
Monthly
Arbitrary attribute injection in ONNX Python library (versions prior to 1.21.0) allows unauthenticated remote attackers to manipulate internal object properties by embedding malicious metadata in ONNX model files, resulting in potential information disclosure, data integrity violations, and high availability impact (CVSS 8.6). The vulnerability stems from unchecked use of Python's setattr() with externally-controlled keys during ExternalDataInfo deserialization. No public exploit code or CISA KEV listing identified at time of analysis, but proof-of-concept development is trivial given the straightforward nature of Python attribute manipulation. EPSS data not provided, but the unauthenticated network-accessible attack vector and low complexity suggest material risk for organizations processing untrusted ONNX models.
Cross-site scripting in ONNX ONNXMLTools 1.16.0 and earlier allows attacker-influenced model metadata to execute script in the browser of anyone who renders an untrusted ONNX model with the built-in Model Visualization utility. Graph node/input names and the model's producer_name and producer_version fields are written into the generated index.html without escaping, so a crafted model can break out of the dagre-d3 script literal or inject markup into the page heading. Exploitation is unauthenticated in the sense that no credentials are involved, but it requires user interaction: the victim must call visualize_model() on the malicious model and then open the resulting HTML file; a public PoC reference exists (a linked proof-of-concept archive), it is not verified as working exploit code, and no confirmed active exploitation or KEV listing was reported. This is a moderate-severity, low-urgency issue, not a drop-everything priority, consistent with the this_month decision label and the developer-side, locally-rendered nature of the affected tool.
Memory exhaustion denial of service in ONNX prior to 1.22.0: the Python tensor-materialization helpers _unpack_2bit() and _unpack_4bit() resize unpacked arrays to the attacker-declared TensorProto.dims without first verifying that the packed payload actually encodes that many elements, so a tiny model can force a disproportionately large allocation. Applications that call onnx.numpy_helper.to_array() or construct onnx.reference.ReferenceEvaluator with an untrusted UINT2, INT2, UINT4, INT4, or FLOAT4E2M1 tensor (stored in raw_data or packed int32_data) are affected; a 66-byte model declaring 700,000,000 elements allocated roughly 700 MB on vulnerable versions. Merely loading the model, running onnx.checker.check_model(), or running shape inference does not trigger it - the initializer must be materialized. The vendor-rated CVSS vector is AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (6.2, Medium), consistent with a local library/file boundary; no public exploit code or active exploitation is reported in the available data, and the issue is fixed in 1.22.0.
Shape inference in the ONNX library (versions 1.4.0 through 1.21.0) mishandles the required Scan attribute num_scan_inputs: an absent attribute is dereferenced as a null pointer, and a negative value is narrowed to an oversized size_t that reaches a vector allocation and raises std::length_error, letting a crafted model crash or disrupt any process that runs onnx.shape_inference.infer_shapes on untrusted input. Only denial of service is demonstrated (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 6.2); the attack is unauthenticated but local in vector terms, since the attacker must deliver the model across the library's API or file boundary rather than over a network stack that ONNX itself exposes. No public exploit code or CISA KEV entry was identified at time of analysis, and the priority decision is 'this_month' - a routine patch rather than an emergency; note that the negative-value model passes onnx.checker.check_model(), so using check_model() as a pre-inference gate does not protect against this issue.
Out-of-bounds read in ONNX ConvTranspose shape inference (convTransposeShapeInference and convTransposeShapeInference_opset11) lets a crafted model terminate the hosting process, causing denial of service. The issue affects ONNX 1.2.1 through 1.21.0 and is triggered when an application calls onnx.shape_inference.infer_shapes() on an attacker-supplied model containing a ConvTranspose node whose weight tensor (input 1) has fewer than three dimensions and no kernel_shape attribute; such a model still passes onnx.checker.check_model(), so that validation does not block it. Severity is assessed at CVSS 3.1 6.2 (AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) with availability-only impact and no demonstrated confidentiality or integrity effect; no public exploit has been identified at time of analysis, and the issue is fixed in ONNX 1.22.0.
Out-of-bounds read in ONNX's legacy shape-inference path allows an attacker-supplied model to crash a process that calls onnx.shape_inference.infer_shapes(). The vulnerable code, RNNShapeInference_opset1_to_6(), reads dim(0) and dim(1) from the first input of RNN/LSTM nodes (opsets 1-6) and GRU nodes (opsets 3-6) without verifying the tensor has rank three, so a malformed but checker-valid model triggers a protobuf repeated-field over-read and SIGSEGV. All ONNX releases through 1.21.0 are affected and the issue is fixed in 1.22.0; impact is limited to process termination (denial of service) with no demonstrated confidentiality or integrity effect, and no public exploit has been identified at time of analysis.
Symlink-following arbitrary file write in ONNX's save_external_data function (onnx/external_data_helper.py) allows a local attacker with write access to a shared directory to redirect a victim's model serialization writes to any file the victim can modify — including ~/.ssh/authorized_keys, cron entries, and application configuration files. All ONNX releases up to and including 1.20.1 (pip/onnx) are affected; the vendor-released patch is 1.21.0. Publicly available exploit code is confirmed via the GHSA advisory, and CISA has published a CSAF advisory (va-26-233-01) covering this issue, indicating heightened government-sector awareness.
Out-of-bounds read in ONNX versions up to 1.21.x exposes limited memory contents to low-privileged remote attackers via the convPoolShapeInference_opset19 shape inference function. The CVSS 4.0 score of 2.1 reflects minimal real-world impact - confidentiality-only, low severity - yet a public proof-of-concept is available via GitHub issue #8036. No active exploitation has been confirmed by CISA KEV, and an upstream patch exists at commit a7bf3a0f1d18bb62575236ef6e4944980c40e045 via PR #8051.
Weak cache key construction in onnx-mlir's torch backend (versions up to 0.5.0.0) omits tensor data type (dtype) from placeholder node hash keys, enabling cache collisions between semantically distinct nodes. A locally authenticated attacker with high-complexity manipulation can cause the compiler to incorrectly reuse cached compilation results across mismatched dtypes, yielding low-integrity and low-availability impacts. No public exploit is identified at time of analysis; the upstream fix is confirmed via commit 72c5187 and PR #3427.
ONNX versions prior to 1.21.0 allow local attackers to read arbitrary files outside the model directory through symlink traversal during external data loading, requiring user interaction to load a malicious model file. The vulnerability has a CVSS score of 5.5 (medium severity) and is classified as information disclosure with confirmed patch availability in version 1.21.0.
ONNX versions prior to 1.21.0 allow local attackers to read arbitrary files by exploiting a hardlink-based path traversal vulnerability in onnx.load(). The vulnerability bypasses existing symlink protections because hardlinks appear as regular files to filesystem checks. An attacker with local file system access can craft a malicious ONNX model file using hardlinks to access sensitive data outside the intended directory, requiring user interaction to load the crafted model. No public exploit code has been identified; EPSS score of 4.7 indicates low exploitation probability despite moderate CVSS impact.
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. Rated critical severity (CVSS 9.1), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.
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. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.
Versions of the package onnx before and including 1.15.0 are vulnerable to Out-of-bounds Read as the ONNX_ASSERT and ONNX_ASSERTM functions have an off by one string copy. Rated critical severity (CVSS 9.1), this vulnerability is remotely exploitable, no authentication required, low attack complexity.
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. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. This Path Traversal vulnerability could allow attackers to access files and directories outside the intended path.
Arbitrary attribute injection in ONNX Python library (versions prior to 1.21.0) allows unauthenticated remote attackers to manipulate internal object properties by embedding malicious metadata in ONNX model files, resulting in potential information disclosure, data integrity violations, and high availability impact (CVSS 8.6). The vulnerability stems from unchecked use of Python's setattr() with externally-controlled keys during ExternalDataInfo deserialization. No public exploit code or CISA KEV listing identified at time of analysis, but proof-of-concept development is trivial given the straightforward nature of Python attribute manipulation. EPSS data not provided, but the unauthenticated network-accessible attack vector and low complexity suggest material risk for organizations processing untrusted ONNX models.
Cross-site scripting in ONNX ONNXMLTools 1.16.0 and earlier allows attacker-influenced model metadata to execute script in the browser of anyone who renders an untrusted ONNX model with the built-in Model Visualization utility. Graph node/input names and the model's producer_name and producer_version fields are written into the generated index.html without escaping, so a crafted model can break out of the dagre-d3 script literal or inject markup into the page heading. Exploitation is unauthenticated in the sense that no credentials are involved, but it requires user interaction: the victim must call visualize_model() on the malicious model and then open the resulting HTML file; a public PoC reference exists (a linked proof-of-concept archive), it is not verified as working exploit code, and no confirmed active exploitation or KEV listing was reported. This is a moderate-severity, low-urgency issue, not a drop-everything priority, consistent with the this_month decision label and the developer-side, locally-rendered nature of the affected tool.
Memory exhaustion denial of service in ONNX prior to 1.22.0: the Python tensor-materialization helpers _unpack_2bit() and _unpack_4bit() resize unpacked arrays to the attacker-declared TensorProto.dims without first verifying that the packed payload actually encodes that many elements, so a tiny model can force a disproportionately large allocation. Applications that call onnx.numpy_helper.to_array() or construct onnx.reference.ReferenceEvaluator with an untrusted UINT2, INT2, UINT4, INT4, or FLOAT4E2M1 tensor (stored in raw_data or packed int32_data) are affected; a 66-byte model declaring 700,000,000 elements allocated roughly 700 MB on vulnerable versions. Merely loading the model, running onnx.checker.check_model(), or running shape inference does not trigger it - the initializer must be materialized. The vendor-rated CVSS vector is AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (6.2, Medium), consistent with a local library/file boundary; no public exploit code or active exploitation is reported in the available data, and the issue is fixed in 1.22.0.
Shape inference in the ONNX library (versions 1.4.0 through 1.21.0) mishandles the required Scan attribute num_scan_inputs: an absent attribute is dereferenced as a null pointer, and a negative value is narrowed to an oversized size_t that reaches a vector allocation and raises std::length_error, letting a crafted model crash or disrupt any process that runs onnx.shape_inference.infer_shapes on untrusted input. Only denial of service is demonstrated (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 6.2); the attack is unauthenticated but local in vector terms, since the attacker must deliver the model across the library's API or file boundary rather than over a network stack that ONNX itself exposes. No public exploit code or CISA KEV entry was identified at time of analysis, and the priority decision is 'this_month' - a routine patch rather than an emergency; note that the negative-value model passes onnx.checker.check_model(), so using check_model() as a pre-inference gate does not protect against this issue.
Out-of-bounds read in ONNX ConvTranspose shape inference (convTransposeShapeInference and convTransposeShapeInference_opset11) lets a crafted model terminate the hosting process, causing denial of service. The issue affects ONNX 1.2.1 through 1.21.0 and is triggered when an application calls onnx.shape_inference.infer_shapes() on an attacker-supplied model containing a ConvTranspose node whose weight tensor (input 1) has fewer than three dimensions and no kernel_shape attribute; such a model still passes onnx.checker.check_model(), so that validation does not block it. Severity is assessed at CVSS 3.1 6.2 (AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) with availability-only impact and no demonstrated confidentiality or integrity effect; no public exploit has been identified at time of analysis, and the issue is fixed in ONNX 1.22.0.
Out-of-bounds read in ONNX's legacy shape-inference path allows an attacker-supplied model to crash a process that calls onnx.shape_inference.infer_shapes(). The vulnerable code, RNNShapeInference_opset1_to_6(), reads dim(0) and dim(1) from the first input of RNN/LSTM nodes (opsets 1-6) and GRU nodes (opsets 3-6) without verifying the tensor has rank three, so a malformed but checker-valid model triggers a protobuf repeated-field over-read and SIGSEGV. All ONNX releases through 1.21.0 are affected and the issue is fixed in 1.22.0; impact is limited to process termination (denial of service) with no demonstrated confidentiality or integrity effect, and no public exploit has been identified at time of analysis.
Symlink-following arbitrary file write in ONNX's save_external_data function (onnx/external_data_helper.py) allows a local attacker with write access to a shared directory to redirect a victim's model serialization writes to any file the victim can modify — including ~/.ssh/authorized_keys, cron entries, and application configuration files. All ONNX releases up to and including 1.20.1 (pip/onnx) are affected; the vendor-released patch is 1.21.0. Publicly available exploit code is confirmed via the GHSA advisory, and CISA has published a CSAF advisory (va-26-233-01) covering this issue, indicating heightened government-sector awareness.
Out-of-bounds read in ONNX versions up to 1.21.x exposes limited memory contents to low-privileged remote attackers via the convPoolShapeInference_opset19 shape inference function. The CVSS 4.0 score of 2.1 reflects minimal real-world impact - confidentiality-only, low severity - yet a public proof-of-concept is available via GitHub issue #8036. No active exploitation has been confirmed by CISA KEV, and an upstream patch exists at commit a7bf3a0f1d18bb62575236ef6e4944980c40e045 via PR #8051.
Weak cache key construction in onnx-mlir's torch backend (versions up to 0.5.0.0) omits tensor data type (dtype) from placeholder node hash keys, enabling cache collisions between semantically distinct nodes. A locally authenticated attacker with high-complexity manipulation can cause the compiler to incorrectly reuse cached compilation results across mismatched dtypes, yielding low-integrity and low-availability impacts. No public exploit is identified at time of analysis; the upstream fix is confirmed via commit 72c5187 and PR #3427.
ONNX versions prior to 1.21.0 allow local attackers to read arbitrary files outside the model directory through symlink traversal during external data loading, requiring user interaction to load a malicious model file. The vulnerability has a CVSS score of 5.5 (medium severity) and is classified as information disclosure with confirmed patch availability in version 1.21.0.
ONNX versions prior to 1.21.0 allow local attackers to read arbitrary files by exploiting a hardlink-based path traversal vulnerability in onnx.load(). The vulnerability bypasses existing symlink protections because hardlinks appear as regular files to filesystem checks. An attacker with local file system access can craft a malicious ONNX model file using hardlinks to access sensitive data outside the intended directory, requiring user interaction to load the crafted model. No public exploit code has been identified; EPSS score of 4.7 indicates low exploitation probability despite moderate CVSS impact.
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. Rated critical severity (CVSS 9.1), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.
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. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.
Versions of the package onnx before and including 1.15.0 are vulnerable to Out-of-bounds Read as the ONNX_ASSERT and ONNX_ASSERTM functions have an off by one string copy. Rated critical severity (CVSS 9.1), this vulnerability is remotely exploitable, no authentication required, low attack complexity.
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. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. This Path Traversal vulnerability could allow attackers to access files and directories outside the intended path.