CVSS 3.1
5.9 mediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HMedium (5.9). EPSS 0.4% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HExplain CVE-2025-12818 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-12818?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-12818?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-2025-12818 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.
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 11 | postgresql-13 | 13.23-0+deb11u1 | DLA-4420-1 |
| Debian | 12 | postgresql-15 | 15.15-0+deb12u1 | DEBIAN-CVE-2025-12818 |
| Debian | 13 | postgresql-17 | 17.7-0+deb13u1 | DEBIAN-CVE-2025-12818 |
| Debian | 14 | postgresql-18 | 18.1-1 | DEBIAN-CVE-2025-12818 |
| Ubuntu | 20.04:LTS | postgresql-12 | no fix listed | UBUNTU-CVE-2025-12818 |
| Ubuntu | 22.04:LTS | postgresql-14 | 14.20-0ubuntu0.22.04.1 | UBUNTU-CVE-2025-12818 USN-7908-1 |
| Ubuntu | 24.04:LTS | postgresql-16 | 16.11-0ubuntu0.24.04.1 | UBUNTU-CVE-2025-12818 USN-7908-1 |
| Ubuntu | 25.10 | postgresql-17 | 17.7-0ubuntu0.25.10.1 | UBUNTU-CVE-2025-12818 USN-7908-1 |
| Ubuntu | 26.04:LTS | postgresql-18 | 18.1-1ubuntu1 | UBUNTU-CVE-2025-12818 |
| Ubuntu | Pro:14.04:LTS | postgresql-9.3 | no fix listed | UBUNTU-CVE-2025-12818 |
| Ubuntu | Pro:16.04:LTS | postgresql-9.5 | no fix listed | UBUNTU-CVE-2025-12818 |
| Ubuntu | Pro:18.04:LTS | postgresql-10 | no fix listed | UBUNTU-CVE-2025-12818 |
| Red Hat | enterprise_linux:8::appstream | libpq, libpq-devel, libpq-debuginfo and 2 more | 0:13.23-1.el8_10 | RHSA-2026:0695 |
| Red Hat | enterprise_linux:8::appstream | pg_repack, pg_repack-debuginfo, pg_repack-debugsource | 0:1.4.6-3.module+el8.9.0+20664+9c30cf7f | RHSA-2026:0523 |
| Red Hat | enterprise_linux:8::appstream | pg_repack, pg_repack-debuginfo, pg_repack-debugsource | 0:1.4.8-1.module+el8.9.0+19797+c4ce5969 | RHSA-2026:0524 |
| Red Hat | enterprise_linux:8::appstream | pg_repack, pg_repack-debuginfo, pg_repack-debugsource | 0:1.5.1-1.module+el8.10.0+22551+c0330dc9 | RHSA-2026:0519 |
| Red Hat | enterprise_linux:8::appstream | pgaudit, pgaudit-debuginfo, pgaudit-debugsource | 0:1.5.0-1.module+el8.9.0+20664+9c30cf7f | RHSA-2026:0523 |
| Red Hat | enterprise_linux:8::appstream | pgaudit, pgaudit-debuginfo, pgaudit-debugsource | 0:1.7.0-1.module+el8.9.0+19797+c4ce5969 | RHSA-2026:0524 |
| Red Hat | enterprise_linux:8::appstream | pgaudit, pgaudit-debuginfo, pgaudit-debugsource | 0:16.0-1.module+el8.10.0+20413+d8116364 | RHSA-2026:0519 |
| Red Hat | enterprise_linux:8::appstream | postgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource | 0:0.10.0-2.module+el8.9.0+20664+9c30cf7f | RHSA-2026:0523 |
| Red Hat | enterprise_linux:8::appstream | postgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource | 0:1.9.7-1.Final.module+el8.9.0+19797+c4ce5969 | RHSA-2026:0524 |
| Red Hat | enterprise_linux:8::appstream | postgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource | 0:2.4.0-1.Final.module+el8.10.0+20413+d8116364 | RHSA-2026:0519 |
| Red Hat | enterprise_linux:8::appstream | postgresql, postgresql-docs, postgresql-test and 25 more | 0:15.15-1.module+el8.10.0+23782+2d6b2a31 | RHSA-2026:0524 |
| Red Hat | enterprise_linux:8::appstream | postgresql, postgresql-docs, postgresql-test and 25 more | 0:16.11-1.module+el8.10.0+23783+d9790420 | RHSA-2026:0519 |
| 69 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 more | postgresql15 | 15.15-150200.5.49.2 | SUSE-SU-2025:4406-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 more | postgresql16 | 16.11-150200.5.35.1 | SUSE-SU-2025:4387-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 more | postgresql18 | 18.1-150200.5.3.1 | SUSE-SU-2025:4364-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 10 more | postgresql17 | 17.7-150200.5.19.1 | SUSE-SU-2025:4364-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 9 more | postgresql14 | 14.20-150200.5.64.2 | SUSE-SU-2025:4485-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 5 more | postgresql13 | 13.23-150200.5.78.2 | SUSE-SU-2025:4486-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 more | postgresql | 18-150300.10.30.2 | SUSE-SU-2025:4364-1 |
| SUSE | Linux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 3 more | postgresql | 18-150400.4.21.2 | SUSE-SU-2025:4364-1 |
| SUSE | Linux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 more | postgresql | 18-150500.10.12.2 | SUSE-SU-2025:4364-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Package Hub 15 SP6 and 3 more | postgresql17 | 17.7-150600.13.19.1 | SUSE-SU-2025:4363-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Package Hub 15 SP6 and 3 more | postgresql18 | 18.1-150600.13.3.1 | SUSE-SU-2025:4363-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Legacy 15 SP7, Linux Enterprise Module for Package Hub 15 SP6 and 3 more | postgresql16 | 16.11-150600.16.25.1 | SUSE-SU-2025:4388-1 |
| 24 more for SUSE in the JSON and on SUSE's page. | ||||
| openSUSE | Leap 15.6 | postgresql | 18-150600.17.9.1 | SUSE-SU-2025:4363-1 |
| openSUSE | Leap 15.6 | postgresql13 | 13.23-150600.14.14.1 | SUSE-SU-2025:4325-1 |
| openSUSE | Leap 15.6 | postgresql14 | 14.20-150600.16.23.1 | SUSE-SU-2025:4371-1 |
| openSUSE | Leap 15.6 | postgresql15 | 15.15-150600.16.23.1 | SUSE-SU-2025:4484-1 |
| openSUSE | Leap 15.6 | postgresql16 | 16.11-150600.16.25.1 | SUSE-SU-2025:4388-1 |
| openSUSE | Leap 15.6 | postgresql17 | 17.7-150600.13.19.1 | SUSE-SU-2025:4363-1 |
| openSUSE | Leap 15.6 | postgresql18 | 18.1-150600.13.3.1 | SUSE-SU-2025:4363-1 |
| openSUSE | Leap 16.0 | postgresql | 18-160000.1.1 | openSUSE-SU-2026:20131-1 |
| openSUSE | Leap 16.0 | postgresql13 | 13.23-160000.1.1 | openSUSE-SU-2026:20449-1 |
| openSUSE | Leap 16.0 | postgresql13-pgaudit | 1.5.3-160000.3.1 | openSUSE-SU-2026:20131-1 |
| openSUSE | Leap 16.0 | postgresql13-pgvector, postgresql14-pgvector, postgresql15-pgvector and 3 more | 0.8.1-160000.1.1 | openSUSE-SU-2026:20131-1 |
| openSUSE | Leap 16.0 | postgresql14 | 14.21-160000.1.1 | openSUSE-SU-2026:20265-1 |
| 16 more for openSUSE in the JSON and on openSUSE's page. | ||||
| AlmaLinux | 8 | libpq, libpq-devel | 13.23-1.el8_10 | ALSA-2026:0695 |
| AlmaLinux | 8 | pg_repack | 1.4.6-3.module_el8.6.0+2760+1746ec94 | ALSA-2026:0523 |
| AlmaLinux | 8 | pg_repack | 1.4.6-3.module_el8.6.0+3095+ee60d910 | ALSA-2026:0523 |
| AlmaLinux | 8 | pg_repack | 1.4.8-1.module_el8.9.0+3706+885c732e | ALSA-2026:0524 |
| AlmaLinux | 8 | pg_repack | 1.5.1-1.module_el8.10.0+3930+ecf33554 | ALSA-2026:0519 |
| AlmaLinux | 8 | pgaudit | 1.5.0-1.module_el8.6.0+2760+1746ec94 | ALSA-2026:0523 |
| AlmaLinux | 8 | pgaudit | 1.5.0-1.module_el8.6.0+3095+ee60d910 | ALSA-2026:0523 |
| AlmaLinux | 8 | pgaudit | 1.7.0-1.module_el8.9.0+3706+885c732e | ALSA-2026:0524 |
| AlmaLinux | 8 | pgaudit | 16.0-1.module_el8.10.0+3798+606ebb9f | ALSA-2026:0519 |
| AlmaLinux | 8 | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+2760+1746ec94 | ALSA-2026:0523 |
| AlmaLinux | 8 | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+3095+ee60d910 | ALSA-2026:0523 |
| AlmaLinux | 8 | postgres-decoderbufs | 1.9.7-1.Final.module_el8.9.0+3706+885c732e | ALSA-2026:0524 |
| 18 more for AlmaLinux in the JSON. | ||||
| Rocky Linux | 8 | libpq | 0:13.23-1.el8_10 | RLSA-2026:0695 |
| Rocky Linux | 8 | pg_repack | 0:1.4.6-3.module+el8.10.0+1862+29bef648 | RLSA-2026:0523 |
| Rocky Linux | 8 | pg_repack | 0:1.4.6-3.module+el8.10.0+40055+b85d5ce2 | RLSA-2026:0523 |
| Rocky Linux | 8 | pg_repack | 0:1.4.6-3.module+el8.9.0+1594+4a6adae9 | RLSA-2026:0523 |
| Rocky Linux | 8 | pg_repack | 0:1.4.6-3.module+el8.9.0+1603+444d1b54 | RLSA-2026:0523 |
| Rocky Linux | 8 | pg_repack | 0:1.4.8-1.module+el8.10.0+1622+bd25b19c | RLSA-2026:0524 |
| Rocky Linux | 8 | pg_repack | 0:1.4.8-1.module+el8.10.0+1858+fcc46a79 | RLSA-2026:0524 |
| Rocky Linux | 8 | pg_repack | 0:1.4.8-1.module+el8.10.0+40056+df351139 | RLSA-2026:0524 |
| Rocky Linux | 8 | pg_repack | 0:1.4.8-1.module+el8.9.0+1525+fc91df60 | RLSA-2026:0524 |
| Rocky Linux | 8 | pg_repack | 0:1.5.1-1.module+el8.10.0+1900+d7340343 | RLSA-2026:0519 |
| Rocky Linux | 8 | pg_repack | 0:1.5.1-1.module+el8.10.0+40057+c37a0e3d | RLSA-2026:0519 |
| Rocky Linux | 8 | pgaudit | 0:1.5.0-1.module+el8.10.0+40055+b85d5ce2 | RLSA-2026:0523 |
| 36 more for Rocky Linux in the JSON. | ||||
| Alpine | v3.19, v3.20, v3.21 and 3 more | postgresql16 | 16.11-r0 | ALPINE-CVE-2025-12818 |
| Alpine | v3.19, v3.20, v3.22 | postgresql15 | 15.15-r0 | ALPINE-CVE-2025-12818 |
| Alpine | v3.21, v3.22, v3.23 and 1 more | postgresql17 | 17.7-r0 | ALPINE-CVE-2025-12818 |
| Alpine | v3.23, v3.24 | postgresql18 | 18.1-r0 | ALPINE-CVE-2025-12818 |
| Azure Linux | 2 | postgresql | 14.20-1 | AZL-70202 |
| Azure Linux | 3 | postgresql | 16.11-1 | AZL-70166 |
| Azure Linux | 3 | rust | 1.90.0-4 | AZL-74900 |
| Alpaquita | 23 | postgresql15 | 15.15-r0 | BELL-CVE-2025-12818 |
| Alpaquita | 25 | postgresql17 | 17.7-r0 | BELL-CVE-2025-12818 |
| Alpaquita | stream | postgresql18 | 18.1-r0 | BELL-CVE-2025-12818 |
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 rates this Moderate.
This issue is rated Moderate severity by Red Hat Product Security, even though it carries a High CVSS v3.1 score. The flaw resides in the libpq client library and can be triggered when a client receives specially crafted PostgreSQL protocol data that causes an integer wraparound and an out-of-bounds write. The attack complexity is Low because the malformed protocol message is processed immediately during connection, with no timing or environmental conditions required. However, the impact is limited to a denial of service of the client application only. As a result, Red Hat classifies the overall product impact as Moderate, reflecting that the flaw can interrupt client availability.
No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | postgresql16-0:16.11-1.el10_1 | Fixed 2026-01-13 | RHSA-2026:0525 |
| Red Hat Enterprise Linux 10 | libpq-0:16.11-3.el10_1 | Fixed 2026-01-14 | RHSA-2026:0594 |
| Red Hat Enterprise Linux 10.0 Extended Update Support | postgresql16-0:16.11-1.el10_0 | Fixed 2026-01-12 | RHSA-2026:0456 |
| Red Hat Enterprise Linux 10.0 Extended Update Support | libpq-0:16.11-1.el10_0 | Fixed 2026-01-20 | RHSA-2026:0865 |
| Red Hat Enterprise Linux 8 | postgresql:16-8100020251205224429.489197e6 | Fixed 2026-01-13 | RHSA-2026:0519 |
| Red Hat Enterprise Linux 8 | postgresql:13-8100020251205223240.489197e6 | Fixed 2026-01-13 | RHSA-2026:0523 |
| Red Hat Enterprise Linux 8 | postgresql:15-8100020251205224411.489197e6 | Fixed 2026-01-13 | RHSA-2026:0524 |
| Red Hat Enterprise Linux 8 | libpq-0:13.23-1.el8_10 | Fixed 2026-01-15 | RHSA-2026:0695 |
| Red Hat Enterprise Linux 8.2 Advanced Update Support | libpq-0:12.7-1.el8_2.3 | Fixed 2026-01-20 | RHSA-2026:0835 |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | postgresql:13-8040020251125121223.522a0ee4 | Fixed 2026-01-08 | RHSA-2026:0265 |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | libpq-0:13.23-1.el8_4 | Fixed 2026-01-19 | RHSA-2026:0744 |
| Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | postgresql:13-8040020251125121223.522a0ee4 | Fixed 2026-01-08 | RHSA-2026:0265 |
| Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | libpq-0:13.23-1.el8_4 | Fixed 2026-01-19 | RHSA-2026:0744 |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | libpq-0:13.23-1.el8_6 | Fixed 2025-12-15 | RHSA-2025:23158 |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | postgresql:13-8060020251125073610.ad008a3a | Fixed 2026-01-08 | RHSA-2026:0267 |
| Red Hat Enterprise Linux 8.6 Telecommunications Update Service | libpq-0:13.23-1.el8_6 | Fixed 2025-12-15 | RHSA-2025:23158 |
| Red Hat Enterprise Linux 8.6 Telecommunications Update Service | postgresql:13-8060020251125073610.ad008a3a | Fixed 2026-01-08 | RHSA-2026:0267 |
| Red Hat Enterprise Linux 6 | postgresql | Out of support scope | |
| Red Hat Enterprise Linux 7 | postgresql | Not affected | |
| Red Hat Enterprise Linux 8 | postgresql:12/postgresql | Not affected | |
| 27 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-2025-12818.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.