CVE-2024-27319: Onnx Onnx Out-of-bounds Read Vulnerability Vulnerability
MODERATECVE-2024-27319 is a MODERATE (CVSS 4.4) onnx out-of-bounds read vulnerability vulnerability (CWE-125: Out-of-bounds Read) affecting Onnx libraries in the PyPI ecosystem. The issue involves onnx out-of-bounds read vulnerability. Remediation is available by upgrading affected packages to version 1.16.0.
CVE-2024-27319 at a Glance
Security Impact
CVSS: 4.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L).
How to Fix CVE-2024-27319
To remediate this vulnerability, upgrade all affected Onnx dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install onnx>=1.16.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show onnx
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-27319, inspect your installed packages using pip:
pip show onnx
Analyze the terminal output to locate any version of Onnx in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.16.0), your application is affected.
Note: The pip show onnx command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. In Onnx, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-27319 Affected Onnx Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
onnx
|
PyPI |
< 1.16.0
|
1.16.0
|
References
Frequently Asked Questions
What is CVE-2024-27319?
Which Onnx versions are affected?
What version fixes CVE-2024-27319?
Is onnx affected?
What is the CVSS score of CVE-2024-27319?
What CWE is associated with CVE-2024-27319?
How can I check PyPI dependencies for CVE-2024-27319?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h8wv-9h96-m4hr",
"modified" : "2025-02-13T19:11:04Z",
"published" : "2024-02-23T18:30:59Z",
"aliases" : [ "CVE-2024-27319" ],
"summary" : "Onnx Out-of-bounds Read vulnerability",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "onnx"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.16.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.15.0"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-27319"
}, {
"type" : "WEB",
"url" : "https://github.com/onnx/onnx/commit/08a399ba75a805b7813ab8936b91d0e274b08287"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/onnx/onnx"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2024-223.yaml"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FGTBH5ZYL2LGYHIJDHN2MAUURIR5E7PY"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TFJJID2IZDOLFDMWVYTBDI75ZJQC6JOL"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-125" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-23T20:10:44Z",
"nvd_published_at" : "2024-02-23T18:15:50Z"
}
}