{"api_version":"1","generated_at":"2026-04-22T23:31:13+00:00","cve":"CVE-2021-3935","urls":{"html":"https://cve.report/CVE-2021-3935","api":"https://cve.report/api/cve/CVE-2021-3935.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-3935","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-3935"},"summary":{"title":"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.","state":"PUBLIC","assigner":"patrick@puiterwijk.org","published_at":"2021-11-22 16:15:00","updated_at":"2023-11-07 03:38:00"},"problem_types":["CWE-295"],"metrics":[],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2022/02/msg00016.html","name":"[debian-lts-announce] 20220214 [SECURITY] [DLA 2922-1] pgbouncer security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2922-1] pgbouncer security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"http://www.pgbouncer.org/changelog.html#pgbouncer-116x","name":"http://www.pgbouncer.org/changelog.html#pgbouncer-116x","refsource":"MISC","tags":[],"title":"PgBouncer changelog","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2021251","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2021251","refsource":"MISC","tags":[],"title":"2021251 – (CVE-2021-3935) CVE-2021-3935 pgbouncer: server processes unencrypted bytes from man-in-the-middle","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TNPCV3KRDI5PLLLKADFVIOHACQJLZMLI/","name":"FEDORA-2021-761cda0b77","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 35 Update: pgbouncer-1.16.1-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TNPCV3KRDI5PLLLKADFVIOHACQJLZMLI/","name":"FEDORA-2021-761cda0b77","refsource":"","tags":[],"title":"[SECURITY] Fedora 35 Update: pgbouncer-1.16.1-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3935","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3935","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"3935","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3935","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"35","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3935","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"pgbouncer","cpe5":"pgbouncer","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3935","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux","cpe6":"7.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-3935","qid":"179075","title":"Debian Security Update for pgbouncer (DLA 2922-1)"},{"cve":"CVE-2021-3935","qid":"182716","title":"Debian Security Update for pgbouncer (CVE-2021-3935)"},{"cve":"CVE-2021-3935","qid":"282209","title":"Fedora Security Update for pgbouncer (FEDORA-2021-761cda0b77)"},{"cve":"CVE-2021-3935","qid":"503212","title":"Alpine Linux Security Update for pgbouncer"},{"cve":"CVE-2021-3935","qid":"506152","title":"Alpine Linux Security Update for pgbouncer"},{"cve":"CVE-2021-3935","qid":"900357","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for pgbouncer (6245)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2021-3935","ASSIGNER":"patrick@puiterwijk.org","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"pgbouncer","version":{"version_data":[{"version_value":"PgBouncer 1.16.1"}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-89"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2021251","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2021251"},{"refsource":"MISC","name":"http://www.pgbouncer.org/changelog.html#pgbouncer-116x","url":"http://www.pgbouncer.org/changelog.html#pgbouncer-116x"},{"refsource":"FEDORA","name":"FEDORA-2021-761cda0b77","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TNPCV3KRDI5PLLLKADFVIOHACQJLZMLI/"},{"refsource":"MLIST","name":"[debian-lts-announce] 20220214 [SECURITY] [DLA 2922-1] pgbouncer security update","url":"https://lists.debian.org/debian-lts-announce/2022/02/msg00016.html"}]},"description":{"description_data":[{"lang":"eng","value":"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."}]}},"nvd":{"publishedDate":"2021-11-22 16:15:00","lastModifiedDate":"2023-11-07 03:38:00","problem_types":["CWE-295"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH"},"exploitabilityScore":2.2,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:H/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"HIGH","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":5.1},"severity":"MEDIUM","exploitabilityScore":4.9,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:pgbouncer:pgbouncer:*:*:*:*:*:*:*:*","versionEndExcluding":"1.16.1","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"3935","Ordinal":"220585","Title":"CVE-2021-3935","CVE":"CVE-2021-3935","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"3935","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"3935","Ordinal":"2","NoteData":"2021-11-22","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"3935","Ordinal":"3","NoteData":"2022-02-14","Type":"Other","Title":"Modified"}]}}}