SQL Injection in PostgreSQL
CVE-2021-23214
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.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.019 (79.7th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 80th percentile — 79.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.019 · newest: 0.019 · change: 0.000
Affected products
- PostgreSQL — versions 14.0
- Fedoraproject Fedora — versions 34, 35
- Red Hat Enterprise Linux — versions 8.0
- Red Hat Enterprise Linux For IBM Z Systems — versions 8.0
- Red Hat Enterprise Linux For Power Little Endian — versions 8.0
- Red Hat Software Collections — versions 1.0
- PostgreSQL — versions Affects v9.6 to v14
Weakness classification (CWE)
Public proof-of-concept exploits
References
- bugzilla.redhat.com/show_bug.cgi (Patch, Third Party Advisory, Issue Tracking)
- www.postgresql.org/support/security/CVE-2021-23214/ (Vendor Advisory)
- git.postgresql.org/gitweb/
- github.com/postgres/postgres/commit/28e24125541545483093819efae9bca603441951 (Patch, Third Party Advisory)
- security.gentoo.org/glsa/202211-04 (vendor-advisory, Third Party Advisory)
Frequently asked questions
- What is CVE-2021-23214?
- CVE-2021-23214 is a high-severity vulnerability in PostgreSQL, classified under SQL Injection. CVSS score: 8.1/10. Published 2022-03-04.
- How severe is CVE-2021-23214?
- High severity. CVSS v3 base score is 8.1 out of 10.
- Is CVE-2021-23214 known to be exploited?
- 3 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.