← Lab /Security & privacy

Ivanti Sentry allows unauthenticated remote code execution via pre-auth command injection

An unauthenticated attacker can achieve root-level remote code execution on vulnerable Ivanti Sentry versions via a pre-authenticated OS command injection vulnerability.

Security & privacy watchTowr Labs 10 Jun 2026 Disclosure Prototype evidence

Published as “More Evidence That Words Don't Mean What We Thought They Meant (Ivanti Sentry Pre-Auth OS Command Injection CVE-2026-10520)”

Why it matters

Enterprises running vulnerable Ivanti Sentry versions are exposed to remote code execution before authentication, requiring immediate patching or mitigation.

Summary

The researchers reverse-engineered Ivanti Sentry 10.5.1 and identified a single changed JAR that introduced a /mics/api/v2/sentry/mics-config/handleMessage endpoint. By sending a crafted message they could control an EXECUTE command that ultimately called executeNativeCommand via reflection, allowing arbitrary OS commands. They demonstrated this by executing "uname -a" and receiving the system output, confirming a pre-auth OS command injection with CVSS 10.0. The patch replaces the user-supplied message with a hard-coded safe command and adds Apache regex rules to block unauthenticated access.

What they found 1

  1. Unauthenticated remote code execution is possible via the handleMessage endpoint.

    “And just like that, we've reproduced CVE-2026-10520: a pre-authenticated OS command injection in Ivanti Sentry with a well-deserved CVSS score of 10.”

Caveats 2

  • the patch does not remove the underlying functionality. Instead, it removes random-internet-user control over the input being passed into the command string.
  • Specifically, the bundled Apache configuration now contains regex-based rules that block access to the vulnerable endpoint entirely, causing unauthenticated requests to be redirected to the login page via a 302 response.

What’s new here 4

  • Identified a pre-auth OS command injection in Ivanti Sentry that yields root RCE.
  • Showed that the vendor patch only hard-codes the command and adds a web-server block, leaving the underlying execution path intact.
  • Provided a reproducible PoC using a crafted HTTP POST to the handleMessage endpoint.
  • Released a detection artefact generator for organizations to test their deployments.

In the news