---
title: "CVE-2021-23214"
canonical_url: "https://pkgseek.com/security/CVE-2021-23214"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# 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.

CVE-2021-23214 is rated HIGH (8.1), with 38 indexed affected package builds across 3 distributions.

- **Severity / Score**: HIGH (8.1)
- **Affected builds**: 38
- **Affected distros**: 3
- **Distros with fixed_in**: Alibaba Cloud Linux, Oracle Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Alibaba Cloud Linux | 3 | postgresql | 13.3-1.1.al8 | 13.7-2.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-contrib | 13.3-1.1.al8 | 13.7-2.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-docs | 13.3-1.1.al8 | 13.7-2.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-plperl | 13.3-1.1.al8 | 13.7-2.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-plpython3 | 13.3-1.1.al8 | 13.7-2.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-pltcl | 13.3-1.1.al8 | 13.7-2.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-server | 13.3-1.1.al8 | 13.7-2.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-server-devel | 13.3-1.1.al8 | 13.7-2.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-static | 13.3-1.1.al8 | 13.7-2.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-test | 13.3-1.1.al8 | 13.7-2.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-test-rpm-macros | 13.3-1.1.al8 | 13.7-2.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-upgrade | 13.3-1.1.al8 | 13.7-2.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-upgrade-devel | 13.3-1.1.al8 | 13.7-2.0.1.al8 |
| Oracle Linux | 8 | pgaudit | 1.4.0-7.module+el8.10.0+90397+67dad74f | 1.5.0-1.module+el8.4.0+20016+06fd4df3 |
| Oracle Linux | 8 | pg_repack | 1.4.6-3.module+el8.5.0+20333+86306fc7 | 1.4.6-3.module+el8.5.0+20353+e924f9ed |
| Oracle Linux | 8 | postgres-decoderbufs | 0.10.0-2.module+el8.4.0+20191+2f8d0e59 | 0.10.0-2.module+el8.5.0+20333+86306fc7 |
| Oracle Linux | 8 | postgresql | 12.22-12.module+el8.10.0+91045+f9258fff | 13.5-1.module+el8.5.0+20464+55827c52 |
| Oracle Linux | 8 | postgresql-contrib | 12.22-12.module+el8.10.0+91045+f9258fff | 13.5-1.module+el8.5.0+20464+55827c52 |
| Oracle Linux | 8 | postgresql-docs | 12.22-12.module+el8.10.0+91045+f9258fff | 13.5-1.module+el8.5.0+20464+55827c52 |
| Oracle Linux | 8 | postgresql-plperl | 12.22-12.module+el8.10.0+91045+f9258fff | 13.5-1.module+el8.5.0+20464+55827c52 |
| Oracle Linux | 8 | postgresql-plpython3 | 12.22-12.module+el8.10.0+91045+f9258fff | 13.5-1.module+el8.5.0+20464+55827c52 |
| Oracle Linux | 8 | postgresql-pltcl | 12.22-12.module+el8.10.0+91045+f9258fff | 13.5-1.module+el8.5.0+20464+55827c52 |
| Oracle Linux | 8 | postgresql-server | 12.22-12.module+el8.10.0+91045+f9258fff | 13.5-1.module+el8.5.0+20464+55827c52 |
| Oracle Linux | 8 | postgresql-server-devel | 12.22-12.module+el8.10.0+91045+f9258fff | 13.5-1.module+el8.5.0+20464+55827c52 |
| Oracle Linux | 8 | postgresql-static | 12.22-12.module+el8.10.0+91045+f9258fff | 13.5-1.module+el8.5.0+20464+55827c52 |
| Oracle Linux | 8 | postgresql-test | 12.22-12.module+el8.10.0+91045+f9258fff | 13.5-1.module+el8.5.0+20464+55827c52 |
| Oracle Linux | 8 | postgresql-test-rpm-macros | 12.22-12.module+el8.10.0+91045+f9258fff | 13.5-1.module+el8.5.0+20464+55827c52 |
| Oracle Linux | 8 | postgresql-upgrade | 12.22-12.module+el8.10.0+91045+f9258fff | 13.5-1.module+el8.5.0+20464+55827c52 |
| Oracle Linux | 8 | postgresql-upgrade-devel | 12.22-12.module+el8.10.0+91045+f9258fff | 13.5-1.module+el8.5.0+20464+55827c52 |
| Ubuntu | focal | libecpg6 | 12.2-4 | 12.9-0ubuntu0.20.04.1 |
| Ubuntu | focal | libecpg-compat3 | 12.2-4 | 12.9-0ubuntu0.20.04.1 |
| Ubuntu | focal | libecpg-dev | 12.2-4 | 12.9-0ubuntu0.20.04.1 |
| Ubuntu | focal | libpgtypes3 | 12.2-4 | 12.9-0ubuntu0.20.04.1 |
| Ubuntu | focal | libpq5 | 12.2-4 | 12.9-0ubuntu0.20.04.1 |
| Ubuntu | focal | libpq-dev | 12.2-4 | 12.9-0ubuntu0.20.04.1 |
| Ubuntu | focal | postgresql-12 | 12.2-4 | 12.9-0ubuntu0.20.04.1 |
| Ubuntu | focal | postgresql-client-12 | 12.2-4 | 12.9-0ubuntu0.20.04.1 |
| Ubuntu | focal | postgresql-doc-12 | 12.2-4 | 12.9-0ubuntu0.20.04.1 |
