Description Preview
Overview
This vulnerability affects multiple versions of TensorFlow before the patched releases. The issue occurs in the RaggedGather operation implementation where insufficient validation of tensor shapes and ranks allows for out-of-bounds memory access. When the arguments to tf.raw_ops.RaggedGather don't determine a valid ragged tensor, the code can read from outside the bounds of heap-allocated buffers. This happens because the implementation directly accesses the first dimension of a tensor shape without first checking if the tensor has a sufficient rank, and also fails to verify that params_nested_splits contains tensors. This vulnerability could potentially be exploited to cause denial of service or information disclosure.
Remediation
Users should upgrade to one of the following patched versions:
- TensorFlow 2.6.0 or later
- TensorFlow 2.5.1 or later
- TensorFlow 2.4.3 or later
- TensorFlow 2.3.4 or later
If upgrading is not immediately possible, users should avoid using the tf.raw_ops.RaggedGather operation with untrusted inputs. The fix was implemented in GitHub commit a2b743f6017d7b97af1fe49087ae15f0ac634373, which adds proper validation checks for tensor ranks and ensures the params_nested_splits list is not empty before attempting to access elements.
References
- Patch: https://github.com/tensorflow/tensorflow/commit/a2b743f6017d7b97af1fe49087ae15f0ac634373
- GitHub Security Advisory: https://github.com/tensorflow/tensorflow/security/advisories/GHSA-9c8h-vvrj-w2p8
- Affected versions: TensorFlow versions before 2.6.0, 2.5.1, 2.4.3, and 2.3.4
Industry ExposureMost to leastThis section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.
- ManufacturingManufacturing
- Finance and InsuranceFinance and Insurance
- Management of Companies & EnterprisesManagement of Companies & Enterprises
- Retail TradeRetail Trade
- Arts, Entertainment & RecreationArts, Entertainment & Recreation
- Professional, Scientific, & Technical ServicesProfessional, Scientific, & Technical Services
- Public AdministrationPublic Administration
- Transportation & WarehousingTransportation & Warehousing
- Accommodation & Food ServicesAccommodation & Food Services
- Administrative, Support, Waste Management & Remediation ServicesAdministrative, Support, Waste Management & Remediation Services
- Agriculture, Forestry Fishing & HuntingAgriculture, Forestry Fishing & Hunting
- ConstructionConstruction
- Educational ServicesEducational Services
- Health Care & Social AssistanceHealth Care & Social Assistance
- InformationInformation
- MiningMining
- Other Services (except Public Administration)Other Services (except Public Administration)
- Real Estate Rental & LeasingReal Estate Rental & Leasing
- UtilitiesUtilities
- Wholesale TradeWholesale Trade