NVIDIA has patched a critical deserialization vulnerability in Transformers4Rec, its open-source library for transformer-based recommendation systems, which allows for remote code execution (RCE). The coordinated disclosure was made public on June 9, 2026, via advisory ZDI-26-338, following the initial report to the vendor on January 6, 2026. The case highlights the growing risks within the machine learning supply chain: pre-trained model files, frequently downloaded from public repositories or shared across teams, are increasingly serving as Trojan horses with direct impact on enterprise systems.
- The
Model.loadfunction in NVIDIA Transformers4Rec deserializes user-supplied data without validation, enabling arbitrary code execution within the current Python process. - Exploitation requires user interaction: a target must open a malicious model file or visit a webpage that triggers the loading process.
- CVE-2026-24162 carries a CVSS 3.1 score of 7.8 (HIGH), with the vector AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H according to the official CVE.org record.
- NVIDIA has released a fix; commits to the Main branch following March 11, 2026, are not vulnerable.
The Mechanism: Deserialization as an Execution Engine
The specific flaw resides within the Model.load function of the Transformers4Rec framework. According to advisory ZDI-26-338, "the issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data." In operational terms, when an analyst or an application loads a model file—a format easily disguised as a legitimate ML artifact—the library performs data deserialization without integrity or provenance checks.
This lack of validation allows an attacker to embed malicious serialized payloads within the model structure. Upon loading, the payload is deserialized and executed in the context of the active Python process, resulting in a complete compromise of the CIA triad: confidentiality, integrity, and availability. The CVE-2026-24162 record explicitly confirms that "a successful exploit of this vulnerability might lead to code execution, data tampering, and information disclosure."
"This vulnerability allows remote attackers to execute arbitrary code on affected installations of NVIDIA Transformers4Rec." — ZDI Advisory ZDI-26-338
Attack Vector: ML as a Social Engineering Surface
What distinguishes this vulnerability from other RCEs is the requirement for user interaction paired with the inherent nature of ML workflows. The advisory specifies that "user interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file." This detail shifts the technical vulnerability into the realm of security awareness and ML pipeline governance.
Exposure scenarios are practical and varied. A data analyst in e-commerce or fintech might download a Transformers4Rec model from a public repository or receive it via email as a purported comparative benchmark. Similarly, a web application that allows users to upload custom models for recommendations—an architectural pattern common in SaaS platforms—could be induced to process malicious artifacts. Visiting a malicious page that leverages browser-based integration with the framework completes the documented vector landscape.
Severity and Remediation: Metrics and Timeline
The CVSS 3.1 score of 7.8 (High) stems from a significant combination: a local attack vector (AV:L) but low complexity (AC:L), no required privileges (PR:N), mandatory user interaction (UI:R), and an unchanged scope (S:U) with maximum impact on confidentiality, integrity, and availability (C:H/I:H/A:H). According to the CVE.org record, all commits on the Main branch prior to March 11, 2026, are affected; the fix is available in all subsequent commits.
The disclosure timeline reflects the standard coordinated process of the ZDI program: the initial report reached the vendor on January 6, 2026, with the public advisory following on June 9, 2026. This five-month interval suggests that the complexity of the fix or NVIDIA’s testing cycles required significant time, though the dossier does not specify the reasons for the duration.
Mitigation and Response
- Verify that NVIDIA Transformers4Rec installations are using Main branch commits dated after March 11, 2026, as documented in the CVE-2026-24162 record.
- Implement provenance and integrity validation for every model file loaded into recommendation pipelines, including cryptographic signatures or independently verified hashes.
- Restrict the execution of Transformers4Rec processes to least-privilege sandboxes to limit the impact of potential exploits on host systems.
- Review web applications that allow ML model uploads from unauthenticated or semi-authenticated users, and consider disabling the feature until patching is confirmed.
Model Supply Chain: The New Enterprise Risk Frontier
This vulnerability signals a qualitative shift in the threat landscape. ML frameworks are no longer just dependencies to be audited via Software Composition Analysis (SCA); they have become delivery channels for executable payloads. The established practice of downloading pre-trained models from Hugging Face, GitHub, or internal repositories carries inherent risk when the model format includes serialized data without a rigid schema or mandatory sandboxing.
For organizations running production recommendation systems, this incident serves as a critical checkpoint: ML model governance must reach the same maturity level as patch management for traditional operating systems and runtimes. The fact that a single model file can compromise an entire Python process—potentially granting access to training datasets, feature stores, and production databases—demands a re-evaluation of trust boundaries in AI pipelines.
The ZDI advisory does not document any in-the-wild exploits or active attack campaigns. However, the low attack complexity (AC:L) and lack of prerequisite privileges (PR:N) indicate that once technical details are public, the barrier for exploit reproduction remains low. The window between public disclosure and potential mass exploitation remains, as always, uncertain.
Sources
- http://www.zerodayinitiative.com/advisories/ZDI-26-338/
- http://www.zerodayinitiative.com/advisories/published/
- https://www.cve.org/CVERecord?id=CVE-2026-24162
- http://www.zerodayinitiative.com/advisories/upcoming/
- https://www.trendmicro.com/en_us/business/products/one-platform.html
Information verified against cited sources and current as of publication.