PT-2021-7397 · Pgbouncer+3 · Pgbouncer+3
Guilherme De Almeida Suckevicz
·
Published
2021-11-01
·
Updated
2025-05-27
·
CVE-2021-3935
CVSS v3.1
8.1
High
| Vector | AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
PgBouncer versions prior to 1.16.1
Description
The issue is related to the handling of initial message request data in PgBouncer, which can be exploited by a remote attacker to access confidential data, compromise data integrity, and cause a denial of service. Specifically, 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.
Recommendations
For versions prior to 1.16.1, update to version 1.16.1 or later to resolve the issue.
As a temporary workaround, consider disabling the use of "cert" authentication in PgBouncer until a patch is available.
Restrict access to the PgBouncer connection to minimize the risk of exploitation by a man-in-the-middle attacker.
Fix
SQL injection
Improper Certificate Validation
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Astra Linux
Debian
Pgbouncer