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 veri...
HighCVSS 8.1
EPSS 1.1%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
17 packages: 11 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/pgbouncer(Ubuntu 16.04) | = 1.5.5-1; = 1.6.1-1; = 1.7-1; All versions | No fix listed | No fix yet |
| ubuntu/pgbouncer(Ubuntu 18.04) | = 1.7.2-3build1; = 1.7.2-65-g2b8e6cf-1; = 1.8.1-1; = 1.8.1-1build1 +1 more | No fix listed | No fix yet |
| ubuntu/pgbouncer(Ubuntu 20.04) | = 1.10.0-1; = 1.10.0-1build1; = 1.11.0-1; = 1.12.0-2 +2 more | No fix listed | No fix yet |
| alpine/pgbouncer(Alpine v3.18) | < 1.16.1-r0 | 1.16.1-r0 | Fixed |
| alpine/pgbouncer(Alpine v3.19) | < 1.16.1-r0 | 1.16.1-r0 | Fixed |
| alpine/pgbouncer(Alpine v3.20) | < 1.16.1-r0 | 1.16.1-r0 | Fixed |
| alpine/pgbouncer(Alpine v3.21) | < 1.16.1-r0 | 1.16.1-r0 | Fixed |
| alpine/pgbouncer(Alpine v3.22) | < 1.16.1-r0 | 1.16.1-r0 | Fixed |
| alpine/pgbouncer(Alpine v3.23) | < 1.16.1-r0 | 1.16.1-r0 | Fixed |
| alpine/pgbouncer(Alpine v3.24) | < 1.16.1-r0 | 1.16.1-r0 | Fixed |
| debian/pgbouncer(Debian 12) | < 1.16.1-1 | 1.16.1-1 | Fixed |
| debian/pgbouncer(Debian 13) | < 1.16.1-1 | 1.16.1-1 | Fixed |
| debian/pgbouncer(Debian 14) | < 1.16.1-1 | 1.16.1-1 | Fixed |
| pgbouncer | < 1.16.1 | 1.16.1 | Fixed |
| debian linux | = 9.0 | No fix listed | Versions listed |
| fedoraproject fedora | = 35 | No fix listed | Versions listed |
| redhat enterprise linux | = 7.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/pgbouncer(Debian:12) | < 1.16.1-1 | 1.16.1-1 |
| debian/pgbouncer(Debian:13) | < 1.16.1-1 | 1.16.1-1 |
| debian/pgbouncer(Debian:14) | < 1.16.1-1 | 1.16.1-1 |
| pgbouncer | < 1.16.1 | 1.16.1 |
| redhat enterprise linux | = 7.0 | No fix listed |
| fedoraproject fedora | = 35 | No fix listed |
| debian linux | = 9.0 | No fix listed |
| alpine/pgbouncer(Alpine:v3.18) | < 1.16.1-r0 | 1.16.1-r0 |
| alpine/pgbouncer(Alpine:v3.19) | < 1.16.1-r0 | 1.16.1-r0 |
| alpine/pgbouncer(Alpine:v3.20) | < 1.16.1-r0 | 1.16.1-r0 |
| alpine/pgbouncer(Alpine:v3.21) | < 1.16.1-r0 | 1.16.1-r0 |
| alpine/pgbouncer(Alpine:v3.22) | < 1.16.1-r0 | 1.16.1-r0 |
| alpine/pgbouncer(Alpine:v3.23) | < 1.16.1-r0 | 1.16.1-r0 |
| alpine/pgbouncer(Alpine:v3.24) | < 1.16.1-r0 | 1.16.1-r0 |
| ubuntu/pgbouncer(Ubuntu:16.04) | All versions | No fix listed |
| ubuntu/pgbouncer(Ubuntu:16.04) | = 1.5.5-1 | No fix listed |
| ubuntu/pgbouncer(Ubuntu:16.04) | = 1.6.1-1 | No fix listed |
| ubuntu/pgbouncer(Ubuntu:16.04) | = 1.7-1 | No fix listed |
| ubuntu/pgbouncer(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/pgbouncer(Ubuntu:18.04) | = 1.7.2-3build1 | No fix listed |
| ubuntu/pgbouncer(Ubuntu:18.04) | = 1.7.2-65-g2b8e6cf-1 | No fix listed |
| ubuntu/pgbouncer(Ubuntu:18.04) | = 1.8.1-1 | No fix listed |
| ubuntu/pgbouncer(Ubuntu:18.04) | = 1.8.1-1build1 | No fix listed |
| ubuntu/pgbouncer(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/pgbouncer(Ubuntu:20.04) | = 1.10.0-1 | No fix listed |
Show 4 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/pgbouncer(Ubuntu:20.04) | = 1.10.0-1build1 | No fix listed |
| ubuntu/pgbouncer(Ubuntu:20.04) | = 1.11.0-1 | No fix listed |
| ubuntu/pgbouncer(Ubuntu:20.04) | = 1.12.0-2 | No fix listed |
| ubuntu/pgbouncer(Ubuntu:20.04) | = 1.12.0-3 | No fix listed |
References
- Debian Security Tracker CVE-2021-3935 vendor-advisory
- www.pgbouncer.org issue-tracking release-notes vendor-advisory
- bugzilla.redhat.com issue-tracking third-party-advisory
- [debian-lts-announce] 20220214 [SECURITY] [DLA 2922-1] pgbouncer security update mailing-list third-party-advisory
- FEDORA-2021-761cda0b77 vendor-advisory
- lists.debian.org
- security.alpinelinux.org vendor-advisory
- ubuntu.com issue-tracking
- www.pgbouncer.org issue-tracking
- github.com issue-tracking
- github.com issue-tracking
- www.cve.org issue-tracking