(Pwn2Own) NVIDIA Megatron Bridge _validate_target_prefix Permissive List of Allowed Inputs Remote Code Execution Vulnerability
A validation function in NVIDIA Megatron Bridge accepts an overly permissive set of target values when handling model metadata, so a crafted target can cause unexpected objects to be instantiated. An attacker who gets a victim to open a malicious page or file could execute code inside the application container.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of NVIDIA Megatron Bridge. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the _validate_target_prefix function uses a permissive allow-list or matching rule, so crafted target values pass validation and are later used to instantiate objects.
Impact
An attacker could execute arbitrary code in the context of the application container, but the victim must first visit a malicious page or open a malicious file.
What the attacker needed
Victim opens a malicious page or file; target runs NVIDIA Megatron Bridge
The fix
NVIDIA issued an update to correct the vulnerability.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Megatron Bridge is software for working with large AI models. It reads metadata that describes a model, and one field in that metadata is supposed to be checked against a list of safe values. The check was too loose, so a booby-trapped value could make the program build an object of the attacker's choosing, which in turn can run the attacker's code.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.