GHSA-p9jg-fcr6-3mhf: OnGres SCRAM silent channel-binding authentication downgrade via unsupported certificate algorithms
A vulnerability in com.ongres.scram:scram-client versions prior to 3.3 allows a TLS man-in-the-middle attacker to silently downgrade SCRAM authentication from SCRAM-SHA-256-PLUS (with channel binding) to SCRAM-SHA-256 (without channel binding). This occurs when the server presents an X.509 certificate using modern signature algorithms that the client fails to parse properly, causing the client to fall back to non-channel-bound authentication without raising an error. The issue affects deployments that enforce strict channel binding policies, potentially bypassing these security controls.
AI Analysis
Technical Summary
The com.ongres.scram:scram-client library versions before 3.3 contain a flaw in the TlsServerEndpoint component where modern certificate signature algorithms (e.g., Ed25519 or post-quantum algorithms) cause the internal hash derivation method to fail parsing the algorithm name. This failure is silently swallowed, returning an empty byte array from the deprecated getChannelBindingData() API. The client then misinterprets this as absence of channel binding data and downgrades authentication from SCRAM-SHA-256-PLUS to SCRAM-SHA-256, bypassing strict client-side channel binding enforcement. This vulnerability only impacts configurations that require strict channel binding enforcement (e.g., channelBinding=require in pgJDBC). Versions 3.3 and later introduce strict exception propagation and explicit policy controls to prevent this silent downgrade.
Potential Impact
An attacker capable of performing a TLS man-in-the-middle attack can silently downgrade the authentication mechanism from SCRAM-SHA-256-PLUS (with channel binding) to SCRAM-SHA-256 (without channel binding) in affected versions. This bypasses strict client-side channel binding enforcement policies, weakening the security guarantees of the authentication process. Deployments using default or permissive channel binding policies are not affected by this downgrade. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade to version 3.3 or later of the com.ongres.scram:scram-client library, which fixes this issue by propagating exceptions properly and providing explicit channel binding policy controls. If using the ScramClient builder API directly, stop using the deprecated TlsServerEndpoint.getChannelBindingData() method and migrate to TlsServerEndpoint.getChannelBindingHash(), which correctly propagates exceptions. Additionally, explicitly set the ChannelBindingPolicy during client construction to enforce strict channel binding requirements rather than relying on implicit behavior.
GHSA-p9jg-fcr6-3mhf: OnGres SCRAM silent channel-binding authentication downgrade via unsupported certificate algorithms
Description
A vulnerability in com.ongres.scram:scram-client versions prior to 3.3 allows a TLS man-in-the-middle attacker to silently downgrade SCRAM authentication from SCRAM-SHA-256-PLUS (with channel binding) to SCRAM-SHA-256 (without channel binding). This occurs when the server presents an X.509 certificate using modern signature algorithms that the client fails to parse properly, causing the client to fall back to non-channel-bound authentication without raising an error. The issue affects deployments that enforce strict channel binding policies, potentially bypassing these security controls.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The com.ongres.scram:scram-client library versions before 3.3 contain a flaw in the TlsServerEndpoint component where modern certificate signature algorithms (e.g., Ed25519 or post-quantum algorithms) cause the internal hash derivation method to fail parsing the algorithm name. This failure is silently swallowed, returning an empty byte array from the deprecated getChannelBindingData() API. The client then misinterprets this as absence of channel binding data and downgrades authentication from SCRAM-SHA-256-PLUS to SCRAM-SHA-256, bypassing strict client-side channel binding enforcement. This vulnerability only impacts configurations that require strict channel binding enforcement (e.g., channelBinding=require in pgJDBC). Versions 3.3 and later introduce strict exception propagation and explicit policy controls to prevent this silent downgrade.
Potential Impact
An attacker capable of performing a TLS man-in-the-middle attack can silently downgrade the authentication mechanism from SCRAM-SHA-256-PLUS (with channel binding) to SCRAM-SHA-256 (without channel binding) in affected versions. This bypasses strict client-side channel binding enforcement policies, weakening the security guarantees of the authentication process. Deployments using default or permissive channel binding policies are not affected by this downgrade. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade to version 3.3 or later of the com.ongres.scram:scram-client library, which fixes this issue by propagating exceptions properly and providing explicit channel binding policy controls. If using the ScramClient builder API directly, stop using the deprecated TlsServerEndpoint.getChannelBindingData() method and migrate to TlsServerEndpoint.getChannelBindingHash(), which correctly propagates exceptions. Additionally, explicitly set the ChannelBindingPolicy during client construction to enforce strict channel binding requirements rather than relying on implicit behavior.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-p9jg-fcr6-3mhf
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-53712"]
- Ecosystems
- ["Maven"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a45998227e9c797194186f1
Added to database: 07/01/2026, 22:49:38 UTC
Last enriched: 07/01/2026, 22:50:19 UTC
Last updated: 07/02/2026, 02:22:51 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.