{"api_version":"1","generated_at":"2026-04-23T06:20:50+00:00","cve":"CVE-2021-23222","urls":{"html":"https://cve.report/CVE-2021-23222","api":"https://cve.report/api/cve/CVE-2021-23222.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-23222","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-23222"},"summary":{"title":"CVE-2021-23222","description":"A man-in-the-middle attacker can inject false responses to the client's first few queries, despite the use of SSL certificate verification and encryption.","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2022-03-02 23:15:00","updated_at":"2023-11-07 03:30:00"},"problem_types":["CWE-522"],"metrics":[],"references":[{"url":"https://git.postgresql.org/gitweb/?p=postgresql.git%3Ba=commitdiff%3Bh=d83cdfdca9d918bbbd6bb209139b94c954da7228","name":"https://git.postgresql.org/gitweb/?p=postgresql.git%3Ba=commitdiff%3Bh=d83cdfdca9d918bbbd6bb209139b94c954da7228","refsource":"","tags":[],"title":"git.postgresql.org Git - postgresql.git/commitdiff","mime":"text/xml","httpstatus":"404","archivestatus":"200"},{"url":"https://www.postgresql.org/support/security/CVE-2021-23222/","name":"https://www.postgresql.org/support/security/CVE-2021-23222/","refsource":"MISC","tags":[],"title":"PostgreSQL: CVE-2021-23222: libpq processes unencrypted bytes from man-in-the-middle","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/postgres/postgres/commit/160c0258802d10b0600d7671b1bbea55d8e17d45","name":"https://github.com/postgres/postgres/commit/160c0258802d10b0600d7671b1bbea55d8e17d45","refsource":"MISC","tags":[],"title":"libpq: reject extraneous data after SSL or GSS encryption handshake. · postgres/postgres@160c025 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2022675","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2022675","refsource":"MISC","tags":[],"title":"2022675 – (CVE-2021-23222) CVE-2021-23222 postgresql: libpq processes unencrypted bytes from man-in-the-middle","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.gentoo.org/glsa/202211-04","name":"GLSA-202211-04","refsource":"GENTOO","tags":[],"title":"PostgreSQL: Multiple Vulnerabilities (GLSA 202211-04) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=d83cdfdca9d918bbbd6bb209139b94c954da7228","name":"https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=d83cdfdca9d918bbbd6bb209139b94c954da7228","refsource":"MISC","tags":[],"title":"git.postgresql.org Git - postgresql.git/commitdiff","mime":"text/xml","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-23222","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23222","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"23222","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"postgresql","cpe5":"postgresql","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"23222","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"postgresql","cpe5":"postgresql","cpe6":"14.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-23222","qid":"159807","title":"Oracle Enterprise Linux Security Update for libpq (ELSA-2022-1891)"},{"cve":"CVE-2021-23222","qid":"178893","title":"Debian Security Update for postgresql-13 (DSA 5007-1)"},{"cve":"CVE-2021-23222","qid":"178895","title":"Debian Security Update for postgresql-11 (DSA 5006-1)"},{"cve":"CVE-2021-23222","qid":"178897","title":"Debian Security Update for postgresql-9.6 (DLA 2817-1)"},{"cve":"CVE-2021-23222","qid":"198568","title":"Ubuntu Security Notification for PostgreSQL Vulnerabilities (USN-5145-1)"},{"cve":"CVE-2021-23222","qid":"239969","title":"Red Hat Update for rh-postgresql13-postgresql (RHSA-2021:5179)"},{"cve":"CVE-2021-23222","qid":"239972","title":"Red Hat Update for rh-postgresql12-postgresql (RHSA-2021:5197)"},{"cve":"CVE-2021-23222","qid":"240285","title":"Red Hat Update for libpq (RHSA-2022:1891)"},{"cve":"CVE-2021-23222","qid":"282209","title":"Fedora Security Update for pgbouncer (FEDORA-2021-761cda0b77)"},{"cve":"CVE-2021-23222","qid":"357312","title":"Amazon Linux Security Advisory for postgresql : ALAS2POSTGRESQL14-2024-008"},{"cve":"CVE-2021-23222","qid":"357316","title":"Amazon Linux Security Advisory for libpq : ALAS2POSTGRESQL14-2024-009"},{"cve":"CVE-2021-23222","qid":"500544","title":"Alpine Linux Security Update for postgresql"},{"cve":"CVE-2021-23222","qid":"501472","title":"Alpine Linux Security Update for postgresql"},{"cve":"CVE-2021-23222","qid":"501995","title":"Alpine Linux Security Update for postgresql13"},{"cve":"CVE-2021-23222","qid":"502012","title":"Alpine Linux Security Update for postgresql14"},{"cve":"CVE-2021-23222","qid":"502164","title":"Alpine Linux Security Update for postgresql12"},{"cve":"CVE-2021-23222","qid":"502778","title":"Alpine Linux Security Update for postgresql15"},{"cve":"CVE-2021-23222","qid":"504311","title":"Alpine Linux Security Update for postgresql14"},{"cve":"CVE-2021-23222","qid":"671257","title":"EulerOS Security Update for postgresql (EulerOS-SA-2022-1197)"},{"cve":"CVE-2021-23222","qid":"671354","title":"EulerOS Security Update for postgresql (EulerOS-SA-2022-1281)"},{"cve":"CVE-2021-23222","qid":"671698","title":"EulerOS Security Update for postgresql (EulerOS-SA-2022-1756)"},{"cve":"CVE-2021-23222","qid":"690223","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for postgresql (2ccd71bd-426b-11ec-87db-6cc21735f730)"},{"cve":"CVE-2021-23222","qid":"710683","title":"Gentoo Linux PostgreSQL Multiple Vulnerabilities (GLSA 202211-04)"},{"cve":"CVE-2021-23222","qid":"751374","title":"OpenSUSE Security Update for postgresql14 (openSUSE-SU-2021:3759-1)"},{"cve":"CVE-2021-23222","qid":"751375","title":"OpenSUSE Security Update for postgresql13 (openSUSE-SU-2021:3762-1)"},{"cve":"CVE-2021-23222","qid":"751377","title":"OpenSUSE Security Update for postgresql12 (openSUSE-SU-2021:3758-1)"},{"cve":"CVE-2021-23222","qid":"751378","title":"SUSE Enterprise Linux Security Update for postgresql12 (SUSE-SU-2021:3760-1)"},{"cve":"CVE-2021-23222","qid":"751382","title":"SUSE Enterprise Linux Security Update for postgresql96 (SUSE-SU-2021:3757-1)"},{"cve":"CVE-2021-23222","qid":"751386","title":"SUSE Enterprise Linux Security Update for postgresql10 (SUSE-SU-2021:3761-1)"},{"cve":"CVE-2021-23222","qid":"751388","title":"SUSE Enterprise Linux Security Update for postgresql, postgresql13, postgresql14 (SUSE-SU-2021:3755-1)"},{"cve":"CVE-2021-23222","qid":"751491","title":"SUSE Enterprise Linux Security Update for postgresql10 (SUSE-SU-2021:4058-1)"},{"cve":"CVE-2021-23222","qid":"751498","title":"OpenSUSE Security Update for postgresql10 (openSUSE-SU-2021:1584-1)"},{"cve":"CVE-2021-23222","qid":"751502","title":"OpenSUSE Security Update for postgresql10 (openSUSE-SU-2021:4058-1)"},{"cve":"CVE-2021-23222","qid":"752505","title":"SUSE Enterprise Linux Security Update for postgresql10 (SUSE-SU-2022:2893-1)"},{"cve":"CVE-2021-23222","qid":"752529","title":"SUSE Enterprise Linux Security Update for postgresql12 (SUSE-SU-2022:2958-1)"},{"cve":"CVE-2021-23222","qid":"900737","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for postgresql (8883)"},{"cve":"CVE-2021-23222","qid":"901728","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for postgresql (8901-1)"},{"cve":"CVE-2021-23222","qid":"940496","title":"AlmaLinux Security Update for libpq (ALSA-2022:1891)"},{"cve":"CVE-2021-23222","qid":"960202","title":"Rocky Linux Security Update for libpq (RLSA-2022:1891)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2021-23222","ASSIGNER":"secalert@redhat.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"postgresql","version":{"version_data":[{"version_value":"Affects v9.6 to v14"}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-522 - Insufficiently Protected Credentials"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2022675","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2022675"},{"refsource":"MISC","name":"https://www.postgresql.org/support/security/CVE-2021-23222/","url":"https://www.postgresql.org/support/security/CVE-2021-23222/"},{"refsource":"MISC","name":"https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=d83cdfdca9d918bbbd6bb209139b94c954da7228","url":"https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=d83cdfdca9d918bbbd6bb209139b94c954da7228"},{"refsource":"MISC","name":"https://github.com/postgres/postgres/commit/160c0258802d10b0600d7671b1bbea55d8e17d45","url":"https://github.com/postgres/postgres/commit/160c0258802d10b0600d7671b1bbea55d8e17d45"},{"refsource":"GENTOO","name":"GLSA-202211-04","url":"https://security.gentoo.org/glsa/202211-04"}]},"description":{"description_data":[{"lang":"eng","value":"A man-in-the-middle attacker can inject false responses to the client's first few queries, despite the use of SSL certificate verification and encryption."}]}},"nvd":{"publishedDate":"2022-03-02 23:15:00","lastModifiedDate":"2023-11-07 03:30:00","problem_types":["CWE-522"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5.9,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.2,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"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:postgresql:postgresql:*:*:*:*:*:*:*:*","versionStartIncluding":"9.6","versionEndExcluding":"9.6.24","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","versionStartIncluding":"10.0","versionEndExcluding":"10.19","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","versionStartIncluding":"11.0","versionEndExcluding":"11.14","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","versionStartIncluding":"12.0","versionEndExcluding":"12.9","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","versionStartIncluding":"13.0","versionEndExcluding":"13.5","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:postgresql:postgresql:14.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"23222","Ordinal":"220363","Title":"CVE-2021-23222","CVE":"CVE-2021-23222","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"23222","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}