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 a...
MediumCVSS 6.5
EPSS 1.4%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
32 packages: 26 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/postgresql(Alpine v3.11) | >= 12.0, < 12.8-r0 | 12.8-r0 | Fixed |
| alpine/postgresql(Alpine v3.12) | >= 12.0, < 12.8-r0 | 12.8-r0 | Fixed |
| alpine/postgresql(Alpine v3.13) | >= 13.0, < 13.4-r0 | 13.4-r0 | Fixed |
| alpine/postgresql(Alpine v3.14) | >= 13.0, < 13.4-r0 | 13.4-r0 | Fixed |
| alpine/postgresql12(Alpine v3.15) | < 12.8-r0 | 12.8-r0 | Fixed |
| alpine/postgresql12(Alpine v3.16) | < 12.8-r0 | 12.8-r0 | Fixed |
| alpine/postgresql12(Alpine v3.17) | < 12.8-r0 | 12.8-r0 | Fixed |
| alpine/postgresql12(Alpine v3.18) | < 12.8-r0 | 12.8-r0 | Fixed |
| alpine/postgresql13(Alpine v3.15) | < 13.4-r0 | 13.4-r0 | Fixed |
| alpine/postgresql13(Alpine v3.16) | < 13.4-r0 | 13.4-r0 | Fixed |
| alpine/postgresql13(Alpine v3.17) | < 13.4-r0 | 13.4-r0 | Fixed |
| alpine/postgresql13(Alpine v3.18) | < 13.4-r0 | 13.4-r0 | Fixed |
| alpine/postgresql13(Alpine v3.19) | < 13.4-r0 | 13.4-r0 | Fixed |
| alpine/postgresql14(Alpine v3.15) | < 13.4-r0 | 13.4-r0 | Fixed |
| alpine/postgresql14(Alpine v3.16) | < 13.4-r0 | 13.4-r0 | Fixed |
| alpine/postgresql14(Alpine v3.17) | < 13.4-r0 | 13.4-r0 | Fixed |
| alpine/postgresql14(Alpine v3.18) | < 13.4-r0 | 13.4-r0 | Fixed |
| alpine/postgresql14(Alpine v3.19) | < 13.4-r0 | 13.4-r0 | Fixed |
| alpine/postgresql14(Alpine v3.20) | < 13.4-r0 | 13.4-r0 | Fixed |
| alpine/postgresql15(Alpine v3.17) | < 13.4-r0 | 13.4-r0 | Fixed |
| alpine/postgresql15(Alpine v3.18) | < 13.4-r0 | 13.4-r0 | Fixed |
| alpine/postgresql15(Alpine v3.19) | < 13.4-r0 | 13.4-r0 | Fixed |
| alpine/postgresql15(Alpine v3.20) | < 13.4-r0 | 13.4-r0 | Fixed |
| debian/postgresql-13(Debian 11) | < 13.4-0+deb11u1; = 13.3-1 | 13.4-0+deb11u1 | Fixed |
| postgresql | >= 11.0, < 11.13; >= 12.0, < 12.8; >= 13.0, < 13.4 | 11.13, 12.8, 13.4 | Fixed |
| ubuntu/postgresql-12(Ubuntu 20.04) | < 12.8-0ubuntu0.20.04.1; = 12.0-1; = 12.1-1; = 12.1-2build1 +7 more | 12.8-0ubuntu0.20.04.1 | Fixed |
| fedoraproject fedora | = 34 | No fix listed | Versions listed |
| redhat enterprise linux | = 8.0 | No fix listed | Versions listed |
| redhat enterprise linux for ibm z systems | = 8.0 | No fix listed | Versions listed |
| redhat enterprise linux for power little endian | = 8.0 | No fix listed | Versions listed |
… and 2 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/postgresql-13(Debian:11) | < 13.4-0+deb11u1 | 13.4-0+deb11u1 |
| debian/postgresql-13(Debian:11) | = 13.3-1 | No fix listed |
| postgresql | >= 11.0, < 11.13 | 11.13 |
| postgresql | >= 12.0, < 12.8 | 12.8 |
| postgresql | >= 13.0, < 13.4 | 13.4 |
| redhat virtualization | = 4.0 | No fix listed |
| redhat enterprise linux | = 8.0 | No fix listed |
| redhat enterprise linux for ibm z systems | = 8.0 | No fix listed |
| redhat enterprise linux for power little endian | = 8.0 | No fix listed |
| redhat software collections | = 1.0 | No fix listed |
| fedoraproject fedora | = 34 | No fix listed |
| alpine/postgresql(Alpine:v3.11) | >= 12.0, < 12.8-r0 | 12.8-r0 |
| alpine/postgresql(Alpine:v3.12) | >= 12.0, < 12.8-r0 | 12.8-r0 |
| alpine/postgresql(Alpine:v3.13) | >= 13.0, < 13.4-r0 | 13.4-r0 |
| alpine/postgresql(Alpine:v3.14) | >= 13.0, < 13.4-r0 | 13.4-r0 |
| alpine/postgresql12(Alpine:v3.15) | < 12.8-r0 | 12.8-r0 |
| alpine/postgresql12(Alpine:v3.16) | < 12.8-r0 | 12.8-r0 |
| alpine/postgresql12(Alpine:v3.17) | < 12.8-r0 | 12.8-r0 |
| alpine/postgresql12(Alpine:v3.18) | < 12.8-r0 | 12.8-r0 |
| alpine/postgresql13(Alpine:v3.15) | < 13.4-r0 | 13.4-r0 |
| alpine/postgresql13(Alpine:v3.16) | < 13.4-r0 | 13.4-r0 |
| alpine/postgresql13(Alpine:v3.17) | < 13.4-r0 | 13.4-r0 |
| alpine/postgresql13(Alpine:v3.18) | < 13.4-r0 | 13.4-r0 |
| alpine/postgresql13(Alpine:v3.19) | < 13.4-r0 | 13.4-r0 |
| alpine/postgresql14(Alpine:v3.15) | < 13.4-r0 | 13.4-r0 |
Show 20 more
| Product | Affected versions | Fixed in |
|---|---|---|
| alpine/postgresql14(Alpine:v3.16) | < 13.4-r0 | 13.4-r0 |
| alpine/postgresql14(Alpine:v3.17) | < 13.4-r0 | 13.4-r0 |
| alpine/postgresql14(Alpine:v3.18) | < 13.4-r0 | 13.4-r0 |
| alpine/postgresql14(Alpine:v3.19) | < 13.4-r0 | 13.4-r0 |
| alpine/postgresql14(Alpine:v3.20) | < 13.4-r0 | 13.4-r0 |
| alpine/postgresql15(Alpine:v3.17) | < 13.4-r0 | 13.4-r0 |
| alpine/postgresql15(Alpine:v3.18) | < 13.4-r0 | 13.4-r0 |
| alpine/postgresql15(Alpine:v3.19) | < 13.4-r0 | 13.4-r0 |
| alpine/postgresql15(Alpine:v3.20) | < 13.4-r0 | 13.4-r0 |
| ubuntu/postgresql-12(Ubuntu:20.04) | < 12.8-0ubuntu0.20.04.1 | 12.8-0ubuntu0.20.04.1 |
| ubuntu/postgresql-12(Ubuntu:20.04) | = 12.0-1 | No fix listed |
| ubuntu/postgresql-12(Ubuntu:20.04) | = 12.1-1 | No fix listed |
| ubuntu/postgresql-12(Ubuntu:20.04) | = 12.1-2build1 | No fix listed |
| ubuntu/postgresql-12(Ubuntu:20.04) | = 12.2-1 | No fix listed |
| ubuntu/postgresql-12(Ubuntu:20.04) | = 12.2-1ubuntu2 | No fix listed |
| ubuntu/postgresql-12(Ubuntu:20.04) | = 12.2-4 | No fix listed |
| ubuntu/postgresql-12(Ubuntu:20.04) | = 12.4-0ubuntu0.20.04.1 | No fix listed |
| ubuntu/postgresql-12(Ubuntu:20.04) | = 12.5-0ubuntu0.20.04.1 | No fix listed |
| ubuntu/postgresql-12(Ubuntu:20.04) | = 12.6-0ubuntu0.20.04.1 | No fix listed |
| ubuntu/postgresql-12(Ubuntu:20.04) | = 12.7-0ubuntu0.20.04.1 | No fix listed |
References
- security-tracker.debian.org vendor-advisory
- bugzilla.redhat.com issue-tracking third-party-advisory
- GLSA-202211-04 third-party-advisory vendor-advisory
- security.netapp.com third-party-advisory
- www.postgresql.org vendor-advisory
- security.alpinelinux.org vendor-advisory
- ubuntu.com issue-tracking
- ubuntu.com vendor-advisory
- www.cve.org issue-tracking