CVE-2021-3935
Pgbouncer vulnerability
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.
Affected products
Pgbouncer, Enterprise Linux, Fedora, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Pgbouncer runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.pgbouncer.org/changelog.html#pgbouncer-116x · Vendor Advisory
- bugzilla.redhat.com/show_bug.cgi?id=2021251 · Third Party Advisory
- lists.debian.org/debian-lts-announce/2022/02/msg00016.html · Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/T
- lists.debian.org/debian-lts-announce/2025/05/msg00032.html
- nvd.nist.gov/vuln/detail/CVE-2021-3935
- cve.org/CVERecord?id=CVE-2021-3935
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.