HighCVE-2023-5869

    Postgresql: buffer overrun from integer overflow in array modification (CVE-2023-5869)

    Published Sources: Debian, CVE.org, OSV, BSI

    What is affected, what to do

    A flaw was found in PostgreSQL that allows authenticated database users to execute arbitrary code through missing overflow checks during SQL array value modification. This issue exists due to an integer overflow during array modification where a remote user can trigger the overflow by providing specially crafted data.

    Update Red Hat Advanced Cluster Security 4.2 to version 4.2.4-6, Red Hat Advanced Cluster Security 4.2 to version 4.2.4-7, Red Hat Enterprise Linux 7 to version 0:9.2.24-9.el7_9.

    Affected
    • Red Hat Advanced Cluster Security 4.2 lt *..4.2.4-6
    • Red Hat Advanced Cluster Security 4.2 lt *..4.2.4-7
    • Red Hat Enterprise Linux 7 lt *..0:9.2.24-9.el7_9
    • Red Hat Enterprise Linux 8 lt *..8090020231114113712.a75119d5
    • Red Hat Enterprise Linux 8 lt *..8090020231128173330.a75119d5
    • Red Hat Enterprise Linux 8 lt *..8090020231201202407.a75119d5
    • Red Hat Enterprise Linux 8 lt *..8090020231114113548.a75119d5
    • Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions lt *..8010020231130170510.c27ad7f8
    • Red Hat Enterprise Linux 8.2 Advanced Update Support lt *..8020020231128165246.4cda2c84
    • Red Hat Enterprise Linux 8.2 Advanced Update Support lt *..8020020231201202149.4cda2c84
    • Red Hat Enterprise Linux 8.2 Telecommunications Update Service lt *..8020020231128165246.4cda2c84
    • Red Hat Enterprise Linux 8.2 Telecommunications Update Service lt *..8020020231201202149.4cda2c84
    • Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions lt *..8020020231128165246.4cda2c84
    • Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions lt *..8020020231201202149.4cda2c84
    • Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support lt *..8040020231127153301.522a0ee4
    • Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support lt *..8040020231127154806.522a0ee4
    • Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support lt *..8040020231127142440.522a0ee4
    • Red Hat Enterprise Linux 8.4 Telecommunications Update Service lt *..8040020231127153301.522a0ee4
    • Red Hat Enterprise Linux 8.4 Telecommunications Update Service lt *..8040020231127154806.522a0ee4
    • Red Hat Enterprise Linux 8.4 Telecommunications Update Service lt *..8040020231127142440.522a0ee4
    • Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions lt *..8040020231127153301.522a0ee4
    • Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions lt *..8040020231127154806.522a0ee4
    • Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions lt *..8040020231127142440.522a0ee4
    • Red Hat Enterprise Linux 8.6 Extended Update Support lt *..8060020231114115246.ad008a3a
    • Red Hat Enterprise Linux 8.6 Extended Update Support lt *..8060020231128165328.ad008a3a
    • Red Hat Enterprise Linux 8.6 Extended Update Support lt *..8060020231201202249.ad008a3a
    • Red Hat Enterprise Linux 8.8 Extended Update Support lt *..8080020231114105206.63b34585
    • Red Hat Enterprise Linux 8.8 Extended Update Support lt *..8080020231128165335.63b34585
    • Red Hat Enterprise Linux 8.8 Extended Update Support lt *..8080020231201202316.63b34585
    • Red Hat Enterprise Linux 8.8 Extended Update Support lt *..8080020231113134015.63b34585
    • Red Hat Enterprise Linux 9 lt *..0:13.13-1.el9_3
    • Red Hat Enterprise Linux 9 lt *..9030020231120082734.rhel9
    • Red Hat Enterprise Linux 9.0 Extended Update Support lt *..0:13.13-1.el9_0
    • Red Hat Enterprise Linux 9.2 Extended Update Support lt *..0:13.13-1.el9_2
    • Red Hat Enterprise Linux 9.2 Extended Update Support lt *..9020020231115020618.rhel9
    • Red Hat Software Collections for Red Hat Enterprise Linux 7 lt *..0:12.17-1.el7
    • Red Hat Software Collections for Red Hat Enterprise Linux 7 lt *..0:10.23-2.el7
    • Red Hat Software Collections for Red Hat Enterprise Linux 7 lt *..0:13.13-1.el7
    • Red Hat RHACS-3.74-RHEL-8 lt *..3.74.8-9
    • Red Hat RHACS-3.74-RHEL-8 lt *..3.74.8-7
    • Red Hat RHACS-4.1-RHEL-8 lt *..4.1.6-6
    Fixed in
    • Red Hat Advanced Cluster Security 4.2 4.2.4-6
    • Red Hat Advanced Cluster Security 4.2 4.2.4-7
    • Red Hat Enterprise Linux 7 0:9.2.24-9.el7_9
    • Red Hat Enterprise Linux 8 8090020231114113712.a75119d5
    • Red Hat Enterprise Linux 8 8090020231128173330.a75119d5
    • Red Hat Enterprise Linux 8 8090020231201202407.a75119d5
    • Red Hat Enterprise Linux 8 8090020231114113548.a75119d5
    • Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions 8010020231130170510.c27ad7f8
    • Red Hat Enterprise Linux 8.2 Advanced Update Support 8020020231128165246.4cda2c84
    • Red Hat Enterprise Linux 8.2 Advanced Update Support 8020020231201202149.4cda2c84
    • Red Hat Enterprise Linux 8.2 Telecommunications Update Service 8020020231128165246.4cda2c84
    • Red Hat Enterprise Linux 8.2 Telecommunications Update Service 8020020231201202149.4cda2c84
    • Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions 8020020231128165246.4cda2c84
    • Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions 8020020231201202149.4cda2c84
    • Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support 8040020231127153301.522a0ee4
    • Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support 8040020231127154806.522a0ee4
    • Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support 8040020231127142440.522a0ee4
    • Red Hat Enterprise Linux 8.4 Telecommunications Update Service 8040020231127153301.522a0ee4
    • Red Hat Enterprise Linux 8.4 Telecommunications Update Service 8040020231127154806.522a0ee4
    • Red Hat Enterprise Linux 8.4 Telecommunications Update Service 8040020231127142440.522a0ee4
    • Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions 8040020231127153301.522a0ee4
    • Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions 8040020231127154806.522a0ee4
    • Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions 8040020231127142440.522a0ee4
    • Red Hat Enterprise Linux 8.6 Extended Update Support 8060020231114115246.ad008a3a
    • Red Hat Enterprise Linux 8.6 Extended Update Support 8060020231128165328.ad008a3a
    • Red Hat Enterprise Linux 8.6 Extended Update Support 8060020231201202249.ad008a3a
    • Red Hat Enterprise Linux 8.8 Extended Update Support 8080020231114105206.63b34585
    • Red Hat Enterprise Linux 8.8 Extended Update Support 8080020231128165335.63b34585
    • Red Hat Enterprise Linux 8.8 Extended Update Support 8080020231201202316.63b34585
    • Red Hat Enterprise Linux 8.8 Extended Update Support 8080020231113134015.63b34585
    • Red Hat Enterprise Linux 9 0:13.13-1.el9_3
    • Red Hat Enterprise Linux 9 9030020231120082734.rhel9
    • Red Hat Enterprise Linux 9.0 Extended Update Support 0:13.13-1.el9_0
    • Red Hat Enterprise Linux 9.2 Extended Update Support 0:13.13-1.el9_2
    • Red Hat Enterprise Linux 9.2 Extended Update Support 9020020231115020618.rhel9
    • Red Hat Software Collections for Red Hat Enterprise Linux 7 0:12.17-1.el7
    • Red Hat Software Collections for Red Hat Enterprise Linux 7 0:10.23-2.el7
    • Red Hat Software Collections for Red Hat Enterprise Linux 7 0:13.13-1.el7
    • Red Hat RHACS-3.74-RHEL-8 3.74.8-9
    • Red Hat RHACS-3.74-RHEL-8 3.74.8-7
    • Red Hat RHACS-4.1-RHEL-8 4.1.6-6

    Not sure whether and how you are affected? Ask a question about this vulnerability

    Metrics

    8.8

    Priority

    XIEM Effective CVSS: highest available CVSS rating from NVD and vendor data.

    Source: NVD, CVSS v3

    8.8

    CVSS v3

    Severity High on the scale from 0 to 10.

    Source: Debian, CVE.org, OSV, BSI

    4.3 %

    EPSS score

    Moderate — model estimates 1-10% exploitation likelihood.

    Source: FIRST EPSS, percentile 91.1

    Show all metrics
    Severity
    High
    Priority (0–325)

    The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?

    Read in glossary
    114.46 Methodology
    Exploit maturity

    An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.

    Read in glossary
    no public PoC known
    XIEM Effective CVSS

    XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.

    Read in glossary
    8.8 Methodology
    CVSS v3

    CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.

    Read in glossary
    8.8
    EPSS score

    The EPSS score is the absolute model output for an individual vulnerability: the estimated probability of real-world exploitation within the next 30 days, expressed as a value between 0 and 1 (i.e. 0 % to 100 %). A score of 0.42 means „the model estimates a 42 % chance of real-world exploitation within 30 days“.

    Read in glossary
    4.3 %
    Moderate — model estimates 1-10% exploitation likelihood.
    EPSS percentile

    The EPSS percentile is the relative position of a vulnerability within all EPSS-scored CVEs, expressed as a value between 0 and 1. A percentile of 0.90 means „this CVE has a higher EPSS score than 90 % of all other scored CVEs“. Unlike the EPSS score, it is not a probability — but a positioning within a ranking.

    Read in glossary
    91.1
    Critical — this CVE ranks in the top fifth of all CVEs scored today (rank ≥ 80%).
    KEV status

    The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.

    Read in glossary
    —
    Published
    CWE

    CWE is a catalogue of typical weakness types in software and hardware — such as flawed input validation, unsafe memory handling or poor authentication. Where a CVE names a concrete vulnerability in a concrete product, a CWE describes the underlying class of defect.

    Read in glossary
    CWE-190

    Detection rules

    No NEOSEC detection rule is available for this vulnerability yet.

    Classification under NIS2 and CRA

    Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.

    NIS2

    NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.

    Read in glossary
    High technical severity: assess and remediate the vulnerability in vulnerability handling under Art. 21(2)(e) NIS2 and document the decision.
    CRA

    The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.

    Read in glossary
    From 11.12.2027, Annex I Part II CRA requires manufacturers of affected products with digital elements to handle vulnerabilities without delay and provide security updates.
    ISO/IEC 27001

    ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.

    Read in glossary
    Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.

    Description

    A flaw was found in PostgreSQL that allows authenticated database users to execute arbitrary code through missing overflow checks during SQL array value modification. This issue exists due to an integer overflow during array modification where a remote user can trigger the overflow by providing specially crafted data. This enables the execution of arbitrary code on the target system, allowing users to write arbitrary bytes to memory and extensively read the server's memory.

    Source: Debian Security Advisories, NVD (NIST), OSV (Open Source Vulnerabilities), cvelistv5, BSI CSAF, BSI WID Portal

    Affected products

    The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.

    Affected products
    Affected versionsFixed in
    Red HatRed Hat Advanced Cluster Security 4.2
    • < 4.2.4-6
    • < 4.2.4-7
    • 4.2.4-6
    • 4.2.4-7
    Red HatRed Hat Enterprise Linux 6
    • —
    • —
    Red HatRed Hat Enterprise Linux 7
    • < 0:9.2.24-9.el7_9
    • 0:9.2.24-9.el7_9
    Red HatRed Hat Enterprise Linux 8
    • < 8090020231128173330.a75119d5
    • < 8090020231114113712.a75119d5
    • < 8090020231201202407.a75119d5
    • < 8090020231114113548.a75119d5
    • 8090020231128173330.a75119d5
    • 8090020231114113712.a75119d5
    • 8090020231201202407.a75119d5
    • 8090020231114113548.a75119d5
    Red HatRed Hat Enterprise Linux 8.1 Update Services for SAP Solutions
    • < 8010020231130170510.c27ad7f8
    • 8010020231130170510.c27ad7f8
    Red HatRed Hat Enterprise Linux 8.2 Advanced Update Support
    • < 8020020231128165246.4cda2c84
    • < 8020020231201202149.4cda2c84
    • 8020020231128165246.4cda2c84
    • 8020020231201202149.4cda2c84
    Red HatRed Hat Enterprise Linux 8.2 Telecommunications Update Service
    • < 8020020231128165246.4cda2c84
    • < 8020020231201202149.4cda2c84
    • 8020020231128165246.4cda2c84
    • 8020020231201202149.4cda2c84
    Red HatRed Hat Enterprise Linux 8.2 Update Services for SAP Solutions
    • < 8020020231128165246.4cda2c84
    • < 8020020231201202149.4cda2c84
    • 8020020231128165246.4cda2c84
    • 8020020231201202149.4cda2c84
    Red HatRed Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
    • < 8040020231127142440.522a0ee4
    • < 8040020231127153301.522a0ee4
    • < 8040020231127154806.522a0ee4
    • 8040020231127142440.522a0ee4
    • 8040020231127153301.522a0ee4
    • 8040020231127154806.522a0ee4
    Red HatRed Hat Enterprise Linux 8.4 Telecommunications Update Service
    • < 8040020231127153301.522a0ee4
    • < 8040020231127142440.522a0ee4
    • < 8040020231127154806.522a0ee4
    • 8040020231127153301.522a0ee4
    • 8040020231127142440.522a0ee4
    • 8040020231127154806.522a0ee4
    Red HatRed Hat Enterprise Linux 8.4 Update Services for SAP Solutions
    • < 8040020231127154806.522a0ee4
    • < 8040020231127142440.522a0ee4
    • < 8040020231127153301.522a0ee4
    • 8040020231127154806.522a0ee4
    • 8040020231127142440.522a0ee4
    • 8040020231127153301.522a0ee4
    Red HatRed Hat Enterprise Linux 8.6 Extended Update Support
    • < 8060020231201202249.ad008a3a
    • < 8060020231128165328.ad008a3a
    • < 8060020231114115246.ad008a3a
    • 8060020231201202249.ad008a3a
    • 8060020231128165328.ad008a3a
    • 8060020231114115246.ad008a3a
    Red HatRed Hat Enterprise Linux 8.8 Extended Update Support
    • < 8080020231201202316.63b34585
    • < 8080020231128165335.63b34585
    • < 8080020231114105206.63b34585
    • < 8080020231113134015.63b34585
    • 8080020231201202316.63b34585
    • 8080020231128165335.63b34585
    • 8080020231114105206.63b34585
    • 8080020231113134015.63b34585
    Red HatRed Hat Enterprise Linux 9
    • < 0:13.13-1.el9_3
    • < 9030020231120082734.rhel9
    • 0:13.13-1.el9_3
    • 9030020231120082734.rhel9
    Red HatRed Hat Enterprise Linux 9.0 Extended Update Support
    • < 0:13.13-1.el9_0
    • 0:13.13-1.el9_0
    Red HatRed Hat Enterprise Linux 9.2 Extended Update Support
    • < 0:13.13-1.el9_2
    • < 9020020231115020618.rhel9
    • 0:13.13-1.el9_2
    • 9020020231115020618.rhel9
    Red HatRed Hat Software Collections for Red Hat Enterprise Linux 7
    • < 0:12.17-1.el7
    • < 0:10.23-2.el7
    • < 0:13.13-1.el7
    • 0:12.17-1.el7
    • 0:10.23-2.el7
    • 0:13.13-1.el7
    Red HatRHACS-3.74-RHEL-8
    • < 3.74.8-7
    • < 3.74.8-9
    • 3.74.8-7
    • 3.74.8-9
    Red HatRHACS-4.1-RHEL-8
    • < 4.1.6-6
    • 4.1.6-6
    postgresqlpostgresql
    • 11.0 – < 11.22
    • 12.0 – < 12.17
    • 13.0 – < 13.13
    • 15.0 – < 15.5
    • 16.0
    • 14.0 – < 14.10
    • 11.22
    • 12.17
    • 13.13
    • 15.5
    • —
    • 14.10
    Distribution and container packages (6)

    Downstream packages (e.g. Bitnami, Debian, Ubuntu, Red Hat). Versions refer to the distribution, not the vendor.

    Distribution and container packages
    Affected versionsFixed in
    bitnamipostgresql
    • 13.0.0
    • 14.0.0
    • 11.0.0
    • 16.0.0
    • 12.0.0
    • 15.0.0
    • —
    • —
    • —
    • —
    • —
    • —

    Vendors and products

    Affected operating systems

    Affected operating systems
    Linuxredhatenterprise_linux8.0
    Linuxredhatenterprise_linux9.0
    Linuxredhatenterprise_linux_desktop7.0
    Linuxredhatenterprise_linux_eus8.6
    Linuxredhatenterprise_linux_eus8.8
    Linuxredhatenterprise_linux_eus9.0
    Linuxredhatenterprise_linux_eus9.2
    Linuxredhatenterprise_linux_for_arm_648.0
    Linuxredhatenterprise_linux_for_arm_648.8_aarch64
    Linuxredhatenterprise_linux_for_ibm_z_systems7.0_s390x
    Linuxredhatenterprise_linux_for_ibm_z_systems8.0_s390x
    Linuxredhatenterprise_linux_for_ibm_z_systems_eus8.6_s390x
    Linuxredhatenterprise_linux_for_ibm_z_systems_eus8.8_s390x
    Linuxredhatenterprise_linux_for_ibm_z_systems_eus9.0_s390x
    Linuxredhatenterprise_linux_for_ibm_z_systems_eus9.2_s390x
    Linuxredhatenterprise_linux_for_power_big_endian7.0_ppc64
    Linuxredhatenterprise_linux_for_power_little_endian7.0_ppc64le
    Linuxredhatenterprise_linux_for_power_little_endian8.0_ppc64le
    Linuxredhatenterprise_linux_for_power_little_endian_eus8.6_ppc64le
    Linuxredhatenterprise_linux_for_power_little_endian_eus8.8_ppc64le
    Linuxredhatenterprise_linux_for_power_little_endian_eus9.0_ppc64le
    Linuxredhatenterprise_linux_for_power_little_endian_eus9.2_ppc64le
    Linuxredhatenterprise_linux_for_scientific_computing7.0
    Linuxredhatenterprise_linux_server7.0

    Weakness classes (CWE)

    • CWE-190Integer Overflow or Wraparound

      Base

      The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.

      Entry at MITRE CWE-190

    References & sources

    • access.redhat.comRHSA-2023:7545web, Vendor advisory, x_refsource_REDHAT, Third-party advisory
    • access.redhat.comRHSA-2023:7579web, Vendor advisory, x_refsource_REDHAT, Third-party advisory
    • access.redhat.comRHSA-2023:7580web, Vendor advisory, x_refsource_REDHAT, Third-party advisory
    • access.redhat.comRHSA-2023:7581web, Vendor advisory, x_refsource_REDHAT, Third-party advisory
    • access.redhat.comRHSA-2023:7616web, Vendor advisory, x_refsource_REDHAT, Third-party advisory
    • access.redhat.comRHSA-2023:7656web, Vendor advisory, x_refsource_REDHAT, Third-party advisory
    • access.redhat.comRHSA-2023:7666web, Vendor advisory, x_refsource_REDHAT, Third-party advisory
    • access.redhat.comRHSA-2023:7667web, Vendor advisory, x_refsource_REDHAT, Third-party advisory
    • access.redhat.comRHSA-2023:7694web, Vendor advisory, x_refsource_REDHAT, Third-party advisory
    • access.redhat.comRHSA-2023:7695web, Vendor advisory, x_refsource_REDHAT, Third-party advisory
    • access.redhat.comRHSA-2023:7714web, Vendor advisory, x_refsource_REDHAT, Third-party advisory
    • access.redhat.comRHSA-2023:7770web, Vendor advisory, x_refsource_REDHAT, Third-party advisory
    • access.redhat.comRHSA-2023:7771web, Vendor advisory, x_refsource_REDHAT, Third-party advisory
    • access.redhat.comRHSA-2023:7772web, Vendor advisory, x_refsource_REDHAT, Third-party advisory
    • access.redhat.comRHSA-2023:7778web, Vendor advisory, x_refsource_REDHAT, Third-party advisory
    • access.redhat.comRHSA-2023:7783web, Vendor advisory, x_refsource_REDHAT, Third-party advisory
    • access.redhat.comRHSA-2023:7784web, Vendor advisory, x_refsource_REDHAT
    • access.redhat.comRHSA-2023:7785web, Vendor advisory, x_refsource_REDHAT
    • access.redhat.comRHSA-2023:7786web, Vendor advisory, x_refsource_REDHAT
    • access.redhat.comRHSA-2023:7788web, Vendor advisory, x_refsource_REDHAT
    Embed badge

    Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.

    Badge preview for CVE-2023-5869
    <a href="https://intel.neosec.eu/en/cve/CVE-2023-5869"><img src="https://intel.neosec.eu/badge/cve/CVE-2023-5869.svg?lang=en" alt="CVE-2023-5869 – NEOSEC Intel" height="20"></a>