Vulnerability · Published Nov 22, 2021 · Assigned by fedora
CVE-2021-3935
High 8.1
In plain English
A high-severity SQL injection in pgbouncer. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 66% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)8.1High
Exploit odds (30 days)1.1%top 33.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | pgbouncer | 1.16.1-r0 | ALPINE-CVE-2021-3935 |
| Alpine:v3.21 | pgbouncer | 1.16.1-r0 | ALPINE-CVE-2021-3935 |
| Alpine:v3.22 | pgbouncer | 1.16.1-r0 | ALPINE-CVE-2021-3935 |
| Alpine:v3.23 | pgbouncer | 1.16.1-r0 | ALPINE-CVE-2021-3935 |
| Alpine:v3.24 | pgbouncer | 1.16.1-r0 | ALPINE-CVE-2021-3935 |
| Debian:12 | pgbouncer | 1.16.1-1 | DEBIAN-CVE-2021-3935 |
| Debian:13 | pgbouncer | 1.16.1-1 | DEBIAN-CVE-2021-3935 |
| Debian:14 | pgbouncer | 1.16.1-1 | DEBIAN-CVE-2021-3935 |
| Ubuntu:22.04:LTS | pgbouncer | no fix listed | UBUNTU-CVE-2021-3935 |
Affected products (as reported)
Weakness: CWE-89
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2021251 x_refsource_MISC
- http://www.pgbouncer.org/changelog.html#pgbouncer-116x x_refsource_MISC
- FEDORA-2021-761cda0b77 vendor-advisory, x_refsource_FEDORA
- [debian-lts-announce] 20220214 [SECURITY] [DLA 2922-1] pgbouncer security update mailing-list, x_refsource_MLIST
- https://lists.debian.org/debian-lts-announce/2025/05/msg00032.html