Vulnerability · Published Jun 1, 2021 · Assigned by redhat
CVE-2021-32027
High 8.8
In plain English
A high-severity integer overflow in postgresql. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.0% (higher than 81% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A flaw was found in postgresql in versions before 13.3, before 12.7, before 11.12, before 10.17 and before 9.6.22. While modifying certain SQL array values, missing bounds checks let authenticated database users write arbitrary bytes to a wide area of server memory. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | pgaudit | 1.5.0-1.module_el8.6.0+2760+1746ec94 | ALSA-2021:2375 |
| AlmaLinux:8 | pgaudit | 1.5.0-1.module_el8.5.0+2607+8c0fd184 | ALSA-2021:2375 |
| AlmaLinux:8 | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+2760+1746ec94 | ALSA-2021:2372 |
| AlmaLinux:8 | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+2758+4f4474df | ALSA-2021:2375 |
| AlmaLinux:8 | postgres-decoderbufs | 0.10.0-2.module_el8.5.0+2607+8c0fd184 | ALSA-2021:2375 |
| AlmaLinux:8 | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+2760+1746ec94 | ALSA-2021:2375 |
| AlmaLinux:8 | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+2758+4f4474df | ALSA-2021:2372 |
| AlmaLinux:8 | postgresql | 9.6.22-1.module_el8.4.0+2479+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql | 9.6.22-1.module_el8.4.0+2492+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql | 9.6.22-1.module_el8.5.0+58+52470387 | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-contrib | 9.6.22-1.module_el8.4.0+2479+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-contrib | 9.6.22-1.module_el8.4.0+2492+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-contrib | 9.6.22-1.module_el8.5.0+58+52470387 | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-docs | 9.6.22-1.module_el8.4.0+2479+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-docs | 9.6.22-1.module_el8.5.0+58+52470387 | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-docs | 9.6.22-1.module_el8.4.0+2492+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-plperl | 9.6.22-1.module_el8.4.0+2479+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-plperl | 9.6.22-1.module_el8.5.0+58+52470387 | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-plperl | 9.6.22-1.module_el8.4.0+2492+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-plpython3 | 9.6.22-1.module_el8.5.0+58+52470387 | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-plpython3 | 9.6.22-1.module_el8.4.0+2479+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-plpython3 | 9.6.22-1.module_el8.4.0+2492+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-pltcl | 9.6.22-1.module_el8.4.0+2479+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-pltcl | 9.6.22-1.module_el8.4.0+2492+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-pltcl | 9.6.22-1.module_el8.5.0+58+52470387 | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-server | 9.6.22-1.module_el8.4.0+2492+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-server | 9.6.22-1.module_el8.5.0+58+52470387 | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-server | 9.6.22-1.module_el8.4.0+2479+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-server-devel | 9.6.22-1.module_el8.4.0+2492+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-server-devel | 9.6.22-1.module_el8.4.0+2479+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-server-devel | 9.6.22-1.module_el8.5.0+58+52470387 | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-static | 9.6.22-1.module_el8.4.0+2492+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-static | 9.6.22-1.module_el8.5.0+58+52470387 | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-static | 9.6.22-1.module_el8.4.0+2479+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-test | 9.6.22-1.module_el8.5.0+58+52470387 | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-test | 9.6.22-1.module_el8.4.0+2492+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-test | 9.6.22-1.module_el8.4.0+2479+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-test-rpm-macros | 9.6.22-1.module_el8.5.0+58+52470387 | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-test-rpm-macros | 9.6.22-1.module_el8.4.0+2492+beebcf7e | ALSA-2021:2360 |
| AlmaLinux:8 | postgresql-test-rpm-macros | 9.6.22-1.module_el8.4.0+2479+beebcf7e | ALSA-2021:2360 |
| Alpine:v3.20 | postgresql14 | 13.3-r0 | ALPINE-CVE-2021-32027 |
| Alpine:v3.20 | postgresql15 | 13.3-r0 | ALPINE-CVE-2021-32027 |
| Rocky Linux:8 | pgaudit | 0:1.4.0-6.module+el8.4.0+587+d46efd10 | RLSA-2021:2372 |
| Rocky Linux:8 | pgaudit | 0:1.5.0-1.module+el8.5.0+684+c3892ef9 | RLSA-2021:2375 |
| Rocky Linux:8 | pgaudit | 0:1.5.0-1.module+el8.4.0+546+3620623e | RLSA-2021:2375 |
| Rocky Linux:8 | postgres-decoderbufs | 0:0.10.0-2.module+el8.5.0+684+c3892ef9 | RLSA-2021:2375 |
| Rocky Linux:8 | postgres-decoderbufs | 0:0.10.0-2.module+el8.4.0+424+71d47d9a | RLSA-2021:2372 |
| Rocky Linux:8 | postgres-decoderbufs | 0:0.10.0-2.module+el8.4.0+424+71d47d9a | RLSA-2021:2375 |
| Rocky Linux:8 | postgres-decoderbufs | 0:0.10.0-2.module+el8.5.0+684+c3892ef9 | RLSA-2021:2372 |
| Rocky Linux:8 | postgresql | 0:9.6.22-1.module+el8.5.0+687+7cd82e08 | RLSA-2021:2360 |
| Rocky Linux:8 | postgresql | 0:12.7-1.module+el8.4.0+545+ca56da2e | RLSA-2021:2372 |
| Rocky Linux:8 | postgresql | 0:13.3-1.module+el8.4.0+546+3620623e | RLSA-2021:2375 |
| Rocky Linux:8 | postgresql | 0:9.6.22-1.module+el8.4.0+547+51cac6db | RLSA-2021:2360 |
| Rocky Linux:8 | postgresql | 0:10.17-1.module+el8.4.0+548+9eccbe3f | RLSA-2021:2361 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | postgresql | postgresql 13.3, postgresql 12.7, postgresql 11.12, postgresql 10.17, postgresql 9.6.22 |
Weakness: CWE-190