Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.postgresql/postgresql
  4. ›
  5. CVE-2026-54291

CVE-2026-54291: PostgreSQL JDBC Driver: Silent channel-binding authentication downgrade via unsupported certificate algorithms

July 21, 2026

channelBinding=require connections can be silently downgraded from SCRAM-SHA-256-PLUS (with channel binding) to plain SCRAM-SHA-256 (without it), losing the man-in-the-middle protection the setting is meant to guarantee. An attacker who can intercept the TLS connection triggers the downgrade with a certificate whose signature algorithm has no tls-server-end-point channel-binding hash. Examples are Ed25519, Ed448, and post-quantum algorithms.

Two issues combine in releases 42.7.4 through 42.7.11:

  1. The bundled com.ongres.scram:scram-client (3.1 or 3.2) returns an empty byte array instead of failing when it cannot derive the binding hash for such a certificate. This is the library issue tracked as GHSA-p9jg-fcr6-3mhf.
  2. pgJDBC does not enforce channelBinding=require where it matters. ScramAuthenticator checks only that the server advertised a -PLUS mechanism; it neither rejects the empty binding nor checks that the negotiated mechanism uses channel binding. The connection therefore downgrades silently, and would do so even against a fixed scram-client, because the missing enforcement is in pgJDBC’s own code.

Only connections that set channelBinding=require are affected. Under the default prefer policy, and under allow or disable, falling back to plain SCRAM is the documented behaviour. Releases before 42.7.4 are unaffected, because they do not support channel binding.

References

  • github.com/advisories/GHSA-j92g-9f8w-j867
  • github.com/ongres/scram/releases/tag/3.3
  • github.com/pgjdbc/pgjdbc/commit/77df98e4e66c12936ded3478a0954f6f580bad99
  • github.com/pgjdbc/pgjdbc/security/advisories/GHSA-j92g-9f8w-j867
  • nvd.nist.gov/vuln/detail/CVE-2026-54291

Code Behaviors & Features

Detect and mitigate CVE-2026-54291 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 42.7.4 before 42.7.12

Fixed versions

  • 42.7.12

Solution

Upgrade to version 42.7.12 or above.

Impact 6.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-636: Not Failing Securely ('Failing Open')
  • CWE-757: Selection of Less-Secure Algorithm During Negotiation ('Algorithm Downgrade')

Source file

maven/org.postgresql/postgresql/CVE-2026-54291.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 22 Jul 2026 00:18:38 +0000.