CVE-2026-53712
OnGres SCRAM silent channel-binding authentication downgrade via unsupported certificate algorithms
Description
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();
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.ongres.scram » scram-client | < 3.3 | 3.3 |
| com.ongres.scram » scram-common | < 3.3 | 3.3 |
Blast radius
100% of the dependent artifacts (320) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 248 |
| 2 hops | 1,935 |
| 3 hops | 1,291 |
| 4 hops | 526 |
| 5 hops | 168 |
| 6 hops | 8 |
Most used dependents
- org.postgresql » r2dbc-postgresql173 usages
- io.vertx » vertx-pg-client134 usages
- org.folio » domain-models-runtime86 usages
- com.ongres.scram » client59 usages
- io.quarkus » quarkus-reactive-pg-client49 usages
- org.fireflyframework » fireflyframework-starter-core45 usages
- org.fireflyframework » fireflyframework-r2dbc44 usages
- org.fireflyframework » fireflyframework-starter-domain43 usages
- com.ongres.scram » scram-client27 usages
- io.quarkus » quarkus-reactive-pg-client-deployment20 usages
- org.fireflyframework » fireflyframework-eda20 usages
- com.thinkmorestupidless » ankka-testkit13 usages
- io.smallrye.reactive » smallrye-mutiny-vertx-pg-client12 usages
- org.fireflyframework » fireflyframework-starter-application12 usages
- org.folio » mod-pubsub-client11 usages
Computed from the dependency graph of build 20261125.0317 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Package | ongres/scram | github.com |
| Web | ongres/scram advisory GHSA-p9jg-fcr6-3mhf | github.com |
