cve.bz

CVE-2025-12818 Year 2038 problem, Y2K38, Y2038, Epochalypse

5.9 mediumEPSS 0.4%

Medium (5.9). EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
Integer wraparound in multiple PostgreSQL libpq client library functions allows an application input provider or network peer to cause libpq to undersize an allocation and write out-of-bounds by hundreds of megabytes. This results in a segmentation fault for the application using libpq. Versions before PostgreSQL 18.1, 17.7, 16.11, 15.15, 14.20, and 13.23 are affected.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 31st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-11-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain 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.

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11postgresql-1313.23-0+deb11u1DLA-4420-1
Debian12postgresql-1515.15-0+deb12u1DEBIAN-CVE-2025-12818
Debian13postgresql-1717.7-0+deb13u1DEBIAN-CVE-2025-12818
Debian14postgresql-1818.1-1DEBIAN-CVE-2025-12818
Ubuntu20.04:LTSpostgresql-12no fix listedUBUNTU-CVE-2025-12818
Ubuntu22.04:LTSpostgresql-1414.20-0ubuntu0.22.04.1UBUNTU-CVE-2025-12818 USN-7908-1
Ubuntu24.04:LTSpostgresql-1616.11-0ubuntu0.24.04.1UBUNTU-CVE-2025-12818 USN-7908-1
Ubuntu25.10postgresql-1717.7-0ubuntu0.25.10.1UBUNTU-CVE-2025-12818 USN-7908-1
Ubuntu26.04:LTSpostgresql-1818.1-1ubuntu1UBUNTU-CVE-2025-12818
UbuntuPro:14.04:LTSpostgresql-9.3no fix listedUBUNTU-CVE-2025-12818
UbuntuPro:16.04:LTSpostgresql-9.5no fix listedUBUNTU-CVE-2025-12818
UbuntuPro:18.04:LTSpostgresql-10no fix listedUBUNTU-CVE-2025-12818
Red Hatenterprise_linux:8::appstreamlibpq, libpq-devel, libpq-debuginfo and 2 more0:13.23-1.el8_10RHSA-2026:0695
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.6-3.module+el8.9.0+20664+9c30cf7fRHSA-2026:0523
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.8-1.module+el8.9.0+19797+c4ce5969RHSA-2026:0524
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.5.1-1.module+el8.10.0+22551+c0330dc9RHSA-2026:0519
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.5.0-1.module+el8.9.0+20664+9c30cf7fRHSA-2026:0523
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.7.0-1.module+el8.9.0+19797+c4ce5969RHSA-2026:0524
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:16.0-1.module+el8.10.0+20413+d8116364RHSA-2026:0519
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:0.10.0-2.module+el8.9.0+20664+9c30cf7fRHSA-2026:0523
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:1.9.7-1.Final.module+el8.9.0+19797+c4ce5969RHSA-2026:0524
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:2.4.0-1.Final.module+el8.10.0+20413+d8116364RHSA-2026:0519
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 25 more0:15.15-1.module+el8.10.0+23782+2d6b2a31RHSA-2026:0524
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 25 more0:16.11-1.module+el8.10.0+23783+d9790420RHSA-2026:0519
69 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 morepostgresql1515.15-150200.5.49.2SUSE-SU-2025:4406-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 morepostgresql1616.11-150200.5.35.1SUSE-SU-2025:4387-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 morepostgresql1818.1-150200.5.3.1SUSE-SU-2025:4364-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 10 morepostgresql1717.7-150200.5.19.1SUSE-SU-2025:4364-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 9 morepostgresql1414.20-150200.5.64.2SUSE-SU-2025:4485-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 5 morepostgresql1313.23-150200.5.78.2SUSE-SU-2025:4486-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 morepostgresql18-150300.10.30.2SUSE-SU-2025:4364-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 3 morepostgresql18-150400.4.21.2SUSE-SU-2025:4364-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 morepostgresql18-150500.10.12.2SUSE-SU-2025:4364-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Package Hub 15 SP6 and 3 morepostgresql1717.7-150600.13.19.1SUSE-SU-2025:4363-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Package Hub 15 SP6 and 3 morepostgresql1818.1-150600.13.3.1SUSE-SU-2025:4363-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Legacy 15 SP7, Linux Enterprise Module for Package Hub 15 SP6 and 3 morepostgresql1616.11-150600.16.25.1SUSE-SU-2025:4388-1
24 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6postgresql18-150600.17.9.1SUSE-SU-2025:4363-1
openSUSELeap 15.6postgresql1313.23-150600.14.14.1SUSE-SU-2025:4325-1
openSUSELeap 15.6postgresql1414.20-150600.16.23.1SUSE-SU-2025:4371-1
openSUSELeap 15.6postgresql1515.15-150600.16.23.1SUSE-SU-2025:4484-1
openSUSELeap 15.6postgresql1616.11-150600.16.25.1SUSE-SU-2025:4388-1
openSUSELeap 15.6postgresql1717.7-150600.13.19.1SUSE-SU-2025:4363-1
openSUSELeap 15.6postgresql1818.1-150600.13.3.1SUSE-SU-2025:4363-1
openSUSELeap 16.0postgresql18-160000.1.1openSUSE-SU-2026:20131-1
openSUSELeap 16.0postgresql1313.23-160000.1.1openSUSE-SU-2026:20449-1
openSUSELeap 16.0postgresql13-pgaudit1.5.3-160000.3.1openSUSE-SU-2026:20131-1
openSUSELeap 16.0postgresql13-pgvector, postgresql14-pgvector, postgresql15-pgvector and 3 more0.8.1-160000.1.1openSUSE-SU-2026:20131-1
openSUSELeap 16.0postgresql1414.21-160000.1.1openSUSE-SU-2026:20265-1
16 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8libpq, libpq-devel13.23-1.el8_10ALSA-2026:0695
AlmaLinux8pg_repack1.4.6-3.module_el8.6.0+2760+1746ec94ALSA-2026:0523
AlmaLinux8pg_repack1.4.6-3.module_el8.6.0+3095+ee60d910ALSA-2026:0523
AlmaLinux8pg_repack1.4.8-1.module_el8.9.0+3706+885c732eALSA-2026:0524
AlmaLinux8pg_repack1.5.1-1.module_el8.10.0+3930+ecf33554ALSA-2026:0519
AlmaLinux8pgaudit1.5.0-1.module_el8.6.0+2760+1746ec94ALSA-2026:0523
AlmaLinux8pgaudit1.5.0-1.module_el8.6.0+3095+ee60d910ALSA-2026:0523
AlmaLinux8pgaudit1.7.0-1.module_el8.9.0+3706+885c732eALSA-2026:0524
AlmaLinux8pgaudit16.0-1.module_el8.10.0+3798+606ebb9fALSA-2026:0519
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.6.0+2760+1746ec94ALSA-2026:0523
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.6.0+3095+ee60d910ALSA-2026:0523
AlmaLinux8postgres-decoderbufs1.9.7-1.Final.module_el8.9.0+3706+885c732eALSA-2026:0524
18 more for AlmaLinux in the JSON.
Rocky Linux8libpq0:13.23-1.el8_10RLSA-2026:0695
Rocky Linux8pg_repack0:1.4.6-3.module+el8.10.0+1862+29bef648RLSA-2026:0523
Rocky Linux8pg_repack0:1.4.6-3.module+el8.10.0+40055+b85d5ce2RLSA-2026:0523
Rocky Linux8pg_repack0:1.4.6-3.module+el8.9.0+1594+4a6adae9RLSA-2026:0523
Rocky Linux8pg_repack0:1.4.6-3.module+el8.9.0+1603+444d1b54RLSA-2026:0523
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+1622+bd25b19cRLSA-2026:0524
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+1858+fcc46a79RLSA-2026:0524
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+40056+df351139RLSA-2026:0524
Rocky Linux8pg_repack0:1.4.8-1.module+el8.9.0+1525+fc91df60RLSA-2026:0524
Rocky Linux8pg_repack0:1.5.1-1.module+el8.10.0+1900+d7340343RLSA-2026:0519
Rocky Linux8pg_repack0:1.5.1-1.module+el8.10.0+40057+c37a0e3dRLSA-2026:0519
Rocky Linux8pgaudit0:1.5.0-1.module+el8.10.0+40055+b85d5ce2RLSA-2026:0523
36 more for Rocky Linux in the JSON.
Alpinev3.19, v3.20, v3.21 and 3 morepostgresql1616.11-r0ALPINE-CVE-2025-12818
Alpinev3.19, v3.20, v3.22postgresql1515.15-r0ALPINE-CVE-2025-12818
Alpinev3.21, v3.22, v3.23 and 1 morepostgresql1717.7-r0ALPINE-CVE-2025-12818
Alpinev3.23, v3.24postgresql1818.1-r0ALPINE-CVE-2025-12818
Azure Linux2postgresql14.20-1AZL-70202
Azure Linux3postgresql16.11-1AZL-70166
Azure Linux3rust1.90.0-4AZL-74900
Alpaquita23postgresql1515.15-r0BELL-CVE-2025-12818
Alpaquita25postgresql1717.7-r0BELL-CVE-2025-12818
Alpaquitastreampostgresql1818.1-r0BELL-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

Red Hat rates this Moderate.

Red Hat's statement

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.

Red Hat's mitigation

No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10postgresql16-0:16.11-1.el10_1Fixed 2026-01-13RHSA-2026:0525
Red Hat Enterprise Linux 10libpq-0:16.11-3.el10_1Fixed 2026-01-14RHSA-2026:0594
Red Hat Enterprise Linux 10.0 Extended Update Supportpostgresql16-0:16.11-1.el10_0Fixed 2026-01-12RHSA-2026:0456
Red Hat Enterprise Linux 10.0 Extended Update Supportlibpq-0:16.11-1.el10_0Fixed 2026-01-20RHSA-2026:0865
Red Hat Enterprise Linux 8postgresql:16-8100020251205224429.489197e6Fixed 2026-01-13RHSA-2026:0519
Red Hat Enterprise Linux 8postgresql:13-8100020251205223240.489197e6Fixed 2026-01-13RHSA-2026:0523
Red Hat Enterprise Linux 8postgresql:15-8100020251205224411.489197e6Fixed 2026-01-13RHSA-2026:0524
Red Hat Enterprise Linux 8libpq-0:13.23-1.el8_10Fixed 2026-01-15RHSA-2026:0695
Red Hat Enterprise Linux 8.2 Advanced Update Supportlibpq-0:12.7-1.el8_2.3Fixed 2026-01-20RHSA-2026:0835
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportpostgresql:13-8040020251125121223.522a0ee4Fixed 2026-01-08RHSA-2026:0265
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportlibpq-0:13.23-1.el8_4Fixed 2026-01-19RHSA-2026:0744
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onpostgresql:13-8040020251125121223.522a0ee4Fixed 2026-01-08RHSA-2026:0265
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onlibpq-0:13.23-1.el8_4Fixed 2026-01-19RHSA-2026:0744
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportlibpq-0:13.23-1.el8_6Fixed 2025-12-15RHSA-2025:23158
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportpostgresql:13-8060020251125073610.ad008a3aFixed 2026-01-08RHSA-2026:0267
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicelibpq-0:13.23-1.el8_6Fixed 2025-12-15RHSA-2025:23158
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicepostgresql:13-8060020251125073610.ad008a3aFixed 2026-01-08RHSA-2026:0267
Red Hat Enterprise Linux 6postgresqlOut of support scope
Red Hat Enterprise Linux 7postgresqlNot affected
Red Hat Enterprise Linux 8postgresql:12/postgresqlNot 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.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON