Security advisory · Server software
CVE-2023-5869: a vulnerability in PostgreSQL
CVE-2023-5869 in PostgreSQL allows authenticated users to execute arbitrary code via an integer overflow during SQL array value modification, enabling arbitrary memory writes and extensive memory disclosure. Fixed in 11.22, 12.17, 13.13, and 14.10. Prioritise any internet-facing service first. The affected versions, the fix and the CVSS score below come straight from the CVE record, not our interpretation.
- CVE ID
- CVE-2023-5869
- Published
- December 10, 2023
- CVSS
- 8.8 (High), CVSS 3.1
- Affected
- from 11.0, 12.0, 13.0, 14.0 up to the fixed release
- Fixed in
- 11.22, 12.17, 13.13, 14.10
- Assigned by
- Red Hat
What is CVE-2023-5869?
A flaw in PostgreSQL (CVE-2023-5869) is caused by missing overflow checks during SQL array value modification. An authenticated, remote database user can supply specially crafted data that triggers an integer overflow during array modification. The overflow permits writing arbitrary bytes to memory and extensive reading of server memory, which can lead to arbitrary code execution on the target system. The attack vector requires authentication and is exploitable remotely over the database connection. A successful exploitation can compromise confidentiality, integrity, and availability by disclosing sensitive memory contents and executing malicious code with the privileges of the database server process. The issue affects versions from 11.0, 12.0, 13.0, and 14.0 up to the fixed releases. The problem is addressed in the fixed releases 11.22, 12.17, 13.13, and 14.10 provided by PostgreSQL and distributors. The affected and fixed versions, the CVSS score and the remediation below are taken directly from the CVE record and the vendor advisory linked under Sources, not from our interpretation.
Am I affected?
Affected: PostgreSQL versions from 11.0, 12.0, 13.0, 14.0 up to the fixed release. Fixed in: 11.22, 12.17, 13.13, 14.10.
How do I fix it?
Install your distribution's security update for this package, then restart the affected service so the running process picks up the fix.
# Debian / Ubuntu
sudo apt update && sudo apt upgrade
# RHEL / AlmaLinux / Rocky Linux
sudo dnf upgrade --refresh
How HostCrust helps you see it
Patch Proof checks the packages on each server against your distribution's own security data, per CVE, so once your distribution publishes its fix it shows this package as open until the update is installed — and because it is a running service, the fix isn't done until you restart it.
How we checked this: Every fact on this page — the CVE id, the affected and fixed versions, the CVSS score and the remediation — was taken from the CVE's NVD record and the vendor or CNA advisory linked under Sources, and checked on December 3, 2026. HostCrust did not independently reproduce the vulnerability. Anything we didn't run ourselves comes from the official documentation listed under Sources.
Check which CVEs are really open on your server
HostCrust Patch Proof compares every installed package with your distribution's own security data. It counts fixes your distro backported and checks the kernel that is actually running, not just the one on disk. Read-only, no root, free.
FAQ
How severe is CVE-2023-5869?
The NVD record lists a CVSS base score of 8.8 (High) (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H). Severity scores can be revised as a CVE is analysed, so check the NVD record and the vendor advisory under Sources for the current figure.
How do I fix it?
Install your distribution's or vendor's fixed release for PostgreSQL and restart the affected service (or reboot, for a kernel fix). The commands are in the section above.
Where do these facts come from?
Every fact on this page — the CVE id, the affected and fixed versions, the CVSS score and the remediation — is copied from the CVE's NVD record and the vendor or CNA advisory linked under Sources. HostCrust reformats the official facts; it does not add its own.