CVE catalog

CVE-2021-3935

pgbouncer: CVE-2021-3935

[CVE catalog]

Severity
High · CVSS 8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
1.12% · Oct 25, 2026

When PgBouncer is configured to use "cert" authentication, a man-in-the-middle attacker can inject arbitrary SQL queries when a connection is first established, despite the use of TLS certificate verification and encryption. This flaw affects PgBouncer versions prior to 1.16.1.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpgbouncersid1.26.1-1fixed
Debianpgbouncerforky1.26.1-1fixed
Debianpgbouncertrixie1.24.1-1+deb13u2fixed
Debianpgbouncerbookworm1.18.0-1+deb12u1fixed
Ubuntupgbouncer16.041.5.5-1vulnerable
Ubuntupgbouncer16.041.6.1-1vulnerable
Ubuntupgbouncer16.041.7-1vulnerable
Ubuntupgbouncer18.041.7.2-3build1vulnerable
Ubuntupgbouncer18.041.7.2-65-g2b8e6cf-1vulnerable
Ubuntupgbouncer18.041.8.1-1vulnerable
Ubuntupgbouncer18.041.8.1-1build1vulnerable
Ubuntupgbouncer20.041.10.0-1vulnerable
Ubuntupgbouncer20.041.10.0-1build1vulnerable
Ubuntupgbouncer20.041.11.0-1vulnerable
Ubuntupgbouncer20.041.12.0-2vulnerable
Ubuntupgbouncer20.041.12.0-3vulnerable
Ubuntupgbouncer22.041.15.0-1vulnerable
Ubuntupgbouncer22.041.16.1-1ubuntu1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpgbouncersourcesid1.16.1-1not yet assignedNot reportedNot reported
Debianpgbouncersourceforky1.16.1-1not yet assignedNot reportedNot reported
Debianpgbouncersourcetrixie1.16.1-1not yet assignedNot reportedNot reported
Debianpgbouncersourcebookworm1.16.1-1not yet assignedNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [pgbouncer]Fixed
    Details (2)
    • 1.18.0-1+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 1.16.1-1

      dsa · pgbouncer · debian · bookworm; dsa · pgbouncer · debian · 12

    • 1.18.0-1+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 1.16.1-1

      dsa · pgbouncer · debian · bookworm; dsa · pgbouncer · debian · 12

[Debian 13 (Trixie)]

  • [pgbouncer]Fixed
    Details (2)
    • 1.24.1-1+deb13u2 · amd64 · trixie

      Fixed · Fixed: 1.16.1-1

      dsa · pgbouncer · debian · 13

    • 1.24.1-1+deb13u2 · arm64 · trixie

      Fixed · Fixed: 1.16.1-1

      dsa · pgbouncer · debian · 13

Observed:

References