{"id":"CVE-2026-53712","aliases":["CVE-2026-53712","GHSA-p9jg-fcr6-3mhf"],"related":[],"kind":"vulnerability","state":"published","title":"SCRAM: Silent channel-binding authentication downgrade via unsupported certificate algorithms","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nA 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.\n\n## Component Breakdown\n\nThis 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):\n\n1. The internal hash derivation method fails to parse the algorithm name, swallows the resulting `NoSuchAlgorithmException, and silently returns an empty byte array via the deprecated `getChannelBindingData()` API.\n2. 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.\n\n## Impact & Scope\n\nThis issue only impacts deployments where the downstream application layer explicitly enforces strict channel binding enforcement (e.g., channelBinding=require in pgJDBC).\n\nDrivers 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.\n\n## Remediation\n\nUpdate your project configuration to pull in version 3.3 or later of the SCRAM library, which introduces strict exception propagation and explicit policy controls.\n\nIf you are interacting with the `ScramClient` builder API directly (e.g., writing a custom driver or database extension):\n\n- Migrate Deprecated APIs: Stop using `TlsServerEndpoint.getChannelBindingData()`. Transition immediately to `TlsServerEndpoint.getChannelBindingHash()`, which correctly propagates `NoSuchAlgorithmException` up the stack.\n- Adopt Explicit Policies: Leverage the newly introduced `ChannelBindingPolicy` API during client construction. Do not rely on implicit parameter presence to dictate your security boundaries.\n\n```java\nScramClient client = ScramClient.builder()\n    .advertisedMechanisms(serverMechanisms)\n    .username(user)\n    .password(pass)\n    // Explicitly enforce strict boundaries if needed.\n    .channelBindingPolicy(ChannelBindingPolicy.REQUIRE) \n    .channelBinding(TlsServerEndpoint.TLS_SERVER_END_POINT, certHash)\n    .build();\n```","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-07-01T21:51:17.000Z","modified":"2026-10-24T20:10:00.137Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"}],"cwes":["CWE-636","CWE-757"],"affected":[{"ranges":[{"version":"< 3.3","status":"affected"}],"vendor":"ongres","product":"scram","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.3"}],"ecosystem":"Maven","package":"com.ongres.scram:scram-client","purl":"pkg:maven/com.ongres.scram/scram-client","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.3"}],"ecosystem":"Maven","package":"com.ongres.scram:scram-common","purl":"pkg:maven/com.ongres.scram/scram-common","source":"ghsa"}],"references":[{"url":"https://github.com/ongres/scram/security/advisories/GHSA-p9jg-fcr6-3mhf","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ongres/scram/releases/tag/3.3","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ongres/scram","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-17T19:08:59.374Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-53712","url":"https://www.cve.org/CVERecord?id=CVE-2026-53712","licence":"CVE Terms of Use","modified":"2026-07-17T19:09:07.924Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p9jg-fcr6-3mhf","url":"https://github.com/advisories/GHSA-p9jg-fcr6-3mhf","licence":"CC-BY-4.0","modified":"2026-07-01T22:11:32.861Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-53712","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53712","licence":"Public domain","modified":"2026-10-24T20:10:00.137Z"}],"updatedAt":"2026-11-25T22:59:28.513Z","epss":{"score":0.00196,"percentile":0.09785,"date":"2026-12-01T12:00:22.000Z"}}