CVE-2021-3677: Infoleak

Published Sep 7, 2021
·
Updated

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 maxworkerprocesses=0, the known versions of this attack are infeasible. However, undiscovered variants of the attack may be independent of that setting.

Affected Software

31 affected componentsFixes available
PostgreSQL postgresql>=11.0<11.13
PostgreSQL postgresql>=12.0<12.8
PostgreSQL postgresql>=13.0<13.4
redhat Virtualization=4.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux For Ibm Z Systems=8.0
redhat Enterprise Linux For Power Little Endian=8.0
redhat Software Collections=1.0
redhat Enterprise Linux=7.0
Fedoraproject Fedora=34
redhat/postgresql<13.4
13.4
redhat/postgresql<12.8
12.8
redhat/postgresql<11.13
11.13
alpine/postgresql>=11.0<12.8-r0
12.8-r0
alpine/postgresql>=11.0<12.8-r0
12.8-r0
alpine/postgresql>=11.0<13.4-r0
13.4-r0
alpine/postgresql>=11.0<13.4-r0
13.4-r0
alpine/postgresql12<12.8-r0
12.8-r0
alpine/postgresql12<12.8-r0
12.8-r0
alpine/postgresql12<12.8-r0
12.8-r0
alpine/postgresql12<12.8-r0
12.8-r0
alpine/postgresql13<13.4-r0
13.4-r0
alpine/postgresql13<13.4-r0
13.4-r0
alpine/postgresql13<13.4-r0
13.4-r0
alpine/postgresql13<13.4-r0
13.4-r0
alpine/postgresql13<13.4-r0
13.4-r0
alpine/postgresql14<13.4-r0
13.4-r0
alpine/postgresql15<13.4-r0
13.4-r0
alpine/postgresql15<13.4-r0
13.4-r0
alpine/postgresql15<13.4-r0
13.4-r0
alpine/postgresql15<13.4-r0
13.4-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/postgresql to a version that resolves this vulnerability.

    Fixed in 13.4
  2. Upgrade

    Upgrade redhat/postgresql to a version that resolves this vulnerability.

    Fixed in 12.8
  3. Upgrade

    Upgrade redhat/postgresql to a version that resolves this vulnerability.

    Fixed in 11.13
  4. Upgrade

    Upgrade alpine/postgresql to a version that resolves this vulnerability.

    Fixed in 12.8-r0
  5. Upgrade

    Upgrade alpine/postgresql to a version that resolves this vulnerability.

    Fixed in 13.4-r0
  6. Upgrade

    Upgrade alpine/postgresql12 to a version that resolves this vulnerability.

    Fixed in 12.8-r0
  7. Upgrade

    Upgrade alpine/postgresql13 to a version that resolves this vulnerability.

    Fixed in 13.4-r0
  8. Upgrade

    Upgrade alpine/postgresql14 to a version that resolves this vulnerability.

    Fixed in 13.4-r0
  9. Upgrade

    Upgrade alpine/postgresql15 to a version that resolves this vulnerability.

    Fixed in 13.4-r0
  10. Configuration

    Set max_worker_processes=0 to make the known versions of this attack infeasible.

    PostgreSQL max_worker_processes = 0

Event History

Sep 7, 2021
Data Sourced
via Red Hat·11:03 AM
DescriptionSeverityAffected Software
Mar 2, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via OSV·11:15 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2021-3677?

CVE-2021-3677 is a vulnerability found in postgresql that allows an authenticated database user to read arbitrary bytes of server memory.

2

How severe is CVE-2021-3677?

CVE-2021-3677 has a severity score of 6.5, which is considered medium.

3

Who is affected by CVE-2021-3677?

Postgresql versions 11.0 to 11.13, 12.0 to 12.8, and 13.0 to 13.4 are affected by CVE-2021-3677.

4

How can I fix CVE-2021-3677?

To fix CVE-2021-3677, it is recommended to update to a patched version of postgresql (11.13, 12.8, or 13.4).

5

Where can I find more information about CVE-2021-3677?

You can find more information about CVE-2021-3677 on the following references: [Red Hat Bugzilla](https://bugzilla.redhat.com/show_bug.cgi?id=2001857), [Gentoo GLSA](https://security.gentoo.org/glsa/202211-04), and [NetApp Security Advisory](https://security.netapp.com/advisory/ntap-20220407-0008/).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203