CVE-2026-22771 Envoy Extension Policy lua scripts injection causes arbitrary command execution

High 8.8 Published Updated

Attackers can inject Lua scripts into Envoy Extension Policies to execute arbitrary commands and steal proxy credentials, exposing sensitive secrets.

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

What is CVE-2026-22771?

CVE-2026-22771 is a high-severity code injection vulnerability in envoyproxy gateway, published on 12 Jan 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Envoy Gateway is an open source project for managing Envoy Proxy as a standalone or Kubernetes-based application gateway. Prior to 1.5.7 and 1.6.2, EnvoyExtensionPolicy Lua scripts executed by Envoy proxy can be used to leak the proxy's credentials. These credentials can then be used to communicate with the control plane and gain access to all secrets that are used by Envoy proxy, e.g. TLS private keys and credentials used for downstream and upstream communication. This vulnerability is fixed in 1.5.7 and 1.6.2.

Weakness: CWE-94

Which versions are affected by CVE-2026-22771?

6 open source packages ship an affected version, including github.com/envoyproxy/gateway and envoy-gateway. It affects 1 product.

PackageAffectedFixed in
github.com/envoyproxy/gateway GoAll versions1.5.7, 1.6.2
github.com/envoyproxy/gateway GoAll versions1.5.7
github.com/envoyproxy/gateway GoAll versions1.5.7
github.com/envoyproxy/gateway GoFrom 1.6.0-rc.01.6.2
github.com/envoyproxy/gateway GoFrom 1.6.0-rc.01.6.2
envoy-gateway BitnamiAll versions1.5.7, 1.6.2

Products include Envoyproxy Gateway.

How do I fix CVE-2026-22771?

Upgrade github.com/envoyproxy/gateway to a fixed version for your release line: 1.5.7 or 1.6.2.

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

Is CVE-2026-22771 being exploited?

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

Sources

Also known as BIT-envoy-gateway-2026-22771, CLEANSTART-2026-MY21105, CLEANSTART-2026-TM34060, GHSA-xrwg-mqj6-6m22, GO-2026-4312, MINI-57xr-9vc7-9pr9 and 1 more.

Is CVE-2026-22771 in your software?

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

Check your SBOMs for free