CVE-2026-40965 Information disclosure in CF Deployment
Attackers can extract EC private keys from the public token_keys endpoint, enabling JWT forgery and authentication bypass in Cloud Foundry deployments using EC keys.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-40965?
CVE-2026-40965 is a critical vulnerability in Cloud Foundry Foundation CF Deployment, published on 1 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Cloud Foundry UAA versions v76.12.0 through v78.12.0 are vulnerable to a private key exposure. The server contains a vulnerability where EC (Elliptic Curve) private keys are inadvertently exposed through the public /token_keys endpoint. This endpoint is designed to provide public key material for JWT token verification but incorrectly exposes private key components for EC keys. The vulnerability affects deployments using EC keys for JWT token signing. The vulnerability does not affect RSA key configurations, only deployments using EC keys for JWT signing.
Affected versions: - uaa_release: v76.12.0 through v78.12.0 (inclusive); fixed in v78.13.0 or later - CF Deployment: v30.0.0 through v56.0.0 (inclusive); fixed in v56.1.0 or later (bundles uaa_release v78.13.0)
Weakness: CWE-200
Which versions are affected by CVE-2026-40965?
How do I fix CVE-2026-40965?
No fix has been published for CVE-2026-40965 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-40965 being exploited?
There is no known exploitation of CVE-2026-40965 in the wild and no public exploit code.
Sources
Also known as GHSA-qc5f-2h9q-7m2g.