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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | pg_repack | 1.4.6-3.module_el8.5.0+2607+8c0fd184 | ALSA-2021:5236 |
| AlmaLinux:8 | pg_repack | 1.4.6-3.module_el8.6.0+2760+1746ec94 | ALSA-2021:5236 |
| AlmaLinux:8 | pg_repack | 1.4.6-3.module_el8.6.0+2758+4f4474df | ALSA-2021:5236 |
| AlmaLinux:8 | pg_repack | 1.4.6-3.module_el8.6.0+2758+4f4474df | ALSA-2021:5235 |
| AlmaLinux:8 | pg_repack | 1.4.6-3.module_el8.5.0+2606+4554acc4 | ALSA-2021:5235 |
| AlmaLinux:8 | pg_repack | 1.4.6-3.module_el8.6.0+2760+1746ec94 | ALSA-2021:5235 |
| AlmaLinux:8 | pgaudit | 1.5.0-1.module_el8.5.0+2607+8c0fd184 | ALSA-2021:5236 |
| AlmaLinux:8 | pgaudit | 1.4.0-5.module_el8.6.0+2758+4f4474df | ALSA-2021:5235 |
| AlmaLinux:8 | pgaudit | 1.4.0-5.module_el8.5.0+2606+4554acc4 | ALSA-2021:5235 |
| AlmaLinux:8 | pgaudit | 1.5.0-1.module_el8.6.0+2760+1746ec94 | ALSA-2021:5236 |
| AlmaLinux:8 | postgres-decoderbufs | 0.10.0-2.module_el8.5.0+2606+4554acc4 | ALSA-2021:5235 |
| AlmaLinux:8 | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+2760+1746ec94 | ALSA-2021:5235 |
| AlmaLinux:8 | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+2758+4f4474df | ALSA-2021:5235 |
| AlmaLinux:8 | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+2760+1746ec94 | ALSA-2021:5236 |
| AlmaLinux:8 | postgres-decoderbufs | 0.10.0-2.module_el8.5.0+2607+8c0fd184 | ALSA-2021:5236 |
| AlmaLinux:8 | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+2758+4f4474df | ALSA-2021:5236 |
| AlmaLinux:8 | postgresql | 12.9-1.module_el8.5.0+2606+4554acc4 | ALSA-2021:5235 |
| AlmaLinux:8 | postgresql | 13.5-1.module_el8.5.0+2607+8c0fd184 | ALSA-2021:5236 |
| AlmaLinux:8 | postgresql-contrib | 13.5-1.module_el8.5.0+2607+8c0fd184 | ALSA-2021:5236 |
| AlmaLinux:8 | postgresql-contrib | 12.9-1.module_el8.5.0+2606+4554acc4 | ALSA-2021:5235 |
| AlmaLinux:8 | postgresql-docs | 12.9-1.module_el8.5.0+2606+4554acc4 | ALSA-2021:5235 |
| AlmaLinux:8 | postgresql-docs | 13.5-1.module_el8.5.0+2607+8c0fd184 | ALSA-2021:5236 |
| AlmaLinux:8 | postgresql-plperl | 13.5-1.module_el8.5.0+2607+8c0fd184 | ALSA-2021:5236 |
| AlmaLinux:8 | postgresql-plperl | 12.9-1.module_el8.5.0+2606+4554acc4 | ALSA-2021:5235 |
| AlmaLinux:8 | postgresql-plpython3 | 13.5-1.module_el8.5.0+2607+8c0fd184 | ALSA-2021:5236 |
| AlmaLinux:8 | postgresql-plpython3 | 12.9-1.module_el8.5.0+2606+4554acc4 | ALSA-2021:5235 |
| AlmaLinux:8 | postgresql-pltcl | 13.5-1.module_el8.5.0+2607+8c0fd184 | ALSA-2021:5236 |
| AlmaLinux:8 | postgresql-pltcl | 12.9-1.module_el8.5.0+2606+4554acc4 | ALSA-2021:5235 |
| AlmaLinux:8 | postgresql-server | 12.9-1.module_el8.5.0+2606+4554acc4 | ALSA-2021:5235 |
| AlmaLinux:8 | postgresql-server | 13.5-1.module_el8.5.0+2607+8c0fd184 | ALSA-2021:5236 |
| AlmaLinux:8 | postgresql-server-devel | 12.9-1.module_el8.5.0+2606+4554acc4 | ALSA-2021:5235 |
| AlmaLinux:8 | postgresql-server-devel | 13.5-1.module_el8.5.0+2607+8c0fd184 | ALSA-2021:5236 |
| AlmaLinux:8 | postgresql-static | 12.9-1.module_el8.5.0+2606+4554acc4 | ALSA-2021:5235 |
| AlmaLinux:8 | postgresql-static | 13.5-1.module_el8.5.0+2607+8c0fd184 | ALSA-2021:5236 |
| AlmaLinux:8 | postgresql-test | 12.9-1.module_el8.5.0+2606+4554acc4 | ALSA-2021:5235 |
| AlmaLinux:8 | postgresql-test | 13.5-1.module_el8.5.0+2607+8c0fd184 | ALSA-2021:5236 |
| AlmaLinux:8 | postgresql-test-rpm-macros | 13.5-1.module_el8.5.0+2607+8c0fd184 | ALSA-2021:5236 |
| AlmaLinux:8 | postgresql-test-rpm-macros | 12.9-1.module_el8.5.0+2606+4554acc4 | ALSA-2021:5235 |
| AlmaLinux:8 | postgresql-upgrade | 12.9-1.module_el8.5.0+2606+4554acc4 | ALSA-2021:5235 |
| AlmaLinux:8 | postgresql-upgrade | 13.5-1.module_el8.5.0+2607+8c0fd184 | ALSA-2021:5236 |
| AlmaLinux:8 | postgresql-upgrade-devel | 12.9-1.module_el8.5.0+2606+4554acc4 | ALSA-2021:5235 |
| AlmaLinux:8 | postgresql-upgrade-devel | 13.5-1.module_el8.5.0+2607+8c0fd184 | ALSA-2021:5236 |
| Alpine:v3.20 | postgresql14 | 13.4-r0 | ALPINE-CVE-2021-3677 |
| Alpine:v3.20 | postgresql15 | 13.4-r0 | ALPINE-CVE-2021-3677 |
| Rocky Linux:8 | pg_repack | 0:1.4.6-3.module+el8.5.0+684+c3892ef9 | RLSA-2021:5236 |
| Rocky Linux:8 | pg_repack | 0:1.4.6-3.module+el8.5.0+684+c3892ef9 | RLSA-2021:5235 |
| Rocky Linux:8 | pgaudit | 0:1.4.0-5.module+el8.5.0+686+20453ecc | RLSA-2021:5235 |
| Rocky Linux:8 | pgaudit | 0:1.5.0-1.module+el8.5.0+684+c3892ef9 | RLSA-2021:5236 |
| Rocky Linux:8 | pgaudit | 0:1.5.0-1.module+el8.4.0+546+3620623e | RLSA-2021:5236 |
| Rocky Linux:8 | postgres-decoderbufs | 0:0.10.0-2.module+el8.5.0+684+c3892ef9 | RLSA-2021:5235 |
| Rocky Linux:8 | postgres-decoderbufs | 0:0.10.0-2.module+el8.4.0+424+71d47d9a | RLSA-2021:5235 |
| Rocky Linux:8 | postgres-decoderbufs | 0:0.10.0-2.module+el8.5.0+684+c3892ef9 | RLSA-2021:5236 |
| Rocky Linux:8 | postgres-decoderbufs | 0:0.10.0-2.module+el8.4.0+424+71d47d9a | RLSA-2021:5236 |
| Rocky Linux:8 | postgresql | 0:12.9-1.module+el8.5.0+724+9de6e501 | RLSA-2021:5235 |
| Rocky Linux:8 | postgresql | 0:13.5-1.module+el8.5.0+725+42e826de | RLSA-2021:5236 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | postgresql | Fixedin v13.4, v12.8, v11.13 |
Weakness: CWE-200