{"id":"USN-9435-1","summary":"pgbouncer vulnerabilities","details":"It was discovered that PgBouncer incorrectly handled connections when\nconfigured to use certificate authentication. A machine-in-the-middle\nattacker could possibly use this issue to inject arbitrary SQL queries when\na connection was first established. This issue only affected Ubuntu 16.04\nLTS, Ubuntu 18.04 LTS, and Ubuntu 20.04 LTS. (CVE-2021-3935)\n\nIt was discovered that PgBouncer did not properly handle password expiry\nwhen authenticating users. An attacker could possibly use this issue to log\nin with an expired password. (CVE-2025-2291)\n\nIt was discovered that PgBouncer incorrectly handled certain parameters\nsent during authentication. An unauthenticated attacker could possibly use\nthis issue to execute arbitrary SQL. (CVE-2025-12819)","modified":"2026-12-03T20:59:10.195658746Z","published":"2026-12-02T19:40:17Z","related":["UBUNTU-CVE-2021-3935","UBUNTU-CVE-2025-12819","UBUNTU-CVE-2025-2291"],"upstream":["CVE-2021-3935","CVE-2025-12819","CVE-2025-2291","UBUNTU-CVE-2021-3935","UBUNTU-CVE-2025-12819","UBUNTU-CVE-2025-2291"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-9435-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-3935"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-2291"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-12819"}],"affected":[{"package":{"name":"pgbouncer","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/pgbouncer?arch=source&distro=esm-apps-legacy%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7-1ubuntu0.1~esm1"}]}],"versions":["1.5.5-1","1.6.1-1","1.7-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.7-1ubuntu0.1~esm1","binary_name":"pgbouncer"}],"availability":"Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9435-1.json","cves_map":{"ecosystem":"Ubuntu:Pro:16.04:LTS","cves":[{"id":"CVE-2021-3935","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD"},{"type":"Ubuntu","score":"medium","source":"SELF"}]},{"id":"CVE-2025-2291","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CNA"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD"},{"type":"Ubuntu","score":"medium","source":"SELF"}]},{"id":"CVE-2025-12819","severity":[{"score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"CNA","type":"CVSS_V3"},{"source":"NVD","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"score":"medium","source":"SELF","type":"Ubuntu"}]}]}}},{"package":{"name":"pgbouncer","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/pgbouncer?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.1-1ubuntu0.1~esm1"}]}],"versions":["1.7.2-3build1","1.7.2-65-g2b8e6cf-1","1.8.1-1","1.8.1-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"pgbouncer","binary_version":"1.8.1-1ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9435-1.json","cves_map":{"ecosystem":"Ubuntu:Pro:18.04:LTS","cves":[{"id":"CVE-2021-3935","severity":[{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD","type":"CVSS_V3"},{"score":"medium","source":"SELF","type":"Ubuntu"}]},{"id":"CVE-2025-2291","severity":[{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CNA","type":"CVSS_V3"},{"source":"NVD","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"source":"SELF","type":"Ubuntu","score":"medium"}]}]}}},{"package":{"name":"pgbouncer","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/pgbouncer?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.0-3ubuntu0.1~esm1"}]}],"versions":["1.10.0-1","1.10.0-1build1","1.11.0-1","1.12.0-2","1.12.0-3"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"pgbouncer","binary_version":"1.12.0-3ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9435-1.json","cves_map":{"cves":[{"severity":[{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD","type":"CVSS_V3"},{"source":"SELF","type":"Ubuntu","score":"medium"}],"id":"CVE-2021-3935"},{"severity":[{"source":"CNA","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD"},{"type":"Ubuntu","score":"medium","source":"SELF"}],"id":"CVE-2025-2291"},{"severity":[{"source":"CNA","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"source":"NVD","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium","source":"SELF"}],"id":"CVE-2025-12819"}],"ecosystem":"Ubuntu:Pro:20.04:LTS"}}},{"package":{"name":"pgbouncer","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/pgbouncer?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.16.1-1ubuntu1+esm1"}]}],"versions":["1.15.0-1","1.16.1-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"pgbouncer","binary_version":"1.16.1-1ubuntu1+esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9435-1.json","cves_map":{"ecosystem":"Ubuntu:Pro:22.04:LTS","cves":[{"id":"CVE-2025-2291","severity":[{"source":"CNA","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"source":"NVD","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"source":"SELF","type":"Ubuntu","score":"medium"}]}]}}},{"package":{"name":"pgbouncer","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/pgbouncer?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.0-1ubuntu0.1~esm1"}]}],"versions":["1.20.0-1","1.21.0-1","1.22.0-1","1.22.0-1build1","1.22.0-1build3","1.22.0-1build4"],"ecosystem_specific":{"binaries":[{"binary_name":"pgbouncer","binary_version":"1.22.0-1ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9435-1.json","cves_map":{"ecosystem":"Ubuntu:Pro:24.04:LTS","cves":[{"id":"CVE-2025-2291","severity":[{"source":"CNA","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"source":"NVD","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium","source":"SELF"}]},{"severity":[{"score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"CNA","type":"CVSS_V3"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD"},{"type":"Ubuntu","score":"medium","source":"SELF"}],"id":"CVE-2025-12819"}]}}}],"schema_version":"1.9.2"}