CVE-2026-53713
nicheLua Path-Validation Bypass in Envoy Gateway Allows Controller Pod File Read
Envoy Gateway contains an input validation flaw (CWE-20) in the Lua validator used for EnvoyExtensionPolicy resources: the to_absolute_normalized_path function in internal/gatewayapi/luavalidator/security.lua fails to collapse redundant path separators (e.g., double slashes) before is_critical_path checks the code under default Strict validation. Because Linux resolves '//etc/...' identically to '/etc/...', an attacker who can submit an EnvoyExtensionPolicy with embedded Lua can open files that the validator was designed to block, reading arbitrary files from the gateway controller pod. Exposed data can include Kubernetes service-account tokens, TLS certificates, and process environment variables, which can then be used to reach the Kubernetes API Server or the Gateway xDS server. Any deployment running Envoy Gateway versions prior to 1.7.4 or 1.8.1 where users beyond the trusted cluster administrators can create EnvoyExtensionPolicies (e.g., multi-tenant clusters) is affected. There is no known public PoC, the issue is not in the CISA KEV catalog, and no exploitation has been reported; fixes are available in versions 1.7.4 and 1.8.1.
What to do: Upgrade Envoy Gateway to 1.7.4 or 1.8.1 as soon as possible. Until then, restrict RBAC so only trusted administrators can create or modify EnvoyExtensionPolicy resources, and audit existing policies for Lua that reads files with redundant path separators. If less-trusted users have applied Lua extensions on an unpatched cluster, rotate the gateway controller's service-account credentials and TLS certificates and review Kubernetes API Server audit logs for anomalous use.
| Envoy Gateway (envoyproxy) Envoy Gateway | All versions prior to 1.7.4 (1.7 release line) and prior to 1.8.1 (1.8 release line) |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
Envoy Gateway is an open source project for managing Envoy Proxy as a standalone or Kubernetes-based application gateway. Prior to 1.7.4 and 1.8.1, to_absolute_normalized_path in internal/gatewayapi/luavalidator/security.lua does not collapse redundant separators before is_critical_path evaluates Lua submitted through EnvoyExtensionPolicy during default Strict validation. Linux resolves a double-slash absolute path as the corresponding single-slash path, but the validator does not match the redundant-separator form, allowing submitted Lua to read arbitrary files from the gateway controller pod. Exposed files can include Kubernetes service-account tokens, TLS certificates, and process environment data, and the disclosed credentials can provide access to sensitive Kubernetes API Server or Gateway xDS server information. This issue is fixed in versions 1.7.4 and 1.8.1.
- Weakness
- CWE-20
- Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L
In the news0 stories
No ingested article mentions this CVE yet.