SQL Injection in Pgbouncer
CVE-2021-3935
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.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.011, 66.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Pgbouncer
- Debian Linux — versions 9.0
- Fedoraproject Fedora — versions 35
- Red Hat Enterprise Linux — versions 7.0
- Pgbouncer — versions PgBouncer 1.16.1
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (w4zu/Debian_security). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- bugzilla.redhat.com/show_bug.cgi (Third Party Advisory, Issue Tracking)
- www.pgbouncer.org/changelog.html (Release Notes, Vendor Advisory)
- FEDORA-2021-761cda0b77 (vendor-advisory)
- [debian-lts-announce] 20220214 [SECURITY] [DLA 2922-1] pgbouncer security update (mailing-list, Mailing List, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2025/05/msg00032.html