{"id":"CVE-2021-3935","aliases":["ALPINE-CVE-2021-3935","BIT-pgbouncer-2021-3935","DEBIAN-CVE-2021-3935","DLA-2922-1","DLA-4180-1","EUVD-2021-27149","GHSA-jh4v-gqwq-hfrr","UBUNTU-CVE-2021-3935"],"status":"published","title":"When PgBouncer is configured to use \"cert\" authentication, a man-in-the-middle attacker can...","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.","severity":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01116,"percentile":0.66301,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-295","CWE-89"],"published":"2021-11-22T15:59:14Z","modified":"2026-11-09T12:49:14Z","fixes":[{"ecosystem":"Alpine:v3.18","package":"pgbouncer","fixed_in":["1.16.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"pgbouncer","fixed_in":["1.16.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"pgbouncer","fixed_in":["1.16.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"pgbouncer","fixed_in":["1.16.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"pgbouncer","fixed_in":["1.16.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"pgbouncer","fixed_in":["1.16.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"pgbouncer","fixed_in":["1.16.1-r0"],"sources":["osv"]},{"ecosystem":"Bitnami","package":"pgbouncer","fixed_in":["1.16.1"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"pgbouncer","fixed_in":["1.16.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"pgbouncer","fixed_in":["1.16.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"pgbouncer","fixed_in":["1.16.1-1"],"sources":["osv"]},{"ecosystem":"Debian:9","package":"pgbouncer","fixed_in":["1.7.2-2+deb9u1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.18","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.16.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.16.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.16.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.16.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.16.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.16.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.16.1-r0"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"pgbouncer","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.16.1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.16.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.16.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.16.1-1"}]}]},{"source":"osv","ecosystem":"Debian:9","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.2-2+deb9u1"}]}],"versions":["1.7.2-2"]},{"source":"osv","ecosystem":"Debian:11","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.15.0-1+deb11u1"}]}],"versions":["1.15.0-1"],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.5-1","1.6.1-1","1.7-1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.2-3build1","1.7.2-65-g2b8e6cf-1","1.8.1-1","1.8.1-1build1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.10.0-1","1.10.0-1build1","1.11.0-1","1.12.0-2","1.12.0-3"]}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"fedoraproject","product":"fedora"},{"vendor":"pgbouncer","product":"pgbouncer"},{"vendor":"redhat","product":"enterprise_linux"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2021251","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","advisory","report"]},{"url":"http://www.pgbouncer.org/changelog.html#pgbouncer-116x","tags":["x_refsource_MISC","x_transferred","Release Notes","Vendor Advisory","advisory","report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TNPCV3KRDI5PLLLKADFVIOHACQJLZMLI/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/02/msg00016.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00032.html","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3935","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TNPCV3KRDI5PLLLKADFVIOHACQJLZMLI"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TNPCV3KRDI5PLLLKADFVIOHACQJLZMLI"},{"url":"https://github.com/advisories/GHSA-jh4v-gqwq-hfrr"},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-3935","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3935","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-3935","tags":["report"]},{"url":"https://www.pgbouncer.org/2021/11/pgbouncer-1-16-1","tags":["report"]},{"url":"https://github.com/pgbouncer/pgbouncer/releases/tag/pgbouncer_1_16_1","tags":["report"]},{"url":"https://github.com/pgbouncer/pgbouncer/commit/e4453c9151a2f5af0a9cb049b302a3f9f9654453","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3935","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-3935","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.","status":"published","published":"2021-11-22T15:59:14Z","modified":"2025-11-03T19:26:17.293Z","cwes":["CWE-89"],"updated_at":"2026-11-02T14:33:04.020035Z"}],"euvd":[{"id":"EUVD-2021-27149","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.","status":"published","published":"2021-11-22T15:59:14Z","modified":"2025-11-03T19:26:17Z","updated_at":"2026-11-02T19:49:34.152725Z"}],"ghsa":[{"id":"GHSA-jh4v-gqwq-hfrr","title":"When PgBouncer is configured to use \"cert\" authentication, a man-in-the-middle attacker can...","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.","status":"published","published":"2022-05-24T19:21:11Z","modified":"2025-11-03T21:31:40Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-89","CWE-295"],"updated_at":"2026-11-02T15:04:19.274788Z"}],"nvd":[{"id":"CVE-2021-3935","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.","status":"published","published":"2021-11-22T16:15:07.44Z","modified":"2026-06-17T04:06:01.063Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5.1,"vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-89","CWE-295"],"updated_at":"2026-11-02T14:07:01.428028Z"}],"osv":[{"id":"ALPINE-CVE-2021-3935","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.","status":"published","published":"2021-11-22T16:15:07.44Z","modified":"2026-11-03T06:32:58.630888797Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T07:16:09.603409Z"},{"id":"CVE-2021-3935","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.","status":"published","published":"2021-11-22T16:15:07.44Z","modified":"2026-03-15T14:10:06.366166Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:20.843843Z"},{"id":"DEBIAN-CVE-2021-3935","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.","status":"published","published":"2021-11-22T16:15:07.44Z","modified":"2026-10-23T18:03:32.352978482Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:35.521549Z"},{"id":"UBUNTU-CVE-2021-3935","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.","status":"published","published":"2021-11-22T16:15:00Z","modified":"2026-11-09T12:49:14.834873856Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-09T13:27:42.046613Z"},{"id":"BIT-pgbouncer-2021-3935","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.","status":"published","published":"2024-03-06T11:01:06.081Z","modified":"2026-09-08T08:47:35.993762844Z","updated_at":"2026-11-02T15:28:34.343258Z"},{"id":"DLA-2922-1","title":"pgbouncer - security update","status":"published","published":"2022-02-14T00:00:00Z","modified":"2026-03-09T01:20:26.158663Z","updated_at":"2026-11-02T15:46:11.189256Z"},{"id":"DLA-4180-1","title":"pgbouncer - security update","status":"published","published":"2025-05-27T00:00:00Z","modified":"2026-03-09T01:23:03.268857Z","updated_at":"2026-11-02T15:46:12.7027Z"}]}}
