Case Study How Showpo Rebuilt Its API Layer for a Global Headless Migration

CVE-2025-22874 High · CVSS 7.5 Low Impact

crypto/x509: Certificate Policy Validation Bypass via ExtKeyUsageAny

Limited exploitability

Exploiting this CVE requires an uncommon setup or configuration. Upgrading is still recommended when possible.

Affects deployments using mTLS or custom TLS certificate verification that set ExtKeyUsageAny in their certificate verification options, and only when the peer certificate chain includes policy graph extensions — an uncommon combination.

Component

Go standard library (crypto/x509)

Disclosed

Jun 19, 2025

CVSS Score

7.5

Description

Calling crypto/x509.Verify with a VerifyOptions.KeyUsages slice that contains ExtKeyUsageAny unintentionally disables certificate policy graph validation. Certificate chains that include policy extensions may be accepted when they should be rejected based on their declared policies. The condition requires both an uncommon certificate configuration (policy graphs) and the explicit use of ExtKeyUsageAny in the TLS verification options. Fixed in Go 1.24.4.

Version summary

Community Edition

2.10.1

addresses this CVE

Affected CE versions

>= 2.0, < 2.10.1

Enterprise Edition

2.10.1

addresses this CVE

Affected EE versions

>= 2.0, < 2.10.1

Upgrade to the addressed version or later to remediate this vulnerability.

Stay up to date with KrakenD releases and important updates