# CVE-2023-30845: ESPv2 vulnerable to JWT authentication bypass via \`X-HTTP-Method-Override\` header

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.50% (percentile 36, 2026-11-26)
- **CWE:** CWE-287
- **Published:** 2023-04-26T20:46:25.263Z
- **Modified:** 2026-06-17T05:55:45.520Z

## Who should check

- Anyone running GoogleCloudPlatform esp-v2 \>= 2.20.0, \< 2.43.0

## Description

ESPv2 is a service proxy that provides API management capabilities using Google Service Infrastructure. ESPv2 2.20.0 through 2.42.0 contains an authentication bypass vulnerability. API clients can craft a malicious \`X-HTTP-Method-Override\` header value to bypass JWT authentication in specific cases.

ESPv2 allows malicious requests to bypass authentication if both the conditions are true: The requested HTTP method is \*\*not\*\* in the API service definition (OpenAPI spec or gRPC \`google.api.http\` proto annotations, and the specified \`X-HTTP-Method-Override\` is a valid HTTP method in the API service definition. ESPv2 will forward the request to your backend without checking the JWT. Attackers can craft requests with a malicious \`X-HTTP-Method-Override\` value that allows them to bypass specifying JWTs. Restricting API access with API keys works as intended and is not affected by this vulnerability.

Upgrade deployments to release v2.43.0 or higher to receive a patch. This release ensures that JWT authentication occurs, even when the caller specifies \`x-http-method-override\`. \`x-http-method-override\` is still supported by v2.43.0+. API clients can continue sending this header to ESPv2.

## Affected and fixed versions

- GoogleCloudPlatform esp-v2: \>= 2.20.0, \< 2.43.0 (cvelist)

## Mitigation

- Upgrade esp-v2 to 2.43.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-30845. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-30845.md
Affected: GoogleCloudPlatform esp-v2 >= 2.20.0, < 2.43.0
Fixed in: GoogleCloudPlatform esp-v2 2.43.0

Steps:
1. Search this machine and project for GoogleCloudPlatform esp-v2: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-30845 being exploited?

There is no confirmed exploitation: CVE-2023-30845 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.50% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-30845?

High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2023-30845?

GoogleCloudPlatform esp-v2 \>= 2.20.0, \< 2.43.0.

### Is there a fix for CVE-2023-30845?

Yes. Fixed in GoogleCloudPlatform esp-v2 2.43.0. Upgrade esp-v2 to 2.43.0 or later.

### How do I check if I'm affected by CVE-2023-30845?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/GoogleCloudPlatform/esp-v2/security/advisories/GHSA-6qmp-9p95-fc5f>
- patch: <https://github.com/GoogleCloudPlatform/esp-v2/commit/0bcdfc024ce96b34db4e1b4f2211b509d9be93cd>
- patch: <https://github.com/GoogleCloudPlatform/esp-v2/commit/e95670146f5e96bb5565b0a9c1e153886b3e04ce>
- patch: <https://github.com/GoogleCloudPlatform/esp-v2/commit/e98061ee4527a564506ba4e814c0ecf324dc2c6f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-30845>

HTML: <https://flawdb.com/CVE-2023-30845> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-30845>
