Vulnerability · Published Mar 2, 2022 · Assigned by redhat

CVE-2021-3677

Medium 6.5

In plain English

A medium-severity information exposure in postgresql. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)6.5Medium
Exploit odds (30 days)1.4%top 26.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8pg_repack1.4.6-3.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8pg_repack1.4.6-3.module_el8.6.0+2760+1746ec94ALSA-2021:5236
AlmaLinux:8pg_repack1.4.6-3.module_el8.6.0+2758+4f4474dfALSA-2021:5236
AlmaLinux:8pg_repack1.4.6-3.module_el8.6.0+2758+4f4474dfALSA-2021:5235
AlmaLinux:8pg_repack1.4.6-3.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8pg_repack1.4.6-3.module_el8.6.0+2760+1746ec94ALSA-2021:5235
AlmaLinux:8pgaudit1.5.0-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8pgaudit1.4.0-5.module_el8.6.0+2758+4f4474dfALSA-2021:5235
AlmaLinux:8pgaudit1.4.0-5.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8pgaudit1.5.0-1.module_el8.6.0+2760+1746ec94ALSA-2021:5236
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.6.0+2760+1746ec94ALSA-2021:5235
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.6.0+2758+4f4474dfALSA-2021:5235
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.6.0+2760+1746ec94ALSA-2021:5236
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.6.0+2758+4f4474dfALSA-2021:5236
AlmaLinux:8postgresql12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-contrib13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-contrib12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-docs12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-docs13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-plperl13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-plperl12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-plpython313.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-plpython312.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-pltcl13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-pltcl12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-server12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-server13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-server-devel12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-server-devel13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-static12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-static13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-test12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-test13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-test-rpm-macros13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-test-rpm-macros12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-upgrade12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-upgrade13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-upgrade-devel12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-upgrade-devel13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
Alpine:v3.20postgresql1413.4-r0ALPINE-CVE-2021-3677
Alpine:v3.20postgresql1513.4-r0ALPINE-CVE-2021-3677
Rocky Linux:8pg_repack0:1.4.6-3.module+el8.5.0+684+c3892ef9RLSA-2021:5236
Rocky Linux:8pg_repack0:1.4.6-3.module+el8.5.0+684+c3892ef9RLSA-2021:5235
Rocky Linux:8pgaudit0:1.4.0-5.module+el8.5.0+686+20453eccRLSA-2021:5235
Rocky Linux:8pgaudit0:1.5.0-1.module+el8.5.0+684+c3892ef9RLSA-2021:5236
Rocky Linux:8pgaudit0:1.5.0-1.module+el8.4.0+546+3620623eRLSA-2021:5236
Rocky Linux:8postgres-decoderbufs0:0.10.0-2.module+el8.5.0+684+c3892ef9RLSA-2021:5235
Rocky Linux:8postgres-decoderbufs0:0.10.0-2.module+el8.4.0+424+71d47d9aRLSA-2021:5235
Rocky Linux:8postgres-decoderbufs0:0.10.0-2.module+el8.5.0+684+c3892ef9RLSA-2021:5236
Rocky Linux:8postgres-decoderbufs0:0.10.0-2.module+el8.4.0+424+71d47d9aRLSA-2021:5236
Rocky Linux:8postgresql0:12.9-1.module+el8.5.0+724+9de6e501RLSA-2021:5235
Rocky Linux:8postgresql0:13.5-1.module+el8.5.0+725+42e826deRLSA-2021:5236

Affected products (as reported)

VendorProductVersions
n/a postgresql Fixedin v13.4, v12.8, v11.13

Weakness: CWE-200

References