Vulnerability Description
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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Pgbouncer | Pgbouncer | < 1.16.1 |
| Redhat | Enterprise Linux | 7.0 |
| Fedoraproject | Fedora | 35 |
| Debian | Debian Linux | 9.0 |
Related Weaknesses (CWE)
References
- http://www.pgbouncer.org/changelog.html#pgbouncer-116xRelease NotesVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2021251Issue TrackingThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/02/msg00016.htmlMailing ListThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- http://www.pgbouncer.org/changelog.html#pgbouncer-116xRelease NotesVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2021251Issue TrackingThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/02/msg00016.htmlMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2025/05/msg00032.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
FAQ
What is CVE-2021-3935?
CVE-2021-3935 is a vulnerability with a CVSS score of 8.1 (HIGH). 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 veri...
How severe is CVE-2021-3935?
CVE-2021-3935 has been rated HIGH with a CVSS base score of 8.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-3935?
Check the references section above for vendor advisories and patch information. Affected products include: Pgbouncer Pgbouncer, Redhat Enterprise Linux, Fedoraproject Fedora, Debian Debian Linux.