CVE-2021-23214

Name
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.
NVD Severity
high
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
Patch https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=28e24125541545483093819efae9bca603441951
Vendor Advisory https://www.postgresql.org/support/security/CVE-2021-23214/
Patch https://github.com/postgres/postgres/commit/28e24125541545483093819efae9bca603441951
Issue Tracking https://bugzilla.redhat.com/show_bug.cgi?id=2022666

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* postgresql >= None < 9.6.24
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* postgresql >= 10.0 < 10.19
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* postgresql >= 11.0 < 11.14
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* postgresql >= 12.0 < 12.9
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* postgresql >= 13.0 < 13.5
cpe:2.3:a:postgresql:postgresql:14.0:*:*:*:*:*:*:* postgresql == None == 14.0

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
postgresql15 edge-main 14.1-r0 None fixed
postgresql15 edge-community 14.1-r0 None fixed
postgresql15 3.20-main 14.1-r0 None fixed
postgresql15 3.19-main 14.1-r0 None fixed
postgresql15 3.18-main 14.1-r0 None fixed
postgresql15 3.17-main 14.1-r0 None fixed
postgresql14 edge-main 14.1-r0 None fixed
postgresql14 edge-community 14.1-r0 None fixed
postgresql14 3.20-community 14.1-r0 None fixed
postgresql14 3.19-community 14.1-r0 None fixed
postgresql14 3.18-main 14.1-r0 None fixed
postgresql14 3.17-main 14.1-r0 None fixed
postgresql13 edge-main 13.5-r0 Jakub Jirutka <jakub@jirutka.cz> fixed
postgresql13 edge-community 13.5-r0 None fixed
postgresql13 3.19-community 13.5-r0 None fixed
postgresql13 3.18-community 13.5-r0 None fixed
postgresql13 3.17-community 13.5-r0 None fixed
postgresql12 edge-community 12.9-r0 Jakub Jirutka <jakub@jirutka.cz> fixed
postgresql12 3.18-community 12.9-r0 None fixed
postgresql12 3.17-community 12.9-r0 None fixed
postgresql edge-main 14.1-r0 Jakub Jirutka <jakub@jirutka.cz> fixed
postgresql edge-main 13.4-r0 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
postgresql edge-main 13.3-r0 Jakub Jirutka <jakub@jirutka.cz> possibly vulnerable
postgresql edge-main 13.2-r0 None possibly vulnerable
postgresql edge-main 12.5-r0 None possibly vulnerable
postgresql edge-main 12.4-r0 None possibly vulnerable
postgresql edge-main 12.2-r0 None possibly vulnerable
postgresql edge-main 11.5-r0 None possibly vulnerable
postgresql edge-main 11.4-r0 None possibly vulnerable
postgresql edge-main 11.3-r0 None possibly vulnerable
postgresql edge-main 11.1-r0 None possibly vulnerable
postgresql edge-main 10.5-r0 None possibly vulnerable
postgresql edge-main 10.4-r0 None possibly vulnerable
postgresql edge-main 10.3-r0 None possibly vulnerable
postgresql edge-main 10.2-r0 None possibly vulnerable
postgresql edge-main 10.1-r0 None possibly vulnerable
postgresql edge-main 9.6.4-r0 None possibly vulnerable
postgresql edge-main 9.6.3-r0 None possibly vulnerable
postgresql 3.12-main 12.9-r0 Jakub Jirutka <jakub@jirutka.cz> fixed
postgresql 3.11-main 12.9-r0 Jakub Jirutka <jakub@jirutka.cz> fixed