CVE-2025-12818

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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
5.9 MEDIUM
NETWORK
HIGH
NONE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
PostgreSQLCNA
5.9 MEDIUM
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
CISA-ADPADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 18%
Debian logo
Debian Releases
Debian Product
Codename
postgresql-13
bullseye
vulnerable
trixie
no-dsa
bookworm
no-dsa
bullseye (security)
13.23-0+deb11u1
fixed
postgresql-15
bookworm
no-dsa
trixie
no-dsa
bookworm (security)
vulnerable
postgresql-17
trixie
no-dsa
bookworm
no-dsa
sid
vulnerable
postgresql-18
forky
18.1-2
fixed
sid
18.1-2
fixed
trixie
no-dsa
bookworm
no-dsa
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
postgresql-18
questing
dne
plucky
dne
noble
dne
jammy
dne
postgresql-17
questing
Fixed 17.7-0ubuntu0.25.10.1
released
plucky
Fixed 17.7-0ubuntu0.25.04.1
released
noble
dne
jammy
dne
postgresql-16
questing
dne
plucky
dne
noble
Fixed 16.11-0ubuntu0.24.04.1
released
jammy
dne
postgresql-14
questing
dne
plucky
dne
noble
dne
jammy
Fixed 14.20-0ubuntu0.22.04.1
released
postgresql-12
questing
dne
plucky
dne
noble
dne
jammy
dne
focal
needs-triage
postgresql-10
questing
dne
plucky
dne
noble
dne
jammy
dne
bionic
needs-triage
postgresql-9.5
questing
dne
plucky
dne
noble
dne
jammy
dne
xenial
needs-triage
postgresql-9.3
questing
dne
plucky
dne
noble
dne
jammy
dne
trusty
deferred