# 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…

- Severity: High 8.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.12%, higher than 66% of CVEs (2026-12-01)
- Published: 2021-11-22T15:59:14.000Z
- Modified: 2026-09-08T08:47:35.993Z
- Also known as: BIT-PGBOUNCER-2021-3935
- Weaknesses: CWE-89, CWE-295
- Assigned by: fedora

## 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.

(As written by CVE List.)

## Affected

- pgbouncer: PgBouncer 1.16.1
- pgbouncer pgbouncer: before 1.16.1
- redhat enterprise_linux: 7.0
- fedoraproject fedora: 35
- debian debian_linux: 9.0
- pgbouncer (Bitnami): before 1.16.1

## Every score

- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 5.1 Medium `AV:N/AC:H/Au:N/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2021251> (advisory, issue-tracking, third-party-advisory)
- <http://www.pgbouncer.org/changelog.html#pgbouncer-116x> (advisory, release-notes, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TNPCV3KRDI5PLLLKADFVIOHACQJLZMLI/> (vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2022/02/msg00016.html> (advisory, mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00032.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3935> (web)

## Sources

- CVE List: [CVE-2021-3935](https://www.cve.org/CVERecord?id=CVE-2021-3935), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2021-3935](https://nvd.nist.gov/vuln/detail/CVE-2021-3935), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-PGBOUNCER-2021-3935](https://osv.dev/vulnerability/BIT-PGBOUNCER-2021-3935), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-3935 · Whole record: https://cve.day/CVE-2021-3935.json · Rebuilt by cve.day 2026-11-25T22:58:05.705Z
