CVEfocus › CVE database › CVE-2026-107314

CVE-2026-107314pgjdbc does not enforce requireAuth when the value excludes every authentication method

CVSS 5.9 MediumEPSS 0.4% (higher than 23% of CVEs)Published 2026-10-07Updated 2026-10-08Assigner: PostgreSQL

pgjdbc, the PostgreSQL JDBC Driver, versions 42.7.11 through 42.7.13 enforce no restriction when the requireAuth connection property excludes all six authentication methods the driver knows, for example requireAuth=!password,!md5,!gss,!sspi,!scram-sha-256,!none. The driver then accepts any method the server asks for, including cleartext password authentication. A value without a method in it, such as requireAuth=, (a single comma), is affected the same way. An attacker positioned between the application and its server can ask for cleartext password authentication and receive the database password. A positive list such as requireAuth=scram-sha-256, and a partial exclusion such as requireAuth=!password,!md5, are enforced correctly. The property has no default value, so a deployment that does not set it is not affected. 42.7.14 fixes the problem: such a connection is refused with SQLState 08004, and a value without a method in it is rejected as invalid.

CWE-636

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
1Fix pending
23Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libpgjavaFix pendingUBUNTU-CVE-2026-107314
Ubuntu 26.04libpgjavaNot affected
vulnerable_code_not_present
Ubuntu 24.04libpgjavaNot affected
vulnerable_code_not_present
Ubuntu 22.04libpgjavaNot affected
vulnerable_code_not_present
Debian 14libpgjavaFixed42.7.14-1DEBIAN-CVE-2026-107314
Red Hat Enterprise Linux 10postgresql-jdbcNot affected
Red Hat Enterprise Linux 9postgresql-jdbcNot affected
Red Hat Enterprise Linux 8JudyNot affected
Red Hat Enterprise Linux 8galeraNot affected
Red Hat Enterprise Linux 8mariadbNot affected
Red Hat Enterprise Linux 8mariadb-backupNot affected
Red Hat Enterprise Linux 8mariadb-commonNot affected
Red Hat Enterprise Linux 8mariadb-develNot affected
Red Hat Enterprise Linux 8mariadb-embeddedNot affected
Red Hat Enterprise Linux 8mariadb-embedded-develNot affected
Red Hat Enterprise Linux 8mariadb-errmsgNot affected
Red Hat Enterprise Linux 8mariadb-gssapi-serverNot affected
Red Hat Enterprise Linux 8mariadb-oqgraph-engineNot affected
Red Hat Enterprise Linux 8mariadb-pamNot affected
Red Hat Enterprise Linux 8mariadb-serverNot affected
Red Hat Enterprise Linux 8mariadb-server-galeraNot affected
Red Hat Enterprise Linux 8mariadb-server-utilsNot affected
Red Hat Enterprise Linux 8mariadb-testNot affected
Red Hat Enterprise Linux 8maven-assembly-pluginNot affected
Red Hat Enterprise Linux 8maven-assembly-plugin-javadocNot affected

What the vendor says

As published in the CVE record by PostgreSQL, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Upgrade to pgjdbc 42.7.14 or later, and replace a requireAuth value that excludes every method or names none with a positive list of the methods the server uses.

Workaround: Replace the requireAuth value with a positive list of the methods the server uses, for example requireAuth=scram-sha-256; a positive list is enforced correctly on every affected version. A deployment that uses SCRAM over TLS can also set channelBinding=require, which refuses every authentication request other than SCRAM. Verifying the server certificate with sslmode=verify-full against a trusted CA prevents an attacker from presenting a substitute server.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.