{"api_version":"1","generated_at":"2026-04-23T03:26:08+00:00","cve":"CVE-2021-23214","urls":{"html":"https://cve.report/CVE-2021-23214","api":"https://cve.report/api/cve/CVE-2021-23214.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-23214","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-23214"},"summary":{"title":"CVE-2021-23214","description":"When the server is configured to use trust authentication with a clientcert requirement or 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 SSL certificate verification and encryption.","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2022-03-04 16:15:00","updated_at":"2023-11-07 03:30:00"},"problem_types":["CWE-89"],"metrics":[],"references":[{"url":"https://github.com/postgres/postgres/commit/28e24125541545483093819efae9bca603441951","name":"https://github.com/postgres/postgres/commit/28e24125541545483093819efae9bca603441951","refsource":"MISC","tags":[],"title":"Reject extraneous data after SSL or GSS encryption handshake. · postgres/postgres@28e2412 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://www.postgresql.org/support/security/CVE-2021-23214/","name":"https://www.postgresql.org/support/security/CVE-2021-23214/","refsource":"MISC","tags":[],"title":"PostgreSQL: CVE-2021-23214: Server processes unencrypted bytes from man-in-the-middle","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://git.postgresql.org/gitweb/?p=postgresql.git%3Ba=commit%3Bh=28e24125541545483093819efae9bca603441951","name":"https://git.postgresql.org/gitweb/?p=postgresql.git%3Ba=commit%3Bh=28e24125541545483093819efae9bca603441951","refsource":"","tags":[],"title":"git.postgresql.org Git - postgresql.git/commit","mime":"text/xml","httpstatus":"404","archivestatus":"200"},{"url":"https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=28e24125541545483093819efae9bca603441951","name":"https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=28e24125541545483093819efae9bca603441951","refsource":"MISC","tags":[],"title":"git.postgresql.org Git - postgresql.git/commit","mime":"text/xml","httpstatus":"200","archivestatus":"0"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2022666","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2022666","refsource":"MISC","tags":[],"title":"2022666 – (CVE-2021-23214) CVE-2021-23214 postgresql: server processes unencrypted bytes from man-in-the-middle","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"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://www.cve.org/CVERecord?id=CVE-2021-23214","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23214","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"23214","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"23214","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":"23214","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":"23214","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"postgresql","cpe5":"postgresql","cpe6":"14.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"23214","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"23214","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux_for_ibm_z_systems","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"23214","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux_for_power_little_endian","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"23214","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"redhat","cpe5":"software_collections","cpe6":"1.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-23214","qid":"159576","title":"Oracle Enterprise Linux Security Update for postgresql:12 (ELSA-2021-5235)"},{"cve":"CVE-2021-23214","qid":"159577","title":"Oracle Enterprise Linux Security Update for postgresql:13 (ELSA-2021-5236)"},{"cve":"CVE-2021-23214","qid":"159822","title":"Oracle Enterprise Linux Security Update for postgresql:10 (ELSA-2022-1830)"},{"cve":"CVE-2021-23214","qid":"178893","title":"Debian Security Update for postgresql-13 (DSA 5007-1)"},{"cve":"CVE-2021-23214","qid":"178895","title":"Debian Security Update for postgresql-11 (DSA 5006-1)"},{"cve":"CVE-2021-23214","qid":"178897","title":"Debian Security Update for postgresql-9.6 (DLA 2817-1)"},{"cve":"CVE-2021-23214","qid":"198568","title":"Ubuntu Security Notification for PostgreSQL Vulnerabilities (USN-5145-1)"},{"cve":"CVE-2021-23214","qid":"239969","title":"Red Hat Update for rh-postgresql13-postgresql (RHSA-2021:5179)"},{"cve":"CVE-2021-23214","qid":"239972","title":"Red Hat Update for rh-postgresql12-postgresql (RHSA-2021:5197)"},{"cve":"CVE-2021-23214","qid":"239975","title":"Red Hat Update for postgresql:13 (RHSA-2021:5236)"},{"cve":"CVE-2021-23214","qid":"239976","title":"Red Hat Update for postgresql:12 (RHSA-2021:5235)"},{"cve":"CVE-2021-23214","qid":"240308","title":"Red Hat Update for postgresql:10 (RHSA-2022:1830)"},{"cve":"CVE-2021-23214","qid":"282209","title":"Fedora Security Update for pgbouncer (FEDORA-2021-761cda0b77)"},{"cve":"CVE-2021-23214","qid":"354679","title":"Amazon Linux Security Advisory for postgresql93 : ALAS-2023-1658"},{"cve":"CVE-2021-23214","qid":"354682","title":"Amazon Linux Security Advisory for postgresql96 : ALAS-2023-1661"},{"cve":"CVE-2021-23214","qid":"354683","title":"Amazon Linux Security Advisory for postgresql92 : ALAS-2023-1657"},{"cve":"CVE-2021-23214","qid":"354685","title":"Amazon Linux Security Advisory for postgresql95 : ALAS-2023-1660"},{"cve":"CVE-2021-23214","qid":"354687","title":"Amazon Linux Security Advisory for postgresql94 : ALAS-2023-1659"},{"cve":"CVE-2021-23214","qid":"354761","title":"Amazon Linux Security Advisory for postgresql : ALAS2-2023-1949"},{"cve":"CVE-2021-23214","qid":"500544","title":"Alpine Linux Security Update for postgresql"},{"cve":"CVE-2021-23214","qid":"501472","title":"Alpine Linux Security Update for postgresql"},{"cve":"CVE-2021-23214","qid":"501995","title":"Alpine Linux Security Update for postgresql13"},{"cve":"CVE-2021-23214","qid":"502012","title":"Alpine Linux Security Update for postgresql14"},{"cve":"CVE-2021-23214","qid":"502164","title":"Alpine Linux Security Update for postgresql12"},{"cve":"CVE-2021-23214","qid":"502778","title":"Alpine Linux Security Update for postgresql15"},{"cve":"CVE-2021-23214","qid":"504311","title":"Alpine Linux Security Update for postgresql14"},{"cve":"CVE-2021-23214","qid":"671231","title":"EulerOS Security Update for postgresql (EulerOS-SA-2022-1182)"},{"cve":"CVE-2021-23214","qid":"671354","title":"EulerOS Security Update for postgresql (EulerOS-SA-2022-1281)"},{"cve":"CVE-2021-23214","qid":"690223","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for postgresql (2ccd71bd-426b-11ec-87db-6cc21735f730)"},{"cve":"CVE-2021-23214","qid":"710683","title":"Gentoo Linux PostgreSQL Multiple Vulnerabilities (GLSA 202211-04)"},{"cve":"CVE-2021-23214","qid":"751374","title":"OpenSUSE Security Update for postgresql14 (openSUSE-SU-2021:3759-1)"},{"cve":"CVE-2021-23214","qid":"751375","title":"OpenSUSE Security Update for postgresql13 (openSUSE-SU-2021:3762-1)"},{"cve":"CVE-2021-23214","qid":"751377","title":"OpenSUSE Security Update for postgresql12 (openSUSE-SU-2021:3758-1)"},{"cve":"CVE-2021-23214","qid":"751378","title":"SUSE Enterprise Linux Security Update for postgresql12 (SUSE-SU-2021:3760-1)"},{"cve":"CVE-2021-23214","qid":"751382","title":"SUSE Enterprise Linux Security Update for postgresql96 (SUSE-SU-2021:3757-1)"},{"cve":"CVE-2021-23214","qid":"751386","title":"SUSE Enterprise Linux Security Update for postgresql10 (SUSE-SU-2021:3761-1)"},{"cve":"CVE-2021-23214","qid":"751388","title":"SUSE Enterprise Linux Security Update for postgresql, postgresql13, postgresql14 (SUSE-SU-2021:3755-1)"},{"cve":"CVE-2021-23214","qid":"751491","title":"SUSE Enterprise Linux Security Update for postgresql10 (SUSE-SU-2021:4058-1)"},{"cve":"CVE-2021-23214","qid":"751498","title":"OpenSUSE Security Update for postgresql10 (openSUSE-SU-2021:1584-1)"},{"cve":"CVE-2021-23214","qid":"751502","title":"OpenSUSE Security Update for postgresql10 (openSUSE-SU-2021:4058-1)"},{"cve":"CVE-2021-23214","qid":"752505","title":"SUSE Enterprise Linux Security Update for postgresql10 (SUSE-SU-2022:2893-1)"},{"cve":"CVE-2021-23214","qid":"752529","title":"SUSE Enterprise Linux Security Update for postgresql12 (SUSE-SU-2022:2958-1)"},{"cve":"CVE-2021-23214","qid":"900743","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for postgresql (8955)"},{"cve":"CVE-2021-23214","qid":"900921","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for postgresql (8973-1)"},{"cve":"CVE-2021-23214","qid":"940094","title":"AlmaLinux Security Update for postgresql:12 (ALSA-2021:5235)"},{"cve":"CVE-2021-23214","qid":"940417","title":"AlmaLinux Security Update for postgresql:13 (ALSA-2021:5236)"},{"cve":"CVE-2021-23214","qid":"940528","title":"AlmaLinux Security Update for postgresql:10 (ALSA-2022:1830)"},{"cve":"CVE-2021-23214","qid":"960321","title":"Rocky Linux Security Update for postgresql:13 (RLSA-2021:5236)"},{"cve":"CVE-2021-23214","qid":"960337","title":"Rocky Linux Security Update for postgresql:12 (RLSA-2021:5235)"},{"cve":"CVE-2021-23214","qid":"960350","title":"Rocky Linux Security Update for postgresql:10 (RLSA-2022:1830)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2021-23214","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-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2022666","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2022666"},{"refsource":"MISC","name":"https://www.postgresql.org/support/security/CVE-2021-23214/","url":"https://www.postgresql.org/support/security/CVE-2021-23214/"},{"refsource":"MISC","name":"https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=28e24125541545483093819efae9bca603441951","url":"https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=28e24125541545483093819efae9bca603441951"},{"refsource":"MISC","name":"https://github.com/postgres/postgres/commit/28e24125541545483093819efae9bca603441951","url":"https://github.com/postgres/postgres/commit/28e24125541545483093819efae9bca603441951"},{"refsource":"GENTOO","name":"GLSA-202211-04","url":"https://security.gentoo.org/glsa/202211-04"}]},"description":{"description_data":[{"lang":"eng","value":"When the server is configured to use trust authentication with a clientcert requirement or 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 SSL certificate verification and encryption."}]}},"nvd":{"publishedDate":"2022-03-04 16:15:00","lastModifiedDate":"2023-11-07 03:30:00","problem_types":["CWE-89"],"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: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":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","versionEndExcluding":"9.6.24","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:redhat:software_collections:1.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:8.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:8.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"23214","Ordinal":"220364","Title":"CVE-2021-23214","CVE":"CVE-2021-23214","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"23214","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}]}}}