CVE-2021-3677 json
A flaw was found in postgresql.
published 2022-03-02 4 y ago modified 2026-09-08 2 mo ago also BIT-postgresql-2021-3677 , EUVD-2021-26969 , JLSEC-2026-35
- cvss
- 6.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 73%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami postgresql 11.13.0, 12.8.0, 13.4.0
- julia LibPQ_jll 14.1.0+0
- postgresql postgresql 11.13, 12.8, 13.4
- postgresql-13 Debian 11 13.4-0+deb11u1
debian advisories DEBIAN-CVE-2021-3677
- postgresql-12 Ubuntu 20.04 LTS 12.8-0ubuntu0.20.04.1
ubuntu advisories UBUNTU-CVE-2021-3677
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- pgaudit RHEL 8 1.5.0-1.module+el8.4.0+8873+b821c30a
- pg_repack RHEL 8 1.4.6-3.module+el8.5.0+11357+bcc62552
- postgresql RHEL 8 13.5-1.module+el8.5.0+13344+8c0fd184
- postgresql-test RHEL 8 13.5-1.module+el8.5.0+13344+8c0fd184
- postgresql-pltcl RHEL 8 13.5-1.module+el8.5.0+13344+8c0fd184
- postgresql-plperl RHEL 8 13.5-1.module+el8.5.0+13344+8c0fd184
- postgresql-server RHEL 8 13.5-1.module+el8.5.0+13344+8c0fd184
- postgresql-contrib RHEL 8 13.5-1.module+el8.5.0+13344+8c0fd184
red hat advisories RHSA-2021:5236RHSA-2021:5235RHSA-2021:5179RHSA-2021:5197RHSA-2022:4931
- postgresql12 SLES for SAP 15 SP1, SLES 15 SP1-LTSS, SLES 15 SP1-BCL +3 more 12.12-150100.3.33.1
- postgresql12 SLE Module for Server Applications 15 SP2, SLE Module for Legacy 15 SP3, SLE Module for Basesystem 15 SP2 12.8-8.23.2
- postgresql13 SLE Module for Server Applications 15 SP3, SLE Module for Server Applications 15 SP2, SLE Module for Package Hub 15 SP3 +3 more 13.4-5.16.2
- postgresql13 SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 13.4-3.12.2
- postgresql12 SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 12.8-3.18.2
suse advisories SUSE-SU-2022:2958-1SUSE-SU-2021:3256-1SUSE-SU-2021:3255-1SUSE-SU-2021:3120-1SUSE-SU-2021:3119-1
- postgresql11 openSUSE Tumbleweed 11.13-1.3
- postgresql12 openSUSE Tumbleweed 12.8-1.3
- postgresql13 openSUSE Tumbleweed 13.4-1.3
- postgresql12 openSUSE Leap 15.3 12.8-8.23.2
- postgresql13 openSUSE Leap 15.3 13.4-5.16.2
opensuse advisories openSUSE-SU-2024:11185-1openSUSE-SU-2024:11186-1openSUSE-SU-2024:11187-1openSUSE-SU-2021:3256-1openSUSE-SU-2021:3255-1
- pgaudit AlmaLinux 8 1.5.0-1.module_el8.6.0+2760+1746ec94
- pgaudit AlmaLinux 8 1.5.0-1.module_el8.5.0+2607+8c0fd184
- pg_repack AlmaLinux 8 1.4.6-3.module_el8.6.0+2758+4f4474df
- pg_repack AlmaLinux 8 1.4.6-3.module_el8.6.0+2760+1746ec94
- pg_repack AlmaLinux 8 1.4.6-3.module_el8.5.0+2607+8c0fd184
- postgresql AlmaLinux 8 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-test AlmaLinux 8 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-pltcl AlmaLinux 8 13.5-1.module_el8.5.0+2607+8c0fd184
almalinux advisories ALSA-2021:5236ALSA-2021:5235
- pgaudit Rocky Linux 8 1.5.0-1.module+el8.5.0+684+c3892ef9
- pgaudit Rocky Linux 8 1.5.0-1.module+el8.4.0+546+3620623e
- pg_repack Rocky Linux 8 1.4.6-3.module+el8.5.0+684+c3892ef9
- postgresql Rocky Linux 8 13.5-1.module+el8.5.0+725+42e826de
- postgres-decoderbufs Rocky Linux 8 0.10.0-2.module+el8.5.0+684+c3892ef9
- postgres-decoderbufs Rocky Linux 8 0.10.0-2.module+el8.4.0+424+71d47d9a
- pgaudit Rocky Linux 8 1.4.0-5.module+el8.5.0+686+20453ecc
- postgresql Rocky Linux 8 12.9-1.module+el8.5.0+724+9de6e501
rocky linux advisories RLSA-2021:5236RLSA-2021:5235
- postgresql Alpine 3.12, Alpine 3.11 12.8-r0
- postgresql Alpine 3.14, Alpine 3.13 13.4-r0
- postgresql12 Alpine 3.18, Alpine 3.17, Alpine 3.16 +1 more 12.8-r0
- postgresql13 Alpine 3.19, Alpine 3.18, Alpine 3.17 +2 more 13.4-r0
- postgresql14 Alpine 3.20, Alpine 3.19, Alpine 3.18 +3 more 13.4-r0
- postgresql15 Alpine 3.20, Alpine 3.19, Alpine 3.18 +1 more 13.4-r0
alpine advisories ALPINE-CVE-2021-3677
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- postgresql CBL-Mariner 2.0 14.2-1
azure linux advisories AZL-8902
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- postgresql Arch Linux 13.4-1
arch linux advisories AVG-2290
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-3677 updated cvss 6.5
postgresql: memory disclosure in certain queries
-
Red Hat Enterprise Linux AppStream (v. 8) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 12.9-1.module+el8.5.0+13373+4554acc4, postgresql 13.5-1.module+el8.5.0+13344+8c0fd184, +18 morefixed: vendor fix RHSA-2021:5235
-
Red Hat Software Collections for RHEL Workstation(v. 7) rh-postgresql12-postgresql 12.9-1.el7, rh-postgresql13-postgresql 13.5-1.el7, rh-postgresql12-postgresql-libs 12.9-1.el7, rh-postgresql12-postgresql-test 12.9-1.el7, rh-postgresql13-postgresql-libs 13.5-1.el7, rh-postgresql13-postgresql-test 13.5-1.el7, +17 more Red Hat Software Collections for RHEL(v. 7) rh-postgresql12-postgresql 12.9-1.el7, rh-postgresql13-postgresql 13.5-1.el7, rh-postgresql12-postgresql-libs 12.9-1.el7, rh-postgresql12-postgresql-test 12.9-1.el7, rh-postgresql13-postgresql-libs 13.5-1.el7, rh-postgresql13-postgresql-test 13.5-1.el7, +17 morefixed: vendor fix RHSA-2021:5197
-
Red Hat Virtualization 4 Hypervisor for RHEL 8 rhvm-appliance 4.5-20220603.1.el8ev Red Hat Virtualization 4 Management Agent for RHEL 7 Hosts rhvm-appliance 4.5-20220603.1.el8evfixed: vendor fix RHSA-2022:4931
-
Red Hat build of Debezium 1 postgresql Red Hat build of Quarkus postgresql Red Hat Decision Manager 7 postgresql Red Hat Enterprise Linux 5 postgresql Red Hat Enterprise Linux 7 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +3 more Red Hat Enterprise Linux 8 libpq, pgaudit, pg_repack, postgresql, postgresql-test, postgresql-pltcl, +8 morenot affected: vulnerable code not present
+8 more productsfewer
Red Hat Enterprise Linux 9 postgresql, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, postgresql-contrib, +4 more Red Hat Fuse 7 postgresql Red Hat Integration Camel K 1 postgresql Red Hat Integration Camel Quarkus 1 postgresql Red Hat Integration Service Registry postgresql Red Hat JBoss Fuse 6 postgresql Red Hat Process Automation 7 postgresql Red Hat Software Collections rh-postgresql10-postgresql, rh-postgresql10-postgresql-libs, rh-postgresql10-postgresql-test, rh-postgresql10-postgresql-pltcl, rh-postgresql10-postgresql-plperl, rh-postgresql10-postgresql-server, +5 more
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.44% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 4.0 | AV:N/AC:L/Au:S/C:P/I:N/A:N |
| OSV | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | postgresql | >=11.0.0, <11.13.0 >=12.0.0, <12.8.0 >=13.0.0, <13.4.0 |
11.13.0 12.8.0 13.4.0 |
| julia | LibPQ_jll | <14.1.0+0 |
14.1.0+0 |
Affected products
- n/a postgresql
Classification
- Weakness
-
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
- Technology feeds
References
-
security.gentoo.org
/glsa/202211-04
vendor-advisory, third-party-advisory, advisory, web
-
postgresql.org
/support/security/CVE-2021-3677/
vendor-advisory, advisory, web
-
bugzilla.redhat.com
/show_bug.cgi?id=2001857
issue-tracking, third-party-advisory, advisory, web
-
security.netapp.com
/advisory/ntap-20220407-0008/
third-party-advisory, advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2021-3677
web
Sources
- CVE List CVE-2021-3677
- NVD CVE-2021-3677
- OSV BIT-postgresql-2021-3677
- OSV JLSEC-2026-35
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.