p PatchFirst

CVE-2026-134845

CVE-2026-134845 · pgjdbc does not enforce TLS for some ssl, service and DataSource settings

CVSS 7.4 · High · EPSS 0.2% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="libpgjava"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Stack: system

Affected products and versions

  • pgjdbc

    Versions
    • ≥ 9.4.1208, < 42.7.15: Affected (maven)

    Update to 42.7.15

  • libpgjava Debian 12

    Versions
    • 42.5.4-1
    • 42.5.5-0+deb12u1
    • 42.6.0-1
    • 42.6.0-2
    • 42.7.0-1
    • 42.7.1-1
    All versions (23)
    • 42.7.10-1
    • 42.7.11-1
    • 42.7.12-1
    • 42.7.13-1
    • 42.7.14-1
    • 42.7.15-1
    • 42.7.2-1
    • 42.7.3-1
    • 42.7.3-2
    • 42.7.5-1
    • 42.7.5-2
    • 42.7.6-1
    • 42.7.7-1
    • 42.7.7-2
    • 42.7.8-1
    • 42.7.8-2
    • 42.7.9-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libpgjava Debian 13

    Versions
    • 42.7.10-1
    • 42.7.11-1
    • 42.7.12-1
    • 42.7.13-1
    • 42.7.14-1
    • 42.7.15-1
    All versions (11)
    • 42.7.7-1
    • 42.7.7-2
    • 42.7.8-1
    • 42.7.8-2
    • 42.7.9-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libpgjava Debian 14

    Versions
    • 42.7.10-1
    • 42.7.11-1
    • 42.7.12-1
    • 42.7.13-1
    • 42.7.14-1
    • 42.7.7-1
    All versions (10)
    • 42.7.7-2
    • 42.7.8-1
    • 42.7.8-2
    • 42.7.9-1
    Affected ranges
    • ECOSYSTEM: < 42.7.15-1

    Update to 42.7.15-1

  • libpgjava Ubuntu 14.04 LTS

    Versions
    • 9.2-1002-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libpgjava Ubuntu 16.04 LTS

    Versions
    • 9.2-1002-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libpgjava Ubuntu Pro 18.04 LTS

    Versions
    • 9.4.1212-1
    • 9.4.1212-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libpgjava Ubuntu Pro 20.04 LTS

    Versions
    • 42.2.6-1
    • 42.2.8-1
    • 42.2.9-1
    • 42.2.10-1
    • 42.2.10-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libpgjava Ubuntu 22.04 LTS

    Versions
    • 42.2.23-1
    • 42.2.24-1
    • 42.3.1-1
    • 42.3.2-1
    • 42.3.3-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libpgjava Ubuntu 24.04 LTS

    Versions
    • 42.5.4-1
    • 42.6.0-2
    • 42.7.0-1
    • 42.7.1-1
    • 42.7.2-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libpgjava Ubuntu 26.10

    Versions
    • 42.7.10-1
    • 42.7.11-1
    • 42.7.12-1
    • 42.7.13-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libpgjava Ubuntu 26.04 LTS

    Versions
    • 42.7.7-1
    • 42.7.8-1
    • 42.7.8-2
    • 42.7.9-1
    • 42.7.10-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →