cve.bz

CVE-2023-5870 Uncontrolled Resource Consumption

4.4 mediumEPSS 2.6%Fix available

Medium (4.4). EPSS 2.6% estimated probability of exploitation activity in the next 30 days.

On this page
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 3.1

4.4 medium
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H
EPSS
2.6% (unchanged from 2.6% a week ago; 2.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 85th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2023-12-19. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Advanced Cluster Security 4.2: fixed in 4.2.4-6
  • Red Hat Red Hat Advanced Cluster Security 4.2: fixed in 4.2.4-7
  • Red Hat Red Hat Enterprise Linux 8: fixed in 8090020231114113712.a75119d5
  • Red Hat Red Hat Enterprise Linux 8: fixed in 8090020231128173330.a75119d5
  • Red Hat Red Hat Enterprise Linux 8: fixed in 8090020231114113548.a75119d5
  • Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support: fixed in 8020020231128165246.4cda2c84
  • Red Hat Red Hat Enterprise Linux 8.2 Telecommunications Update Service: fixed in 8020020231128165246.4cda2c84
  • Red Hat Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions: fixed in 8020020231128165246.4cda2c84
  • Debian, Ubuntu, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Alpine, Azure Linux, Alpaquita: fixed package versions per release
  • Vendor advisory: https://www.postgresql.org/support/security/CVE-2023-5870/

Ask an AI about this CVE

Show the promptExplain CVE-2023-5870 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-5870?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-5870?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-5870 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Advanced Cluster Security 4.24.2.4-6
Red Hat Advanced Cluster Security 4.24.2.4-7
Red Hat Enterprise Linux 88090020231114113712.a75119d5
Red Hat Enterprise Linux 88090020231128173330.a75119d5
Red Hat Enterprise Linux 88090020231114113548.a75119d5
Red Hat Enterprise Linux 8.2 Advanced Update Support8020020231128165246.4cda2c84
Red Hat Enterprise Linux 8.2 Telecommunications Update Service8020020231128165246.4cda2c84
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions8020020231128165246.4cda2c84
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support8040020231127153301.522a0ee4
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support8040020231127154806.522a0ee4
Red Hat Enterprise Linux 8.4 Telecommunications Update Service8040020231127153301.522a0ee4
Red Hat Enterprise Linux 8.4 Telecommunications Update Service8040020231127154806.522a0ee4
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions8040020231127153301.522a0ee4
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions8040020231127154806.522a0ee4
Red Hat Enterprise Linux 8.6 Extended Update Support8060020231114115246.ad008a3a
Red Hat Enterprise Linux 8.6 Extended Update Support8060020231128165328.ad008a3a
Red Hat Enterprise Linux 8.8 Extended Update Support8080020231114105206.63b34585
Red Hat Enterprise Linux 8.8 Extended Update Support8080020231128165335.63b34585
Red Hat Enterprise Linux 8.8 Extended Update Support8080020231113134015.63b34585
Red Hat Enterprise Linux 90:13.13-1.el9_3
Red Hat Enterprise Linux 99030020231120082734.rhel9
Red Hat Enterprise Linux 9.0 Extended Update Support0:13.13-1.el9_0
Red Hat Enterprise Linux 9.2 Extended Update Support0:13.13-1.el9_2
Red Hat Enterprise Linux 9.2 Extended Update Support9020020231115020618.rhel9
Red Hat Software Collections for Red Hat Enterprise Linux 70:12.17-1.el7
Red Hat Software Collections for Red Hat Enterprise Linux 70:13.13-1.el7
Red Hat RHACS-3.74-RHEL-83.74.8-9
Red Hat RHACS-3.74-RHEL-83.74.8-7
Red Hat RHACS-4.1-RHEL-84.1.6-6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10postgresql-1111.22-0+deb10u1DLA-3651-1
Debian11postgresql-1313.13-0+deb11u1DSA-5554-1
Debian12postgresql-1515.5-0+deb12u1DEBIAN-CVE-2023-5870 DSA-5553-1
Ubuntu20.04:LTSpostgresql-1212.17-0ubuntu0.20.04.1UBUNTU-CVE-2023-5870 USN-6538-1
Ubuntu22.04:LTSpostgresql-1414.10-0ubuntu0.22.04.1UBUNTU-CVE-2023-5870 USN-6538-1
UbuntuPro:14.04:LTSpostgresql-9.3no fix listedUBUNTU-CVE-2023-5870
UbuntuPro:16.04:LTSpostgresql-9.59.5.25-0ubuntu0.16.04.1+esm6UBUNTU-CVE-2023-5870 USN-6570-1
UbuntuPro:18.04:LTSpostgresql-1010.23-0ubuntu0.18.04.2+esm1UBUNTU-CVE-2023-5870 USN-6538-2
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.6-3.module+el8.9.0+19330+c97ddbdfRHSA-2023:7714
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.6-3.module+el8.9.0+20664+9c30cf7fRHSA-2023:7581
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.8-1.module+el8.9.0+19797+c4ce5969RHSA-2023:7884
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.4.0-5.module+el8.9.0+19330+c97ddbdfRHSA-2023:7714
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.5.0-1.module+el8.9.0+20664+9c30cf7fRHSA-2023:7581
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.7.0-1.module+el8.9.0+19797+c4ce5969RHSA-2023:7884
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:0.10.0-2.module+el8.9.0+19330+c97ddbdfRHSA-2023:7714
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:0.10.0-2.module+el8.9.0+20664+9c30cf7fRHSA-2023:7581
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:1.9.7-1.Final.module+el8.9.0+19797+c4ce5969RHSA-2023:7884
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 25 more0:15.5-1.module+el8.9.0+20663+03952ce4RHSA-2023:7884
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:12.17-1.module+el8.9.0+20789+410e66ceRHSA-2023:7714
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:13.13-1.module+el8.9.0+20664+9c30cf7fRHSA-2023:7581
45 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-ESPOS and 11 morepostgresql1616.1-150200.5.7.1SUSE-SU-2023:4495-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-ESPOS and 10 morepostgresql1414.10-150200.5.36.1SUSE-SU-2023:4479-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-ESPOS and 6 morepostgresql1313.13-150200.5.50.1SUSE-SU-2023:4455-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-ESPOS and 5 morepostgresql1212.17-150200.8.54.1SUSE-SU-2023:4454-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 7 morepostgresql1515.5-150200.5.19.1SUSE-SU-2023:4495-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 2 morepostgresql16-150300.10.18.3SUSE-SU-2023:4495-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2postgresql16-150200.4.24.1SUSE-SU-2023:4495-1
SUSELinux Enterprise Module for Basesystem 15 SP4, Linux Enterprise Module for Basesystem 15 SP5, Linux Enterprise Module for Package Hub 15 SP4 and 3 morepostgresql1515.5-150200.5.19.1SUSE-SU-2024:0106-1
SUSELinux Enterprise Module for Basesystem 15 SP4, Linux Enterprise Module for Basesystem 15 SP5, Linux Enterprise Module for Package Hub 15 SP4 and 3 morepostgresql1616.1-150200.5.7.1SUSE-SU-2024:0106-1
SUSELinux Enterprise Module for Basesystem 15 SP4, Linux Enterprise Module for Legacy 15 SP4, Linux Enterprise Module for Package Hub 15 SP4 and 1 morepostgresql16-150400.4.9.2SUSE-SU-2023:4495-1 SUSE-SU-2024:0106-1
SUSELinux Enterprise Module for Basesystem 15 SP5, Linux Enterprise Module for Legacy 15 SP5, Linux Enterprise Module for Package Hub 15 SP5 and 1 morepostgresql16-150500.10.3.2SUSE-SU-2023:4495-1
SUSELinux Enterprise Module for Basesystem 15 SP5, Linux Enterprise Module for Legacy 15 SP5, Linux Enterprise Module for Server Applications 15 SP5postgresql16-150500.10.3.2SUSE-SU-2024:0106-1
7 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.4postgresql16-150400.4.9.2SUSE-SU-2023:4495-1
openSUSELeap 15.4, Leap 15.5postgresql1212.17-150200.8.54.1SUSE-SU-2023:4454-1
openSUSELeap 15.4, Leap 15.5postgresql1313.13-150200.5.50.1SUSE-SU-2023:4455-1
openSUSELeap 15.4, Leap 15.5postgresql1414.10-150200.5.36.1SUSE-SU-2023:4479-1
openSUSELeap 15.4, Leap 15.5postgresql1515.5-150200.5.19.1SUSE-SU-2023:4495-1
openSUSELeap 15.4, Leap 15.5postgresql16, postgresql16-mini16.1-150200.5.7.1SUSE-SU-2023:4495-1
openSUSELeap 15.5postgresql16-150500.10.3.2SUSE-SU-2023:4495-1
openSUSETumbleweedpostgresql1111.22-1.1openSUSE-SU-2024:13408-1
openSUSETumbleweedpostgresql1212.18-1.1openSUSE-SU-2024:13668-1
openSUSETumbleweedpostgresql1313.13-1.1openSUSE-SU-2024:13409-1
openSUSETumbleweedpostgresql1414.10-1.1openSUSE-SU-2024:13410-1
openSUSETumbleweedpostgresql1515.5-1.1openSUSE-SU-2024:13413-1
2 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8pg_repack1.4.6-3.module_el8.6.0+2758+4f4474dfALSA-2023:7714
AlmaLinux8pg_repack1.4.6-3.module_el8.6.0+2760+1746ec94ALSA-2023:7581
AlmaLinux8pg_repack1.4.6-3.module_el8.6.0+3094+eb237fb8ALSA-2023:7714
AlmaLinux8pg_repack1.4.6-3.module_el8.6.0+3095+ee60d910ALSA-2023:7581
AlmaLinux8pg_repack1.4.8-1.module_el8.8.0+3487+43ec1b9fALSA-2023:7884
AlmaLinux8pgaudit1.4.0-5.module_el8.6.0+2758+4f4474dfALSA-2023:7714
AlmaLinux8pgaudit1.4.0-5.module_el8.6.0+3094+eb237fb8ALSA-2023:7714
AlmaLinux8pgaudit1.5.0-1.module_el8.6.0+2760+1746ec94ALSA-2023:7581
AlmaLinux8pgaudit1.5.0-1.module_el8.6.0+3095+ee60d910ALSA-2023:7581
AlmaLinux8pgaudit1.7.0-1.module_el8.8.0+3487+43ec1b9fALSA-2023:7884
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.6.0+2758+4f4474dfALSA-2023:7714
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.6.0+2760+1746ec94ALSA-2023:7581
11 more for AlmaLinux in the JSON.
Rocky Linux8pg_repack0:1.4.6-3.module+el8.5.0+684+c3892ef9RLSA-2023:7581 RLSA-2023:7714
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+1622+bd25b19cRLSA-2023:7884
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+1858+fcc46a79RLSA-2023:7884
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+40056+df351139RLSA-2023:7884
Rocky Linux8pg_repack0:1.4.8-1.module+el8.9.0+1525+fc91df60RLSA-2023:7884
Rocky Linux8pgaudit0:1.4.0-5.module+el8.9.0+1331+6f33d496RLSA-2023:7714
Rocky Linux8pgaudit0:1.5.0-1.module+el8.8.0+1443+0e26d3b2RLSA-2023:7581
Rocky Linux8pgaudit0:1.7.0-1.module+el8.10.0+40056+df351139RLSA-2023:7884
Rocky Linux8pgaudit0:1.7.0-1.module+el8.9.0+1525+fc91df60RLSA-2023:7884
Rocky Linux8postgres-decoderbufs0:0.10.0-2.module+el8.5.0+684+c3892ef9RLSA-2023:7581 RLSA-2023:7714
Rocky Linux8postgres-decoderbufs0:1.9.7-1.Final.module+el8.10.0+40056+df351139RLSA-2023:7884
Rocky Linux8postgres-decoderbufs0:1.9.7-1.Final.module+el8.9.0+1525+fc91df60RLSA-2023:7884
4 more for Rocky Linux in the JSON.
Alpinev3.15, v3.16, v3.17 and 1 morepostgresql1212.17-r0ALPINE-CVE-2023-5870
Alpinev3.15, v3.16, v3.17 and 3 morepostgresql1414.10-r0ALPINE-CVE-2023-5870
Alpinev3.17, v3.18, v3.19 and 3 morepostgresql1515.5-r0ALPINE-CVE-2023-5870
Alpinev3.19, v3.20, v3.21 and 3 morepostgresql1616.1-r0ALPINE-CVE-2023-5870
Azure Linux2postgresql14.14-1AZL-32105
Alpaquita23postgresql1515.5-r0BELL-CVE-2023-5870
Alpaquitastreampostgresql1616.1-r0BELL-CVE-2023-5870

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Low.

Red Hat's statement

Although the NVD assigns this issue a Moderate rating, Red Hat classifies it as Low severity because the practical impact is limited and requires multiple specific conditions. The vulnerability allows a privileged database role (pg_signal_backend) to send signals to certain background worker processes. However, PostgreSQL’s core background workers are designed to safely handle such signals and automatically recover without disrupting the database service.

For a denial-of-service condition to occur, the system must be running a non-core extension that introduces a custom background worker which is not designed to restart safely after receiving a signal. In other words, the issue does not affect standard PostgreSQL installations and only impacts specialized configurations using third-party extensions. Even in affected scenarios, the impact is limited to disruption of a specific auxiliary background task and does not result in complete database failure, data loss, or compromise of confidentiality or integrity.

Because exploitation requires a high-privileged user and affects only certain non-default configurations with limited operational impact, Red Hat considers the real-world risk to be Low.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Advanced Cluster Security 4.2advanced-cluster-security/rhacs-central-db-rhel8:4.2.4-6Fixed 2024-01-22RHSA-2024:0337
Red Hat Advanced Cluster Security 4.2advanced-cluster-security/rhacs-main-rhel8:4.2.4-6Fixed 2024-01-22RHSA-2024:0337
Red Hat Advanced Cluster Security 4.2advanced-cluster-security/rhacs-operator-bundle:4.2.4-7Fixed 2024-01-22RHSA-2024:0337
Red Hat Advanced Cluster Security 4.2advanced-cluster-security/rhacs-scanner-db-rhel8:4.2.4-6Fixed 2024-01-22RHSA-2024:0337
Red Hat Advanced Cluster Security 4.2advanced-cluster-security/rhacs-scanner-db-slim-rhel8:4.2.4-7Fixed 2024-01-22RHSA-2024:0337
Red Hat Enterprise Linux 8postgresql:13-8090020231114113712.a75119d5Fixed 2023-11-29RHSA-2023:7581
Red Hat Enterprise Linux 8postgresql:12-8090020231128173330.a75119d5Fixed 2023-12-11RHSA-2023:7714
Red Hat Enterprise Linux 8postgresql:15-8090020231114113548.a75119d5Fixed 2023-12-20RHSA-2023:7884
Red Hat Enterprise Linux 8.2 Advanced Update Supportpostgresql:12-8020020231128165246.4cda2c84Fixed 2023-12-06RHSA-2023:7667
Red Hat Enterprise Linux 8.2 Telecommunications Update Servicepostgresql:12-8020020231128165246.4cda2c84Fixed 2023-12-06RHSA-2023:7667
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutionspostgresql:12-8020020231128165246.4cda2c84Fixed 2023-12-06RHSA-2023:7667
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportpostgresql:12-8040020231127153301.522a0ee4Fixed 2023-12-07RHSA-2023:7694
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportpostgresql:13-8040020231127154806.522a0ee4Fixed 2023-12-07RHSA-2023:7695
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicepostgresql:12-8040020231127153301.522a0ee4Fixed 2023-12-07RHSA-2023:7694
Red Hat Enterprise Linux 6postgresqlOut of support scope
Red Hat Enterprise Linux 7postgresqlFix deferred
Red Hat Enterprise Linux 8postgresql:10/postgresqlFix deferred
Red Hat Enterprise Linux 8postgresql:16/postgresqlNot affected
Red Hat Enterprise Linux 9postgresql:16/postgresqlNot affected
Red Hat Software Collectionsrh-postgresql10-postgresqlFix deferred
25 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-5870.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-228-06Siemens SINEC NMS2024-08-13MultipleSINEC NMSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON