CVE-2026-14647: ONNX Runtime Out-of-Bounds Read Vulnerability in Shape Inference
A flaw in ONNX Runtime versions up to 1.21.x allows an authenticated attacker to read memory beyond intended boundaries when processing certain neural network model operations. An attacker with login credentials can send a specially crafted model file to trigger an out-of-bounds read, potentially exposing sensitive data. The vulnerability resides in shape inference logic for pooling operations and can be exploited remotely without user interaction.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 4.3 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Weaknesses (CWE)
- CWE-119, CWE-125
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-07-04 / 2026-07-06
NVD description (verbatim)
A weakness has been identified in onnx up to 1.21.x. This vulnerability affects the function convPoolShapeInference_opset19 of the file onnx/defs/nn/old.cc of the component onnxruntime. This manipulation causes out-of-bounds read. It is possible to initiate the attack remotely. The exploit has been made available to the public and could be used for attacks. Patch name: a7bf3a0f1d18bb62575236ef6e4944980c40e045. It is recommended to apply a patch to fix this issue.
8 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-14647 is an out-of-bounds read vulnerability in the convPoolShapeInference_opset19 function within onnx/defs/nn/old.cc in ONNX Runtime up to version 1.21.x. The flaw occurs during shape inference processing for convolutional and pooling operations (ONNX opset 19). When malformed model metadata is provided, the function reads memory outside allocated buffer boundaries, violating memory safety constraints. The weakness is classified under CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) and CWE-125 (Out-of-bounds Read), both fundamental memory safety issues. Successful exploitation requires network access and valid authentication credentials.
Business impact
Organizations using ONNX Runtime in production environments face confidentiality risk, as authenticated attackers could extract sensitive model parameters, training data, or system memory contents. The impact is limited by the requirement for valid credentials and the read-only nature of the vulnerability—no data modification or denial of service occurs. However, in scenarios where ONNX Runtime processes confidential models or where compromised user accounts exist, this could enable intellectual property theft or information disclosure. The vulnerability is most critical for organizations exposing ONNX Runtime inference services to untrusted internal users or partner networks.
Affected systems
ONNX Runtime versions up to and including 1.21.x are vulnerable. The affected component is the shape inference engine used during model loading and validation. Any deployment consuming untrusted or user-supplied ONNX models is at risk. This includes ML inference services, automated model pipelines, and cloud-hosted ML platforms built on ONNX Runtime. Organizations should inventory all deployments of ONNX Runtime, particularly those accepting external model inputs or serving multiple tenants.
Exploitability
Exploitation requires network access and valid authentication credentials, reducing the attack surface compared to unauthenticated flaws. An attacker must craft a malicious ONNX model file with specific metadata that triggers incorrect buffer calculations during shape inference. Public exploit code is available, lowering the bar for would-be attackers but not providing weaponized remote execution capabilities. The CVSS score of 4.3 (Medium) reflects the authentication requirement and confidentiality-only impact. Real-world exploitation likelihood is moderate—dependent on whether attackers have compromised credentials and whether models are processed without additional sandboxing.
Remediation
Apply the patch identified as commit a7bf3a0f1d18bb62575236ef6e4944980c40e045 to remediate this vulnerability. Organizations should verify this patch has been integrated into an official ONNX Runtime release and test compatibility with their inference workloads before production deployment. Until patching is possible, restrict ONNX model ingestion to trusted sources, implement input validation on model files, and consider running ONNX Runtime in isolated processes with minimal privilege. Monitor authentication logs for unusual model upload or inference activity.
Patch guidance
Verify the availability of a patched ONNX Runtime release incorporating commit a7bf3a0f1d18bb62575236ef6e4944980c40e045. Check the official ONNX Runtime repository and release notes to confirm which version contains this fix. After upgrading, conduct regression testing on model inference accuracy and performance to ensure the patch does not affect functionality. If using ONNX Runtime through a third-party integration (cloud ML services, PyTorch, TensorFlow interop), verify that the upstream provider has released a patched version before upgrading. Deploy patches to development and staging environments first, then roll out to production using your standard change management process.
Detection guidance
Monitor ONNX Runtime process behavior for abnormal memory access patterns or crashes during model loading—out-of-bounds reads may cause segmentation faults or access violations visible in system logs. Review model upload and inference request logs for suspicious metadata or unusual model architectures targeting opset 19 pooling operations. Implement intrusion detection signatures to flag model files with malformed shape tensors or unexpected convolution/pooling configurations. Use memory safety tools (AddressSanitizer, Valgrind) in test environments to surface out-of-bounds reads during model validation. Track patch deployment status across all ONNX Runtime instances to ensure no unpatched versions remain in production.
Why prioritize this
This vulnerability merits prompt but not emergency remediation. The CVSS score of 4.3 reflects the authentication requirement and read-only impact, positioning it as medium priority. However, if your organization processes untrusted ONNX models, accepts model uploads from external users, or operates multi-tenant ML inference services, prioritize patching within 30 days. If ONNX Runtime instances only consume internally authored, static models in isolated environments, remediation can be scheduled within normal patch cycles (60–90 days). Public availability of exploit code elevates risk for less-mature security teams and increases the likelihood of opportunistic exploitation against unpatched systems.
Risk score, explained
The CVSS 3.1 score of 4.3 (Medium severity) accurately reflects the threat profile. The network attack vector (AV:N) and low complexity (AC:L) indicate broad reachability; however, the requirement for valid authentication (PR:L) significantly restricts the attacker pool. The impact is limited to confidentiality (C:L) with no integrity or availability compromise (I:N, A:N), as out-of-bounds reads cannot modify data or crash services reliably. The unchanged scope (S:U) means exploitation does not bypass security boundaries. Organizations with strong credential hygiene and restricted model ingestion may view their actual risk as sub-medium; conversely, those with weak identity controls or open model pipelines should treat this as higher-priority.
Frequently asked questions
What is the difference between this vulnerability and a typical buffer overflow?
This is an out-of-bounds read, not a write or overflow. The vulnerability allows reading memory beyond the intended buffer but cannot write data or inject code. It exposes confidentiality (leaking model parameters or other memory contents) but cannot directly achieve code execution or denial of service. That said, out-of-bounds reads can sometimes be chained with other flaws or used to bypass address space layout randomization (ASLR).
Do we need to patch if we only use ONNX Runtime with models we created internally?
If your organization exclusively processes ONNX models authored and controlled by trusted teams, and does not accept model uploads or dynamic model loading from external sources, risk is substantially lower. However, patching is still recommended as a general security hygiene measure. Prioritize patching if any human or automated process outside your direct control can influence which models are loaded.
Will this vulnerability allow attackers to execute code on our servers?
No. An out-of-bounds read permits information disclosure but not code execution by itself. However, the attacker could potentially extract information that enables further attacks (e.g., leaked memory addresses to bypass ASLR in combination with other vulnerabilities). For code execution risk, you would need a separate vulnerability; this one is confidentiality-focused.
How should we handle ONNX models received from external partners or customers?
Until patching is complete, validate and sandbox all external models. Run model validation in a separate, unprivileged process and implement strict resource limits. Consider running ONNX Runtime in containers or virtual machines with minimal attack surface. After patching, continue these practices as defense-in-depth, as model files are untrusted inputs analogous to uploaded documents.
This analysis is provided for informational purposes and represents the state of publicly available information as of the publication date. SEC.co does not provide legal, compliance, or warranty advice. Organizations must independently verify patch availability, compatibility, and applicability to their specific deployments. CVSS scores reflect generalized risk; actual risk depends on your environment, threat model, and controls. Always test patches in non-production environments before production rollout. Refer to official ONNX Runtime security advisories and vendor documentation for authoritative guidance. Source: NVD (public-domain), retrieved 2026-08-13. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-13522MEDIUMSlimPDFReader Out-of-Bounds Read Vulnerability – Unsupported Product Alert
- CVE-2026-10233LOWOut-of-Bounds Read in Assimp Half-Life MDL Loader
- CVE-2026-10267LOWOut-of-Bounds Read in Janet Language Debug Frame Handling
- CVE-2026-12310HIGHFirefox and Thunderbird Memory Safety Vulnerability (CVSS 7.5)
- CVE-2026-12314HIGHFirefox & Thunderbird Memory Safety Vulnerability – Patch Now
- CVE-2026-15185LOWGPAC MP4Box Out-of-Bounds Read in VOBSUB Processing
- CVE-2020-9711MEDIUMAdobe Acrobat Reader Out-of-Bounds Read Memory Disclosure
- CVE-2020-9713MEDIUMAdobe Acrobat Reader Memory Disclosure Vulnerability