{"id":"CVE-2021-23214","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 attacker can inject arbitrary SQL queries","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.","publishedAt":"2022-03-04T00:00:00.000Z","updatedAt":"2024-08-03T19:05:55.443Z","severity":null,"assigner":"redhat","products":["n/a postgresql"],"affected":[{"vendor":"n/a","product":"postgresql","versions":[{"version":"Affects v9.6 to v14","status":"affected"}]}],"references":["https://bugzilla.redhat.com/show_bug.cgi?id=2022666","https://www.postgresql.org/support/security/CVE-2021-23214/","https://git.postgresql.org/gitweb/?p=postgresql.git%3Ba=commit%3Bh=28e24125541545483093819efae9bca603441951","https://github.com/postgres/postgres/commit/28e24125541545483093819efae9bca603441951","https://security.gentoo.org/glsa/202211-04"],"weaknesses":["CWE-89"],"ingestedAt":"2026-10-29T19:48:04.982Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/23xxx/CVE-2021-23214.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-23214","state":"PUBLISHED","datePublished":"2022-03-04T00:00:00.000Z","dateUpdated":"2024-08-03T19:05:55.443Z","assignerShortName":"redhat","assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateReserved":"2021-11-03T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","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."}],"affected":[{"vendor":"n/a","product":"postgresql","versions":[{"version":"Affects v9.6 to v14","status":"affected"}]}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2022666"},{"url":"https://www.postgresql.org/support/security/CVE-2021-23214/"},{"url":"https://git.postgresql.org/gitweb/?p=postgresql.git%3Ba=commit%3Bh=28e24125541545483093819efae9bca603441951"},{"url":"https://github.com/postgres/postgres/commit/28e24125541545483093819efae9bca603441951"},{"url":"https://security.gentoo.org/glsa/202211-04","name":"GLSA-202211-04","tags":["vendor-advisory"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","type":"CWE","lang":"en","description":"CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"}]}],"providerMetadata":{"shortName":"redhat","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateUpdated":"2022-11-22T00:00:00.000Z"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2022666","tags":["x_transferred"]},{"url":"https://www.postgresql.org/support/security/CVE-2021-23214/","tags":["x_transferred"]},{"url":"https://git.postgresql.org/gitweb/?p=postgresql.git%3Ba=commit%3Bh=28e24125541545483093819efae9bca603441951","tags":["x_transferred"]},{"url":"https://github.com/postgres/postgres/commit/28e24125541545483093819efae9bca603441951","tags":["x_transferred"]},{"url":"https://security.gentoo.org/glsa/202211-04","name":"GLSA-202211-04","tags":["vendor-advisory","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T19:05:55.443Z"}}]}}}