CVE-2023-5869
postgresql: Buffer overrun from integer overflow in array modification
Overview
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: OX vulnerability database
Severity
8.8 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-190
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | postgresql | >=11.0.0, <11.22.0>=12.0.0, <12.17.0>=13.0.0, <13.13.0>=14.0.0, <14.10.0>=15.0.0, <15.5.0+1 more | 11.22.012.17.013.13.014.10.015.5.0 |
| Julia | LibPQ_jll | <16.8.0+0 | 16.8.0+0 |
Open a package to see all its vulnerabilities.
Operating systems · 156 fixes
Oracle Linux 3 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 7 | postgresql +11 | 9.2.24-9.el7_9 |
| 8 | pg-repack | 1.4.8-1.module+el8.9.0+90110+d8a562d5 |
| 8 | pgaudit | 1.7.0-1.module+el8.9.0+90110+d8a562d5 |
| 8 | postgres-decoderbufs | 1.9.7-1.Final.module+el8.9.0+90110+d8a562d5 |
| 8 | postgresql +14 | 15.5-1.module+el8.9.0+90110+d8a562d5 |
| 9 | pg-repack | 1.4.8-1.module+el9.2.0+21134+ceb95ed9 |
3 more rows
Photon OS 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | postgresql14 +2 | 14.10-1.ph4 |
| 5.0 | postgresql15 +11 | 15.19-1.ph5 |
Red Hat 7 releases · 7 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | rh-postgresql10-postgresql +13 | 0:10.23-2.el7 | RHSA-2023:7771 |
| 7 | rh-postgresql12-postgresql +13 | 0:12.17-1.el7 | RHSA-2023:7770 |
| 7 | rh-postgresql13-postgresql +14 | 0:13.13-1.el7 | RHSA-2023:7772 |
| 7 | postgresql +11 | 0:9.2.24-9.el7_9 | RHSA-2023:7783 |
| 8 (postgresql:10) | postgresql +12 | 0:10.21-3.module+el8.1.0+20812+774a9597 | RHSA-2023:7778 |
| 8 (postgresql:10) | postgresql +12 | 0:10.21-3.module+el8.2.0+20828+77647308 | RHSA-2023:7788 |
56 more rows
SUSE Linux Enterprise 3 releases · 7 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | postgresql12 +8 | 12.17-3.49.1 | SUSE-SU-2023:4433-1 |
| 12.5 | postgresql13 +8 | 13.13-3.43.1 | SUSE-SU-2023:4434-1 |
| 12.5 | postgresql14 +8 | 14.10-3.33.1 | SUSE-SU-2023:4418-1 |
| 12.5 | postgresql15 +8 | 15.5-3.19.2 | SUSE-SU-2023:4425-1 |
| 12.5 | postgresql +8 | 16-4.23.3 | SUSE-SU-2023:4425-1 |
| 12.5 | libecpg6 +12 | 16.1-3.7.1 | SUSE-SU-2023:4425-1 |
11 more rows
alma 6 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (postgresql:10) | postgresql +12 | 10.23-3.module_el8.9.0+3703+a01fd377 |
| 8 (postgresql:12) | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+2758+4f4474df |
| 8 (postgresql:12) | pgaudit | 1.4.0-5.module_el8.6.0+2758+4f4474df |
| 8 (postgresql:12) | pg-repack | 1.4.6-3.module_el8.6.0+2758+4f4474df |
| 8 (postgresql:12) | postgresql +12 | 12.17-1.module_el8.9.0+3704+f1f917ce |
| 8 (postgresql:13) | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+2760+1746ec94 |
12 more rows
alpine 4 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | postgresql15 | 15.5-r0 |
| 3.22 | postgresql16 | 16.1-r0 |
| 3.23 | postgresql16 | 16.1-r0 |
| 3.24 | postgresql16 | 16.1-r0 |
| edge | postgresql16 | 16.1-r0 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | postgresql15 +29 | 15.5-1.amzn2023.0.1 |
chainguard 1 release · 5 packages
| Release | Package | Fixed in |
|---|---|---|
| postgresql-12 | 12.17-r0 | |
| postgresql-13 | 13.13-r0 | |
| postgresql-14 | 14.10-r0 | |
| postgresql-15 | 15.5-r0 | |
| postgresql-16 | 16.1-r0 |
debian 3 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | postgresql-11 | 11.22-0+deb10u1 |
| 11 | postgresql-13 | 13.13-0+deb11u1 |
| 12 | postgresql-15 | 15.5-0+deb12u1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| postgresql-13 | 13.13 |
openSUSE 1 release · 7 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | postgresql11 +11 | 11.22-1.1 | openSUSE-SU-2024:13408-1 |
| Tumbleweed | postgresql12 +11 | 12.18-1.1 | openSUSE-SU-2024:13668-1 |
| Tumbleweed | postgresql13 +11 | 13.13-1.1 | openSUSE-SU-2024:13409-1 |
| Tumbleweed | postgresql14 +11 | 14.10-1.1 | openSUSE-SU-2024:13410-1 |
| Tumbleweed | postgresql15 +11 | 15.5-1.1 | openSUSE-SU-2024:13413-1 |
| Tumbleweed | libecpg6 +15 | 16.1-1.1 | openSUSE-SU-2024:13414-1 |
1 more row
rocky 5 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (postgresql:10) | postgresql +12 | 10.23-3.module+el8.9.0+1608+45f68f05 |
| 8 (postgresql:12) | postgres-decoderbufs | 0.10.0-2.module+el8.5.0+684+c3892ef9 |
| 8 (postgresql:12) | pgaudit | 1.4.0-5.module+el8.9.0+1331+6f33d496 |
| 8 (postgresql:12) | pg-repack | 1.4.6-3.module+el8.5.0+684+c3892ef9 |
| 8 (postgresql:12) | postgresql +12 | 12.17-1.module+el8.9.0+1603+444d1b54 |
| 8 (postgresql:13) | postgres-decoderbufs | 0.10.0-2.module+el8.10.0+1862+29bef648 |
9 more rows
root.io debian 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-postgresql-13 | 13.13-0+deb11u1 |
| 12 | rootio-postgresql-15 | 15.5-0+deb12u1 |
ubuntu 4 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | postgresql-10 | 10.23-0ubuntu0.18.04.2+esm1 |
| 20.04 | postgresql-12 | 12.17-0ubuntu0.20.04.1 |
| 20.04-ESM | postgresql-12 | 12.17-0ubuntu0.20.04.1 |
| 22.04 | postgresql-14 | 14.10-0ubuntu0.22.04.1 |
wolfi 1 release · 5 packages
| Release | Package | Fixed in |
|---|---|---|
| postgresql-12 | 12.17-r0 | |
| postgresql-13 | 13.13-r0 | |
| postgresql-14 | 14.10-r0 | |
| postgresql-15 | 15.5-r0 | |
| postgresql-16 | 16.1-r0 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7545
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7579
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7580
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7581
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7616
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7656
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7666
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7667
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7694
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7695
Show all 60 references
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7714
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7770
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7771
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7772
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7778
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7783
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7784
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7785
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7786
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7788
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7789
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7790
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7878
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7883
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7884
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7885
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:0304
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:0332
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:0337
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-5869
- bugzilla.redhat.com https://bugzilla.redhat.com/2228111
- bugzilla.redhat.com https://bugzilla.redhat.com/2228112
- bugzilla.redhat.com https://bugzilla.redhat.com/2247168
- bugzilla.redhat.com https://bugzilla.redhat.com/2247169
- bugzilla.redhat.com https://bugzilla.redhat.com/2247170
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2228111
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2228112
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2247168
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2247169
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2247170
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-39417
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-39418
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-5868
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-5869
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-5870
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2023-7785.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2023:7785
- git.postgresql.org https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=c48008f599fd0e3bca2923ff5b40b559ae1e4e2e (v11)
- linux.oracle.com https://linux.oracle.com/cve/CVE-2023-5869.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2023-7884.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2023/11/msg00007.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-5869
- security.netapp.com https://security.netapp.com/advisory/ntap-20240119-0003/
- ubuntu.com https://ubuntu.com/security/notices/USN-6538-1
- ubuntu.com https://ubuntu.com/security/notices/USN-6538-2
- ubuntu.com https://ubuntu.com/security/notices/USN-6570-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-5869
- www.postgresql.org https://www.postgresql.org/about/news/postgresql-161-155-1410-1313-1217-and-1122-released-2749/
- www.postgresql.org https://www.postgresql.org/support/security/CVE-2023-5869/
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.