CVE-2023-5869
Postgresql: buffer overrun from integer overflow in array modification
Reported by redhat · Published December 10, 2023
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| postgresql15 | Alpine | 15.5-r0 |
| postgresql15-test | Amazon Linux | 15.5-1.amzn2023.0.1 |
| postgresql | Amazon Linux | 9.2.24-8.amzn2 |
| postgresql-11 | Wolfi | 11.22-r0 |
| postgresql15-upgrade | Amazon Linux | 15.5-1.amzn2023.0.1 |
| postgresql-12 | Wolfi | 12.17-r0 |
| postgresql-13 | Wolfi | 13.13-r0 |
| postgresql15-llvmjit | Amazon Linux | 15.5-1.amzn2023.0.1 |
| postgresql-devel | Amazon Linux | 9.2.24-8.amzn2 |
| postgresql-15 | Chainguard | 15.5-r0 |
| postgresql-static | Amazon Linux | 9.2.24-8.amzn2 |
| postgresql15-static | Amazon Linux | 15.5-1.amzn2023.0.1 |
35 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Advanced Cluster Security 4.2 | 4.2.4-6 |
| Red Hat | Red Hat Advanced Cluster Security 4.2 | 4.2.4-6 |
| Red Hat | Red Hat Advanced Cluster Security 4.2 | 4.2.4-7 |
| Red Hat | Red Hat Advanced Cluster Security 4.2 | 4.2.4-6 |
| Red Hat | Red Hat Advanced Cluster Security 4.2 | 4.2.4-7 |
| Red Hat | Red Hat Enterprise Linux 7 | 0:9.2.24-9.el7_9 |
| Red Hat | Red Hat Enterprise Linux 8 | 8090020231114113712.a75119d5 |
| Red Hat | Red Hat Enterprise Linux 8 | 8090020231128173330.a75119d5 |
| Red Hat | Red Hat Enterprise Linux 8 | 8090020231201202407.a75119d5 |
| Red Hat | Red Hat Enterprise Linux 8 | 8090020231114113548.a75119d5 |
| Red Hat | Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions | 8010020231130170510.c27ad7f8 |
| Red Hat | Red Hat Enterprise Linux 8.2 Advanced Update Support | 8020020231128165246.4cda2c84 |
| Red Hat | Red Hat Enterprise Linux 8.2 Advanced Update Support | 8020020231201202149.4cda2c84 |
| Red Hat | Red Hat Enterprise Linux 8.2 Telecommunications Update Service | 8020020231128165246.4cda2c84 |
| Red Hat | Red Hat Enterprise Linux 8.2 Telecommunications Update Service | 8020020231201202149.4cda2c84 |
| Red Hat | Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions | 8020020231128165246.4cda2c84 |
| Red Hat | Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions | 8020020231201202149.4cda2c84 |
| Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | 8040020231127153301.522a0ee4 |
| Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | 8040020231127154806.522a0ee4 |
| Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | 8040020231127142440.522a0ee4 |
…and 132 more
Timeline
- Dec 10, 2023 CVE Published
- Dec 11, 2023 EPSS Score (30 in total, the first dated here)
- Oct 5, 2024 Coalition ESS Score (16 in total, the first dated here)
- Mar 21, 2026 Distribution Patch (32 in total, the first dated here)
- Mar 21, 2026 Security Advisory (35 in total, the first dated here)
- Jun 25, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-5869
vulnetix vdb fixes CVE-2023-5869
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-5869/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2023:7545 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7579 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7580 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7581 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7616 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7656 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7666 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7667 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7694 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7695 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7714 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7770 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7771 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7772 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7778 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7783 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7784 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7785 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7786 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7788 vendor-advisoryx_refsource_REDHAT
…and 15 more