Security Information

The PostgreSQL Global Development Group (PGDG) takes security seriously. This allows our users to place their trust in PostgreSQL for protecting their mission-critical data.

The PostgreSQL Global Development Group follows a model that shares responsibility between PostgreSQL itself and its deployment environment, including hardware, operating system, and the application layer (programming language, frameworks and client libraries). The PostgreSQL documentation provides info on the inherent security features of PostgreSQL and how to securely configure and run PostgreSQL.

Security vulnerabilities can exist both in PostgreSQL and software within the PostgreSQL ecosystem, including client libraries, extensions, installers, and other utilities. This page walks through what is considered a security vulnerability in PostgreSQL, how to report PostgreSQL security vulnerabilities, and how fixes for security vulnerabilities are released.

What is a Security Vulnerability in PostgreSQL?

A security vulnerability in PostgreSQL is an issue that allows a user to gain access to privileges or data that they do not have permission to use, or allows a user to execute arbitrary code through a PostgreSQL process.

The PostgreSQL Security Team does not consider reports on actions a PostgreSQL superuser takes to be a security vulnerability. However, a report on an unprivileged user escalating to superuser generally qualifies as valid.

The PostgreSQL Security Team typically does not consider a denial-of-service on a PostgreSQL server from an authenticated, valid SQL statement to be a security vulnerability. A denial-of-service issue of this nature could still be a bug, and we encourage you to report it on the Report a Bug page.

Please do not report the lack of DMARC on postgresql.org mailing lists. This is by design.

Reporting a PostgreSQL Security Vulnerability

For security vulnerabilities in PostgreSQL or any of the installers linked from the PostgreSQL download page, please email security@postgresql.org.

For reporting non-security bugs, please visit the Report a Bug page.

If you are unsure if an issue is a security vulnerability, please err on the side of caution and email security@postgresql.org.

Reporting non-PostgreSQL Security Vulnerabilities

Please see below for how you can report security vulnerabilities in PostgreSQL-related projects:

PostgreSQL Security Releases

The PostgreSQL Project releases security fixes as part of minor version updates. You are always advised to use the latest minor version available, as it will contain other non-security related fixes.

A new PostgreSQL major release, which contains new features, has every prior security fix.

If you find a security vulnerability in PostgreSQL, the PostgreSQL Security Team will credit you in the release notes and register a CVE for the vulnerability. Please do not register a CVE independently of the PostgreSQL Security Team.

The PostgreSQL Security Team does not file a CVE for vulnerabilities in PostgreSQL-related projects nor does it list those vulnerabilities in the section below. It is up to external project maintainers to register a CVE for a security vulnerability.

Known PostgreSQL Security Vulnerabilities

The PostgreSQL Global Development Group believes that accuracy, completeness and availability of security information is essential for our users. We choose to pool all information on this one page, allowing easy searching for security vulnerabilities over a range of criteria. This includes:

  • Which major versions a security vulnerability is present in
  • Which minor version update releases a security vulnerability is fixed in
  • Whether an exploit requires a valid login
  • CVSS score

You can find more detailed information about a security vulnerability by clicking on the links in the table below.

Known PostgreSQL Security Vulnerabilities in PostgreSQL 12

You can filter the view of patches to show just patches for version:
14 - 13 - 12 - 11 - 10 - all

Reference Affected Fixed Component & CVSS v3 Base Score Description
CVE-2022-1552
Announcement
14, 13, 12, 11, 10 14.3, 13.7, 12.11, 11.16, 10.21 core server
8.8
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Autovacuum, REINDEX, and others omit "security restricted operation" sandbox

more details
CVE-2021-32029
Announcement
13, 12, 11 13.3, 12.7, 11.12 core server
6.5
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Memory disclosure in partitioned-table UPDATE ... RETURNING

more details
CVE-2021-32028
Announcement
13, 12, 11, 10, 9.6 13.3, 12.7, 11.12, 10.17, 9.6.22 core server
6.5
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Memory disclosure in INSERT ... ON CONFLICT ... DO UPDATE

more details
CVE-2021-32027
Announcement
13, 12, 11, 10, 9.6 13.3, 12.7, 11.12, 10.17, 9.6.22 core server
6.5
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Buffer overrun from integer overflow in array subscripting calculations

more details
CVE-2021-23222
Announcement
14, 13, 12, 11, 10, 9.6 14.1, 13.5, 12.9, 11.14, 10.19, 9.6.24 client
3.7
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
libpq processes unencrypted bytes from man-in-the-middle

more details
CVE-2021-23214
Announcement
14, 13, 12, 11, 10, 9.6 14.1, 13.5, 12.9, 11.14, 10.19, 9.6.24 core server
8.1
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Server processes unencrypted bytes from man-in-the-middle

more details
CVE-2021-3677
Announcement
13, 12, 11 13.4, 12.8, 11.13 core server
6.5
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Memory disclosure in certain queries

more details
CVE-2021-3393
Announcement
13, 12, 11 13.2, 12.6, 11.11 core server
3.1
AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
Partition constraint violation errors leak values of denied columns

more details
CVE-2020-25696
Announcement
13, 12, 11, 10, 9.6, 9.5 13.1, 12.5, 11.10, 10.15, 9.6.20, 9.5.24 client
7.5
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
psql's \gset allows overwriting specially treated variables

more details
CVE-2020-25695
Announcement
13, 12, 11, 10, 9.6, 9.5 13.1, 12.5, 11.10, 10.15, 9.6.20, 9.5.24 core server
8.8
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Multiple features escape "security restricted operation" sandbox

more details
CVE-2020-25694
Announcement
13, 12, 11, 10, 9.6, 9.5 13.1, 12.5, 11.10, 10.15, 9.6.20, 9.5.24 client
8.1
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Reconnection can downgrade connection security settings

more details
CVE-2020-14350
Announcement
12, 11, 10, 9.6, 9.5 12.4, 11.9, 10.14, 9.6.19, 9.5.23 core server
7.1
AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Uncontrolled search path element in CREATE EXTENSION

more details
CVE-2020-14349
Announcement
12, 11, 10 12.4, 11.9, 10.14 core server
7.5
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Uncontrolled search path element in logical replication

more details
CVE-2020-10733
Announcement
12, 11, 10, 9.6, 9.5 12.3, 11.8, 10.13, 9.6.18, 9.5.22 packaging
6.7
AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Windows installer runs executables from uncontrolled directories

more details
CVE-2020-1720
Announcement
12, 11, 10, 9.6 12.2, 11.7, 10.12, 9.6.17 core server
3.1
AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
ALTER ... DEPENDS ON EXTENSION is missing authorization checks.

more details
CVE-2019-3466
Announcement
12, 11, 10, 9.6, 9.5, 9.4 12.1, 11.6, 10.11, 9.6.16, 9.5.20, 9.4.25 packaging
8.4
AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
pg_ctlcluster script in postgresql-common does not drop privileges when creating socket/statistics temporary directories

more details

Unsupported versions

You can also view archived security patches for unsupported versions. Note that no further security patches are made available for these versions as they are end of life.
9.6 - 9.5 - 9.4 - 9.3 - 9.2 - 9.1 - 9.0 - 8.4 - 8.3 - 8.2 - 8.1 - 8.0 - 7.4 - 7.3

Components

The following component references are used in the above table:

Component Description
core server This vulnerability exists in the core server product.
client This vulnerability exists in a client library or client application only.
contrib module This vulnerability exists in a contrib module. Contrib modules are not installed by default when PostgreSQL is installed from source. They may be installed by binary packages.
client contrib module This vulnerability exists in a contrib module used on the client only.
packaging This vulnerability exists in PostgreSQL binary packaging, e.g. an installer or RPM.

The PostgreSQL Security Team

The PostgreSQL Security Team is made up of a group of contributors to the PostgreSQL project who have experience in different aspects of database and information security.

You can find a list of members on the security team here:

  • Álvaro Herrera
  • Andres Freund
  • Andrew Dunstan
  • Bruce Momjian
  • Dave Page
  • Greg Stark
  • Heikki Linnakangas
  • Tatsuo Ishii
  • Jonathan Katz
  • Magnus Hagander
  • Michael Paquier
  • Noah Misch
  • Peter Eisentraut
  • Robert Haas
  • Stephen Frost
  • Simon Riggs
  • Stefan Kaltenbrunner
  • Tom Lane