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

# CVE-2021-3677

A flaw was found in postgresql. A purpose-crafted query can read arbitrary bytes of server memory. In the default configuration, any authenticated database user can complete this attack at will. The attack does not require the ability to create objects. If server settings include max_worker_processes=0, the known versions of this attack are infeasible. However, undiscovered variants of the attack may be independent of that setting.

CVE-2021-3677 is rated MEDIUM (6.5), with 38 indexed affected package builds across 3 distributions.

- **Severity / Score**: MEDIUM (6.5)
- **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.8-0ubuntu0.20.04.1 |
| Ubuntu | focal | libecpg-compat3 | 12.2-4 | 12.8-0ubuntu0.20.04.1 |
| Ubuntu | focal | libecpg-dev | 12.2-4 | 12.8-0ubuntu0.20.04.1 |
| Ubuntu | focal | libpgtypes3 | 12.2-4 | 12.8-0ubuntu0.20.04.1 |
| Ubuntu | focal | libpq5 | 12.2-4 | 12.8-0ubuntu0.20.04.1 |
| Ubuntu | focal | libpq-dev | 12.2-4 | 12.8-0ubuntu0.20.04.1 |
| Ubuntu | focal | postgresql-12 | 12.2-4 | 12.8-0ubuntu0.20.04.1 |
| Ubuntu | focal | postgresql-client-12 | 12.2-4 | 12.8-0ubuntu0.20.04.1 |
| Ubuntu | focal | postgresql-doc-12 | 12.2-4 | 12.8-0ubuntu0.20.04.1 |
