CVE-2023-5870
Postgresql: role pg_signal_backend can signal certain superuser processes.
Check your servers for CVE-2023-5870
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-5870 affects postgresql, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
A flaw was found in PostgreSQL involving the pg_cancel_backend role that signals background workers, including the logical replication launcher, autovacuum workers, and the autovacuum launcher. Successful exploitation requires a non-core extension with a less-resilient background worker and would affect that specific background worker only. This issue may allow a remote high privileged user to launch a denial of service (DoS) attack.
Severity (CVSS)
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:L
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- high: the attacker needs an administrative account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 1.80%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 78.9% of all scored CVEs. Scores of 29 Nov 2026.
The assessment of CISA (SSVC, 19 Dec 2023):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-400 Uncontrolled Resource Consumption
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
Red Hat Advanced Cluster Security 4.2
package
advanced-cluster-security/rhacs-central-db-rhel8 |
unaffected 4.2.4-6 and later
Other versions: affected
|
|
Red Hat Advanced Cluster Security 4.2
package
advanced-cluster-security/rhacs-main-rhel8 |
unaffected 4.2.4-6 and later
Other versions: affected
|
|
Red Hat Advanced Cluster Security 4.2
package
advanced-cluster-security/rhacs-operator-bundle |
unaffected 4.2.4-7 and later
Other versions: affected
|
|
Red Hat Advanced Cluster Security 4.2
package
advanced-cluster-security/rhacs-scanner-db-rhel8 |
unaffected 4.2.4-6 and later
Other versions: affected
|
|
Red Hat Advanced Cluster Security 4.2
package
advanced-cluster-security/rhacs-scanner-db-slim-rhel8 |
unaffected 4.2.4-7 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8
package
postgresql:13 |
unaffected 8090020231114113712.a75119d5 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8
package
postgresql:12 |
unaffected 8090020231128173330.a75119d5 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8
package
postgresql:15 |
unaffected 8090020231114113548.a75119d5 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.2 Advanced Update Support
package
postgresql:12 |
unaffected 8020020231128165246.4cda2c84 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.2 Telecommunications Update Service
package
postgresql:12 |
unaffected 8020020231128165246.4cda2c84 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions
package
postgresql:12 |
unaffected 8020020231128165246.4cda2c84 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
package
postgresql:12 |
unaffected 8040020231127153301.522a0ee4 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
package
postgresql:13 |
unaffected 8040020231127154806.522a0ee4 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.4 Telecommunications Update Service
package
postgresql:12 |
unaffected 8040020231127153301.522a0ee4 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.4 Telecommunications Update Service
package
postgresql:13 |
unaffected 8040020231127154806.522a0ee4 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
package
postgresql:12 |
unaffected 8040020231127153301.522a0ee4 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
package
postgresql:13 |
unaffected 8040020231127154806.522a0ee4 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.6 Extended Update Support
package
postgresql:13 |
unaffected 8060020231114115246.ad008a3a and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.6 Extended Update Support
package
postgresql:12 |
unaffected 8060020231128165328.ad008a3a and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.8 Extended Update Support
package
postgresql:13 |
unaffected 8080020231114105206.63b34585 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.8 Extended Update Support
package
postgresql:12 |
unaffected 8080020231128165335.63b34585 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.8 Extended Update Support
package
postgresql:15 |
unaffected 8080020231113134015.63b34585 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
postgresql |
unaffected 0:13.13-1.el9_3 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
postgresql:15 |
unaffected 9030020231120082734.rhel9 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9.0 Extended Update Support
package
postgresql |
unaffected 0:13.13-1.el9_0 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9.2 Extended Update Support
package
postgresql:15 |
unaffected 9020020231115020618.rhel9 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9.2 Extended Update Support
package
postgresql |
unaffected 0:13.13-1.el9_2 and later
Other versions: affected
|
|
Red Hat Software Collections for Red Hat Enterprise Linux 7
package
rh-postgresql12-postgresql |
unaffected 0:12.17-1.el7 and later
Other versions: affected
|
|
Red Hat Software Collections for Red Hat Enterprise Linux 7
package
rh-postgresql13-postgresql |
unaffected 0:13.13-1.el7 and later
Other versions: affected
|
|
RHACS-3.74-RHEL-8
package
advanced-cluster-security/rhacs-central-db-rhel8 |
unaffected 3.74.8-9 and later
Other versions: affected
|
|
RHACS-3.74-RHEL-8
package
advanced-cluster-security/rhacs-main-rhel8 |
unaffected 3.74.8-9 and later
Other versions: affected
|
|
RHACS-3.74-RHEL-8
package
advanced-cluster-security/rhacs-operator-bundle |
unaffected 3.74.8-7 and later
Other versions: affected
|
|
RHACS-3.74-RHEL-8
package
advanced-cluster-security/rhacs-scanner-db-rhel8 |
unaffected 3.74.8-9 and later
Other versions: affected
|
|
RHACS-3.74-RHEL-8
package
advanced-cluster-security/rhacs-scanner-db-slim-rhel8 |
unaffected 3.74.8-9 and later
Other versions: affected
|
|
RHACS-4.1-RHEL-8
package
advanced-cluster-security/rhacs-central-db-rhel8 |
unaffected 4.1.6-6 and later
Other versions: affected
|
|
RHACS-4.1-RHEL-8
package
advanced-cluster-security/rhacs-main-rhel8 |
unaffected 4.1.6-6 and later
Other versions: affected
|
|
RHACS-4.1-RHEL-8
package
advanced-cluster-security/rhacs-operator-bundle |
unaffected 4.1.6-6 and later
Other versions: affected
|
|
RHACS-4.1-RHEL-8
package
advanced-cluster-security/rhacs-scanner-db-rhel8 |
unaffected 4.1.6-6 and later
Other versions: affected
|
|
RHACS-4.1-RHEL-8
package
advanced-cluster-security/rhacs-scanner-db-slim-rhel8 |
unaffected 4.1.6-6 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 6
package
postgresql |
unknown the record does not list versions
|
|
Red Hat Enterprise Linux 7
package
postgresql |
affected the record does not list versions
|
|
Red Hat Enterprise Linux 8
package
postgresql:10/postgresql |
affected the record does not list versions
|
|
Red Hat Enterprise Linux 8
package
postgresql:16/postgresql |
unaffected the record does not list versions
|
|
Red Hat Enterprise Linux 9
package
postgresql:16/postgresql |
unaffected the record does not list versions
|
|
Red Hat Software Collections
package
rh-postgresql10-postgresql |
affected the record does not list versions
|
Is my server affected?
Find the installed version of postgresql and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i postgresql
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2023-5870 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2023-5870RHEL, Rocky, Alma, Fedora
rpm -q postgresql
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2023-5870Alpine
apk list --installed | grep -i postgresqlWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-5870
trivy image --scanners vuln IMAGE | grep CVE-2023-5870
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- RHSA-2023:7545 access.redhat.com · vendor advisory
- RHSA-2023:7579 access.redhat.com · vendor advisory
- RHSA-2023:7580 access.redhat.com · vendor advisory
- RHSA-2023:7581 access.redhat.com · vendor advisory
- RHSA-2023:7616 access.redhat.com · vendor advisory
- RHSA-2023:7656 access.redhat.com · vendor advisory
- RHSA-2023:7666 access.redhat.com · vendor advisory
- RHSA-2023:7667 access.redhat.com · vendor advisory
- RHSA-2023:7694 access.redhat.com · vendor advisory
- RHSA-2023:7695 access.redhat.com · vendor advisory
- RHSA-2023:7714 access.redhat.com · vendor advisory
- RHSA-2023:7770 access.redhat.com · vendor advisory
11 more
- RHSA-2023:7772 access.redhat.com · vendor advisory
- RHSA-2023:7784 access.redhat.com · vendor advisory
- RHSA-2023:7785 access.redhat.com · vendor advisory
- RHSA-2023:7883 access.redhat.com · vendor advisory
- RHSA-2023:7884 access.redhat.com · vendor advisory
- RHSA-2023:7885 access.redhat.com · vendor advisory
- RHSA-2024:0304 access.redhat.com · vendor advisory
- RHSA-2024:0332 access.redhat.com · vendor advisory
- RHSA-2024:0337 access.redhat.com · vendor advisory
- https://access.redhat.com/security/cve/CVE-2023-5870 access.redhat.com · vdb entry
- RHBZ#2247170 bugzilla.redhat.com · issue tracking
Other references
- https://www.postgresql.org/about/news/postgresql-161-155-1410-1313-1217-and-1122-released-2749/ postgresql.org
- https://www.postgresql.org/support/security/CVE-2023-5870/ postgresql.org
- https://security.netapp.com/advisory/ntap-20240119-0003/ security.netapp.com
- https://lists.debian.org/debian-lts-announce/2023/11/msg00007.html lists.debian.org
Source: the record CVE-2023-5870 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse