Remote Code Execution With Modern AI/ML Formats and Librarie...#1756
Merged
carlospolop merged 1 commit intomasterfrom Jan 23, 2026
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://unit42.paloaltonetworks.com/rce-vulnerabilities-in-ai-python-libraries/ Content Categories: Based on the analysis, this content was categorized under "🤖 AI → AI Models RCE (or a new page under AI Security): "Hydra instantiate() config injection to RCE (model metadata abuse)"; cross-link from Web/Python deserialization and supply-chain sections". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
Collaborator
Author
|
merge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Remote Code Execution With Modern AI/ML Formats and Libraries (Unit 42, Published: January 13, 2026)
Unit 42 identified remote code execution (RCE) vulnerabilities in three AI/ML Python libraries (NVIDIA NeMo, Salesforce uni2TS, Apple/EPFL VILAB ml-flextok/FlexTok). The core issue is unsafe object/callable instantiation from untrusted model metadata/config. Even when “safe” formats such as safetensors are used (no pickle execution), consumer libraries reintrodu...
🔧 Technical Details
Hydra config-to-RCE via
instantiate(): If an application loads untrusted configuration/metadata and passes it intohydra.utils.instantiate(), an attacker can set_target_to an arbitrary callable (not just a class) and supply arguments (e.g.,_target_=builtins.execwith a Python code string). When the victim loads the artifact (model file or repo config), Hydra resolves/imports the target and executes it, yielding RCE.Bypassing naive string block-lists: Defenses that block only exact
_target_strings before import are bypassable by using alternate import paths or indirections (e.g., stdlib indirection likeenum.bltns.eval) or by referencing dangerous functions through application namespaces that resolve to system modules (e.g.,nemo.core.classes.common.os.systemresolving toposix). Robust mitigation must validate the resolved imported object...🤖 Agent Actions
Summary:
ast.literal_eval.Tests:
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.