Skip to content
RCE Advisory Advanced CVE-2021-34994

Commvault CommCell DataProvider JavaScript Sandbox Escape Vulnerability

The DataProvider class in Commvault CommCell failed to properly validate a user-supplied string before running it as JavaScript, allowing an authenticated attacker to break out of the JavaScript sandbox. An attacker could then run Java code with the privileges of the NETWORK SERVICE account.

Brandon Perry Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Commvault CommCell. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.

Brandon Perry, Justin Kennedy and Steven Seeley of Source Incite, on the Zero Day Initiative

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 DataProvider class passed user-controlled input to a JavaScript engine without validating or restricting it, so the script could reach Java APIs outside the sandbox.

Impact

An attacker could escape the JavaScript sandbox and execute Java code in the context of NETWORK SERVICE, though authentication is required and the text claims the existing authentication can be bypassed.

What the attacker needed

Access to Commvault CommCell; authentication, possibly bypassable

The fix

It was fixed in version 11.25.

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.

A sandbox is a restricted area where code is meant to run safely without touching the rest of the system. Here, a string supplied by a user was run as JavaScript without proper checks, so the code could step outside that restricted area and run Java code on the server. The attacker still needed to log in first, though the text says the login check could be bypassed.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Brandon Perry

View all

3 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.