{"id":"CVE-2021-23214","aliases":["CVE-2021-23214","BIT-POSTGRESQL-2021-23214"],"related":[],"kind":"vulnerability","state":"published","title":"When the server is configured to use trust authentication with a clientcert requirement or to use cert authentication, a man-in-the-middle…","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Cuando el servidor está configurado para usar la autenticación confiable con un requisito de clientcert o para usar la autenticación de cert, un atacante de tipo man-in-the-middle puede inyectar consultas SQL arbitrarias cuando es establecida una conexión por primera vez, a pesar del uso de la verificación y el cifrado del certificado SSL","source":"nvd"}],"published":"2022-03-04T00:00:00.000Z","modified":"2026-09-08T08:48:22.976Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","score":5.1,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"Affects v9.6 to v14","status":"affected"}],"product":"postgresql","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"9.6.24"},{"status":"affected","introduced":"10.0","fixed":"10.19"},{"status":"affected","introduced":"11.0","fixed":"11.14"},{"status":"affected","introduced":"12.0","fixed":"12.9"},{"status":"affected","introduced":"13.0","fixed":"13.5"},{"status":"affected","version":"14.0"}],"vendor":"postgresql","product":"postgresql","cpe":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"34"},{"status":"affected","version":"35"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.0"}],"vendor":"redhat","product":"software_collections","cpe":"cpe:2.3:a:redhat:software_collections:1.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.0"}],"vendor":"redhat","product":"enterprise_linux","cpe":"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.0"}],"vendor":"redhat","product":"enterprise_linux_for_ibm_z_systems","cpe":"cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:8.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.0"}],"vendor":"redhat","product":"enterprise_linux_for_power_little_endian","cpe":"cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:8.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"9.6.24"},{"type":"semver","introduced":"10.0.0","status":"affected","fixed":"10.19.0"},{"type":"semver","introduced":"11.0.0","status":"affected","fixed":"11.14.0"},{"type":"semver","introduced":"12.0.0","status":"affected","fixed":"12.9.0"},{"type":"semver","introduced":"13.0.0","status":"affected","fixed":"13.5.0"},{"type":"semver","introduced":"14.0.0","status":"affected","fixed":"14.0.1"}],"ecosystem":"Bitnami","package":"postgresql","purl":"pkg:bitnami/postgresql","source":"bitnami"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2022666","tags":["advisory","issue-tracking","patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.postgresql.org/support/security/CVE-2021-23214/","tags":["advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://git.postgresql.org/gitweb/?p=postgresql.git%3Ba=commit%3Bh=28e24125541545483093819efae9bca603441951","tags":["web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/postgres/postgres/commit/28e24125541545483093819efae9bca603441951","tags":["advisory","patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.gentoo.org/glsa/202211-04","tags":["advisory","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23214","tags":["web"],"sources":["bitnami"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23214","url":"https://www.cve.org/CVERecord?id=CVE-2021-23214","licence":"CVE Terms of Use","modified":"2024-08-03T19:05:55.443Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23214","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23214","licence":"Public domain","modified":"2026-06-17T03:38:26.093Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-POSTGRESQL-2021-23214","url":"https://osv.dev/vulnerability/BIT-POSTGRESQL-2021-23214","licence":"Apache-2.0","modified":"2026-09-08T08:48:22.976Z"}],"updatedAt":"2026-11-25T22:58:07.118Z","epss":{"score":0.01901,"percentile":0.80293,"date":"2026-12-01T12:00:22.000Z"}}