CVE-2023-30845
ESPv2 vulnerability analysis and mitigation

Overview

ESPv2 (versions 2.20.0 through 2.42.0) contains an authentication bypass vulnerability identified as CVE-2023-30845. The vulnerability allows API clients to bypass JWT authentication by crafting malicious X-HTTP-Method-Override header values. The issue was discovered and disclosed to the ESPv2 team on March 14, 2023, and was fixed on March 28, 2023 (GitHub Advisory).

Technical details

The vulnerability occurs when two specific conditions are met: 1) The requested HTTP method is not in the API service definition (OpenAPI spec or gRPC google.api.http proto annotations), and 2) The specified X-HTTP-Method-Override is a valid HTTP method in the API service definition. Under these conditions, ESPv2 forwards the request to the backend without verifying the JWT. The vulnerability has been assigned a CVSS v3.1 base score of 9.8 CRITICAL by NVD and 8.2 HIGH by GitHub, with a vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N (NVD).

Impact

When exploited, this vulnerability allows attackers to bypass JWT authentication requirements by crafting requests with a malicious X-HTTP-Method-Override value. This enables unauthorized access to protected endpoints that normally require valid JWT tokens. However, it's important to note that API key restrictions remain unaffected and continue to work as intended (GitHub Advisory).

Mitigation and workarounds

The recommended mitigation is to upgrade deployments to release v2.43.0 or higher. This patched version ensures that JWT authentication occurs even when the caller specifies x-http-method-override. The functionality of x-http-method-override remains supported in v2.43.0+, allowing API clients to continue using this header with ESPv2 securely (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related ESPv2 vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2023-30845CRITICAL9.8
  • ESPv2ESPv2
  • cpe:2.3:a:google:espv2
NoYesApr 26, 2023

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management