Skip to content
OpenAdvisories
Unscored CVE-2021-3935 EUVD-2021-27149GHSA-jh4v-gqwq-hfrr

When PgBouncer is configured to use "cert" authentication, a man-in-the-middle attacker can inject arbitrary SQL queries when a connection …

Published Nov 22, 2021 · Updated Nov 3, 2025 · 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.

Affected products

VendorProductAffectedFixed
— pgbouncer PgBouncer 1.16.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pgbouncer 1.16.1-1 —
Debian 13 pgbouncer 1.16.1-1 —
Debian 12 pgbouncer 1.16.1-1 —
Debian 11 pgbouncer 1.15.0-1+deb11u1 DLA-4180-1
Debian 9 pgbouncer 1.7.2-2+deb9u1 DLA-2922-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS pgbouncer No fix yet —
Ubuntu 18.04 LTS pgbouncer No fix yet —
Ubuntu 16.04 LTS pgbouncer No fix yet —
ReleasePackageFixed inAdvisory
Alpine v3.24 pgbouncer 1.16.1-r0 —
Alpine v3.23 pgbouncer 1.16.1-r0 —
Alpine v3.22 pgbouncer 1.16.1-r0 —
Alpine v3.21 pgbouncer 1.16.1-r0 —
Alpine v3.20 pgbouncer 1.16.1-r0 —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 pgbouncer 1.16.1-r0 —
Alpine v3.18 pgbouncer 1.16.1-r0 —

Advisories 2

References