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.
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
Link | Tags |
---|---|
https://bugzilla.redhat.com/show_bug.cgi?id=2022666 | issue tracking third party advisory patch |
https://www.postgresql.org/support/security/CVE-2021-23214/ | vendor advisory |
https://git.postgresql.org/gitweb/?p=postgresql.git%3Ba=commit%3Bh=28e24125541545483093819efae9bca603441951 | |
https://github.com/postgres/postgres/commit/28e24125541545483093819efae9bca603441951 | third party advisory patch |
https://security.gentoo.org/glsa/202211-04 | third party advisory vendor advisory |