pgjdbc does not enforce TLS for some ssl, service and DataSource settings
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| pgjdbc | pgjdbc | unaffected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Pgjdbc | Pgjdbc |
|
Vendor Solution
Upgrade to pgjdbc 42.7.15 or later. From 42.7.15 an ssl value other than true, false or empty is refused.
Vendor Workaround
Set sslmode=verify-full in the URL or the Properties, and pass a service name in the URL.
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.203% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Pgjdbc
Pgjdbc pgjdbc |
|
| Vendors & Products |
Pgjdbc
Pgjdbc pgjdbc |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | pgjdbc does not enforce TLS for some ssl, service and DataSource settings | |
| Weaknesses | CWE-295 CWE-319 |
|
| References |
| |
| Metrics |
cvssV3_1
|