Skip to content
Noroxi
NVD / CVE Program· CNA redhat

CVE-2021-3677: A flaw was found in postgresql.

Noroxi assessment

Priority: Monitor (action score 26/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 1.4% (FIRST EPSS); higher than 73.2% of all records.
  • Anyone who can reach it over the internet can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: pg_repack (AlmaLinux:8) 1.4.6-3.module_el8.6.0+2760+1746ec94, 1.4.6-3.module_el8.6.0+2758+4f4474df, 1.4.6-3.module_el8.5.0+2606+4554acc4; pgaudit (AlmaLinux:8) 1.5.0-1.module_el8.5.0+2607+8c0fd184, 1.4.0-5.module_el8.5.0+2606+4554acc4, 1.4.0-5.module_el8.6.0+2758+4f4474df; postgres-decoderbufs (AlmaLinux:8) 0.10.0-2.module_el8.5.0+2607+8c0fd184, 0.10.0-2.module_el8.6.0+2758+4f4474df, 0.10.0-2.module_el8.6.0+2760+1746ec94.
  • Mentioned 3 times in Turkish national cyber security advisories (siberguvenlik.gov.tr).

Low priority for now. Upgrade to pg_repack (AlmaLinux:8) 1.4.6-3.module_el8.6.0+2760+1746ec94, 1.4.6-3.module_el8.6.0+2758+4f4474df, 1.4.6-3.module_el8.5.0+2606+4554acc4; pgaudit (AlmaLinux:8) 1.5.0-1.module_el8.5.0+2607+8c0fd184, 1.4.0-5.module_el8.5.0+2606+4554acc4, 1.4.0-5.module_el8.6.0+2758+4f4474df; postgres-decoderbufs (AlmaLinux:8) 0.10.0-2.module_el8.5.0+2607+8c0fd184, 0.10.0-2.module_el8.6.0+2758+4f4474df, 0.10.0-2.module_el8.6.0+2760+1746ec94 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

MediumCVSS 6.5 · v3.1—No exploit Fix available
Published
Mar 2, 2022
Updated
Jun 17, 2026
EPSS
1.4% · 73th percentile

Report tools

JSON

Action score

26

Monitor

Low priority for now.

CVSS
26 / 40 · 6.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 1.4%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2021-3677

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits instantly.

Your free account also gets you

Running WordPress? Scan your site free with WP Lens

  • Stack alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Running WordPress? Scan your site free with WP Lens

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
postgresqlpostgresql
redhatvirtualization
redhatenterprise linux
redhatenterprise linux for ibm z systems
redhatenterprise linux for power little endian
redhatsoftware collections
fedoraprojectfedora

Using postgresql? Add it to your stack and be the first to know about CVEs like this one. (PostgreSQL)

Watch new CVEs for postgresql

When you'll hear from us

  • when a new CVE affecting this product is published
  • when a record in your stack enters KEV or gets exploit code

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits instantly.

Your free account also gets you

Running WordPress? Scan your site free with WP Lens

  • Stack alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Is PostgreSQL on your server exposed to the internet?

The free port scanner finds the open ports on your server and matches the service versions it can read against known vulnerabilities. No account needed.

Run a port scan

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • postgresql postgresql11.0 and later · before 11.13
  • postgresql postgresql12.0 and later · before 12.8
  • postgresql postgresql13.0 and later · before 13.4

Versions reported by the vendor

Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.

  • n/a postgresql

    • Fixedin v13.4, v12.8, v11.13affected

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8pg_repackbefore 1.4.6-3.module_el8.6.0+2760+1746ec941.4.6-3.module_el8.6.0+2760+1746ec94
AlmaLinux:8pg_repackbefore 1.4.6-3.module_el8.6.0+2758+4f4474df1.4.6-3.module_el8.6.0+2758+4f4474df
AlmaLinux:8pg_repackbefore 1.4.6-3.module_el8.5.0+2606+4554acc41.4.6-3.module_el8.5.0+2606+4554acc4
AlmaLinux:8pg_repackbefore 1.4.6-3.module_el8.5.0+2607+8c0fd1841.4.6-3.module_el8.5.0+2607+8c0fd184
AlmaLinux:8pgauditbefore 1.5.0-1.module_el8.5.0+2607+8c0fd1841.5.0-1.module_el8.5.0+2607+8c0fd184
AlmaLinux:8pgauditbefore 1.4.0-5.module_el8.5.0+2606+4554acc41.4.0-5.module_el8.5.0+2606+4554acc4
AlmaLinux:8pgauditbefore 1.4.0-5.module_el8.6.0+2758+4f4474df1.4.0-5.module_el8.6.0+2758+4f4474df
AlmaLinux:8pgauditbefore 1.5.0-1.module_el8.6.0+2760+1746ec941.5.0-1.module_el8.6.0+2760+1746ec94
AlmaLinux:8postgres-decoderbufsbefore 0.10.0-2.module_el8.5.0+2607+8c0fd1840.10.0-2.module_el8.5.0+2607+8c0fd184
AlmaLinux:8postgres-decoderbufsbefore 0.10.0-2.module_el8.6.0+2758+4f4474df0.10.0-2.module_el8.6.0+2758+4f4474df
AlmaLinux:8postgres-decoderbufsbefore 0.10.0-2.module_el8.6.0+2760+1746ec940.10.0-2.module_el8.6.0+2760+1746ec94
AlmaLinux:8postgres-decoderbufsbefore 0.10.0-2.module_el8.5.0+2606+4554acc40.10.0-2.module_el8.5.0+2606+4554acc4
AlmaLinux:8postgresqlbefore 13.5-1.module_el8.5.0+2607+8c0fd18413.5-1.module_el8.5.0+2607+8c0fd184
AlmaLinux:8postgresqlbefore 12.9-1.module_el8.5.0+2606+4554acc412.9-1.module_el8.5.0+2606+4554acc4
AlmaLinux:8postgresql-contribbefore 12.9-1.module_el8.5.0+2606+4554acc412.9-1.module_el8.5.0+2606+4554acc4
AlmaLinux:8postgresql-contribbefore 13.5-1.module_el8.5.0+2607+8c0fd18413.5-1.module_el8.5.0+2607+8c0fd184
AlmaLinux:8postgresql-docsbefore 13.5-1.module_el8.5.0+2607+8c0fd18413.5-1.module_el8.5.0+2607+8c0fd184
AlmaLinux:8postgresql-docsbefore 12.9-1.module_el8.5.0+2606+4554acc412.9-1.module_el8.5.0+2606+4554acc4
AlmaLinux:8postgresql-plperlbefore 13.5-1.module_el8.5.0+2607+8c0fd18413.5-1.module_el8.5.0+2607+8c0fd184
AlmaLinux:8postgresql-plperlbefore 12.9-1.module_el8.5.0+2606+4554acc412.9-1.module_el8.5.0+2606+4554acc4
AlmaLinux:8postgresql-plpython3before 12.9-1.module_el8.5.0+2606+4554acc412.9-1.module_el8.5.0+2606+4554acc4
AlmaLinux:8postgresql-plpython3before 13.5-1.module_el8.5.0+2607+8c0fd18413.5-1.module_el8.5.0+2607+8c0fd184
AlmaLinux:8postgresql-pltclbefore 13.5-1.module_el8.5.0+2607+8c0fd18413.5-1.module_el8.5.0+2607+8c0fd184
AlmaLinux:8postgresql-pltclbefore 12.9-1.module_el8.5.0+2606+4554acc412.9-1.module_el8.5.0+2606+4554acc4

+96

Other highest-scoring records for the same primary product.

  • CVE-2017-7546PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allowing remote attackers
    57Plan
  • CVE-2019-9193In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_server_program' group to
    55Plan
  • CVE-2020-25695A flaw was found in PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24.
    49Plan

Published before and after this one in the same product

  • ← EarlierCVE-2021-32028Oct 11, 2021 · A flaw was found in postgresql.
    26Monitor
  • ← EarlierCVE-2021-23222Mar 2, 2022 · A man-in-the-middle attacker can inject false responses to the client's first few queries, despite the use of SSL certificate verification a
    23Monitor
  • Later →CVE-2021-23214Mar 4, 2022 · When the server is configured to use trust authentication with a clientcert requirement or to use cert authentication, a man-in-the-middle a
    33Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:pg_repack1.4.6-3.module_el8.5.0+2606+4554acc4 · AlmaLinux:8Package registry (OSV)
almalinux:pgaudit1.4.0-5.module_el8.6.0+2758+4f4474df · AlmaLinux:8Package registry (OSV)
almalinux:postgres-decoderbufs0.10.0-2.module_el8.6.0+2760+1746ec94 · AlmaLinux:8Package registry (OSV)
almalinux:postgresql12.9-1.module_el8.5.0+2606+4554acc4 · AlmaLinux:8Package registry (OSV)
almalinux:postgresql-contrib12.9-1.module_el8.5.0+2606+4554acc4 · AlmaLinux:8Package registry (OSV)
almalinux:postgresql-docs12.9-1.module_el8.5.0+2606+4554acc4 · AlmaLinux:8Package registry (OSV)
almalinux:postgresql-plperl12.9-1.module_el8.5.0+2606+4554acc4 · AlmaLinux:8Package registry (OSV)
almalinux:postgresql-plpython312.9-1.module_el8.5.0+2606+4554acc4 · AlmaLinux:8Package registry (OSV)
almalinux:postgresql-pltcl12.9-1.module_el8.5.0+2606+4554acc4 · AlmaLinux:8Package registry (OSV)
almalinux:postgresql-server12.9-1.module_el8.5.0+2606+4554acc4 · AlmaLinux:8Package registry (OSV)
almalinux:postgresql-server-devel12.9-1.module_el8.5.0+2606+4554acc4 · AlmaLinux:8Package registry (OSV)
almalinux:postgresql-static12.9-1.module_el8.5.0+2606+4554acc4 · AlmaLinux:8Package registry (OSV)
alpine:postgresql12.8-r0 · Alpine:v3.11Package registry (OSV)
alpine:postgresql1313.4-r0 · Alpine:v3.15Package registry (OSV)
alpine:postgresql1413.4-r0 · Alpine:v3.15Package registry (OSV)
alpine:postgresql1513.4-r0 · Alpine:v3.17Package registry (OSV)
debian:postgresql-1313.4-0+deb11u1 · Debian:11Package registry (OSV)
opensuse:postgresql1111.13-1.3 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:postgresql1212.8-8.23.2 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:postgresql1313.4-5.16.2 · openSUSE:Leap 15.3Package registry (OSV)
red hat:rh-postgresql13-postgresql0:13.5-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-postgresql13-postgresql-contrib0:13.5-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-postgresql13-postgresql-contrib-syspaths0:13.5-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-postgresql13-postgresql-debuginfo0:13.5-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-postgresql13-postgresql-devel0:13.5-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-postgresql13-postgresql-docs0:13.5-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-postgresql13-postgresql-libs0:13.5-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-postgresql13-postgresql-plperl0:13.5-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-postgresql13-postgresql-plpython0:13.5-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-postgresql13-postgresql-plpython30:13.5-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)

+8

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

No history yet (it accumulates with the daily EPSS job).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

National notice (Türkiye Cybersecurity Directorate / USOM)

Official security notices citing this record; remediation advice is on the agency's page.

All national notices →

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
none
Availability
none
Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
None
Availability impact
None

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

nvd-primary

Root cause

The extension requests broader permissions than its function needs and sends the data it collects out for purposes beyond its stated function.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

json
{  "permissions": ["tabs", "<all_urls>"],  "background": { "service_worker": "analytics.js" }}

Fixed

json
{  "permissions": ["activeTab"],  "host_permissions": ["https://yildiz.example/*"]}

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

Show all references (3 more)

Vendor advisories and official records. Exploit/PoC links are deliberately left out.

All records