pgjdbc does not enforce TLS for some ssl, service and DataSource settings

State
Published
Severity
7.4 High
Published
Nov 23, 2026
Updated
Nov 23, 2026
Reserved
Nov 22, 2026

Read the record on cve.org

Description

pgjdbc, the PostgreSQL JDBC Driver, does not enforce TLS for some settings that ask for it. When sslmode is not set, an ssl value such as 1, on, yes or verify-full gives sslmode=prefer, or no TLS before 42.2.5. A service given in the Properties instead of the URL is ignored, so the sslmode of its pg_service.conf entry is lost. BaseDataSource.setUrl() keeps an sslmode, channelBinding or gssEncMode that was set before it. An attacker on the network path can then read and change the traffic. Versions 9.4.1208 through 42.7.14 are affected, and 42.7.15 fixes the problem.

ProductVersions
pgjdbc pgjdbc9.4.1208 to before 42.7.15 Affected

Weaknesses

  • CWE-295 Improper Certificate Validation
  • CWE-319 Cleartext Transmission of Sensitive Information

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.