8.2high
SCRAM: Silent channel-binding authentication downgrade via unsupported certificate algorithms
- Severity
- 8.2high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.20% (higher than 9% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-p9jg-fcr6-3mhf
Description
SCRAM (Salted Challenge Response Authentication Mechanism) is part of the family of Simple Authentication and Security Layer (SASL, RFC 4422) authentication mechanisms. Prior to 3.3, a flaw in com.ongres.scram:scram-client and com.ongres.scram:scram-common allows an attacker capable of a TLS man-in-the-middle attack to silently downgrade a connection from SCRAM-SHA-256-PLUS with channel binding to standard SCRAM-SHA-256 without channel binding when TlsServerEndpoint processes an X.509 certificate using a modern signature algorithm such as Ed25519; getChannelBindingData() can return an empty byte array after NoSuchAlgorithmException, and the ScramClient builder treats that as absent channel-binding data. This issue is fixed in version 3.3.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ongres scram | < 3.3 | CVE List |
| com.ongres.scram:scram-client (Maven) | before 3.3 | GitHub Advisory Database |
| com.ongres.scram:scram-common (Maven) | before 3.3 | GitHub Advisory Database |
All scores
| GitHub_M | 8.2high CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:L/SA:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:L/SA:N |
Classification
What each source says
CVE List
SCRAM (Salted Challenge Response Authentication Mechanism) is part of the family of Simple Authentication and Security Layer (SASL, RFC 4422) authentication mechanisms. Prior to 3.3, a flaw in com.ongres.scram:scram-client and com.ongres.scram:scram-common allows an attacker capable of a TLS man-in-the-middle attack to silently downgrade a connection from SCRAM-SHA-256-PLUS with channel binding to standard SCRAM-SHA-256 without channel binding when TlsServerEndpoint processes an X.509 certificate using a modern signature algorithm such as Ed25519; getChannelBindingData() can return an empty byte array after NoSuchAlgorithmException, and the ScramClient builder treats that as absent channel-binding data. This issue is fixed in version 3.3.
GitHub Advisory Database
Summary
A flaw in com.ongres.scram:scram-client allows an attacker capable of performing a TLS man-in-the-middle (MITM) attack to silently downgrade a connection from SCRAM-SHA-256-PLUS (with channel binding) to standard SCRAM-SHA-256 (without channel binding), bypassing strict client-side enforcement policies.
Component Breakdown
This occurs due to a two-part failure in TlsServerEndpoint when a server presents an X.509 certificate using a modern signature algorithm that lacks traditional WITH naming structures (such as Ed25519 or post-quantum algorithms):
- The internal hash derivation method fails to parse the algorithm name, swallows the resulting
NoSuchAlgorithmException, and silently returns an empty byte array via the deprecatedgetChannelBindingData()` API. - The client builder mistakenly interprets this empty byte array as an environmental absence of channel binding data rather than a cryptographic failure, falling back to non-channel-bound authentication.
Impact & Scope
This issue only impacts deployments where the downstream application layer explicitly enforces strict channel binding enforcement (e.g., channelBinding=require in pgJDBC).
Drivers operating under a "prefer" or "allow" policy (used by default) are structurally insulated from an unhandled exception since a fallback to standard SCRAM is within their expected configuration.
Remediation
Update your project configuration to pull in version 3.3 or later of the SCRAM library, which introduces strict exception propagation and explicit policy controls.
If you are interacting with the ScramClient builder API directly (e.g., writing a custom driver or database extension):
- Migrate Deprecated APIs: Stop using
TlsServerEndpoint.getChannelBindingData(). Transition immediately toTlsServerEndpoint.getChannelBindingHash(), which correctly propagatesNoSuchAlgorithmExceptionup the stack. - Adopt Explicit Policies: Leverage the newly introduced
ChannelBindingPolicyAPI during client construction. Do not rely on implicit parameter presence to dictate your security boundaries.
ScramClient client = ScramClient.builder()
.advertisedMechanisms(serverMechanisms)
.username(user)
.password(pass)
// Explicitly enforce strict boundaries if needed.
.channelBindingPolicy(ChannelBindingPolicy.REQUIRE)
.channelBinding(TlsServerEndpoint.TLS_SERVER_END_POINT, certHash)
.build();
NVD (es)
SCRAM (Mecanismo de Autenticación de Respuesta a Desafío Salado) es parte de la familia de mecanismos de autenticación de la Capa de Autenticación y Seguridad Simple (SASL, RFC 4422). Antes de la versión 3.3, una falla en com.ongres.scram:scram-client y com.ongres.scram:scram-common permite a un atacante capaz de un ataque man-in-the-middle de TLS degradar silenciosamente una conexión de SCRAM-SHA-256-PLUS con enlace de canal a SCRAM-SHA-256 estándar sin enlace de canal cuando TlsServerEndpoint procesa un certificado X.509 utilizando un algoritmo de firma moderno como Ed25519; getChannelBindingData() puede devolver un array de bytes vacío después de NoSuchAlgorithmException, y el constructor ScramClient trata eso como datos de enlace de canal ausentes. Este problema está solucionado en la versión 3.3.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-53712 changed 2026-07-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-p9jg-fcr6-3mhf changed 2026-07-01 | CC-BY-4.0 |
| NVD | CVE-2026-53712 changed 2026-10-24 | Public domain |