CVE-2026-40411 Azure Virtual Network Gateway Remote Code Execution Vulnerability

Critical 9.9 Published Updated

An authorized attacker can execute arbitrary code on Azure Virtual Network Gateway due to improper input validation.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-40411?

CVE-2026-40411 is a critical code injection vulnerability in Microsoft Azure Virtual Network Gateway, published on 22 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Improper input validation in Azure Virtual Network Gateway allows an authorized attacker to execute code over a network.

Weakness: CWE-20

Which versions are affected by CVE-2026-40411?

It affects 1 product.

Products include Microsoft Azure Virtual Network Gateway.

How do I fix CVE-2026-40411?

No fix has been published for CVE-2026-40411 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-40411 being exploited?

There is no known exploitation of CVE-2026-40411 in the wild and no public exploit code.

Sources

Also known as GHSA-g63w-3vwq-rqw8.

Is CVE-2026-40411 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free