
CVE catalog
CVE-2021-3935
pgbouncer: CVE-2021-3935
- Severity
- High · CVSS 8.1
CVSS: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.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | pgbouncer | sid | 1.26.1-1 | fixed |
| Debian | pgbouncer | forky | 1.26.1-1 | fixed |
| Debian | pgbouncer | trixie | 1.24.1-1+deb13u2 | fixed |
| Debian | pgbouncer | bookworm | 1.18.0-1+deb12u1 | fixed |
| Ubuntu | pgbouncer | 16.04 | 1.5.5-1 | vulnerable |
| Ubuntu | pgbouncer | 16.04 | 1.6.1-1 | vulnerable |
| Ubuntu | pgbouncer | 16.04 | 1.7-1 | vulnerable |
| Ubuntu | pgbouncer | 18.04 | 1.7.2-3build1 | vulnerable |
| Ubuntu | pgbouncer | 18.04 | 1.7.2-65-g2b8e6cf-1 | vulnerable |
| Ubuntu | pgbouncer | 18.04 | 1.8.1-1 | vulnerable |
| Ubuntu | pgbouncer | 18.04 | 1.8.1-1build1 | vulnerable |
| Ubuntu | pgbouncer | 20.04 | 1.10.0-1 | vulnerable |
| Ubuntu | pgbouncer | 20.04 | 1.10.0-1build1 | vulnerable |
| Ubuntu | pgbouncer | 20.04 | 1.11.0-1 | vulnerable |
| Ubuntu | pgbouncer | 20.04 | 1.12.0-2 | vulnerable |
| Ubuntu | pgbouncer | 20.04 | 1.12.0-3 | vulnerable |
| Ubuntu | pgbouncer | 22.04 | 1.15.0-1 | vulnerable |
| Ubuntu | pgbouncer | 22.04 | 1.16.1-1ubuntu1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | pgbouncer | source | sid | 1.16.1-1 | not yet assigned | Not reported | Not reported |
| Debian | pgbouncer | source | forky | 1.16.1-1 | not yet assigned | Not reported | Not reported |
| Debian | pgbouncer | source | trixie | 1.16.1-1 | not yet assigned | Not reported | Not reported |
| Debian | pgbouncer | source | bookworm | 1.16.1-1 | not yet assigned | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [pgbouncer]Fixed
Details (2)
1.18.0-1+deb12u1· amd64 · bookwormFixed · Fixed:
1.16.1-1dsa · pgbouncer · debian · bookworm; dsa · pgbouncer · debian · 12
1.18.0-1+deb12u1· arm64 · bookwormFixed · Fixed:
1.16.1-1dsa · pgbouncer · debian · bookworm; dsa · pgbouncer · debian · 12
[Debian 13 (Trixie)]
- [pgbouncer]Fixed
Details (2)
1.24.1-1+deb13u2· amd64 · trixieFixed · Fixed:
1.16.1-1dsa · pgbouncer · debian · 13
1.24.1-1+deb13u2· arm64 · trixieFixed · Fixed:
1.16.1-1dsa · pgbouncer · debian · 13
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-3935]
- [https://osv.dev/vulnerability/DLA-2922-1]
- [https://osv.dev/vulnerability/DLA-4180-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-3935]
- [https://security-tracker.debian.org/tracker/CVE-2021-3935]
- [https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-3935.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]