CVE-2025-12818
published medium CVSS 3.1 · 5.9PostgreSQL libpq undersizes allocations, via integer wraparound
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | PostgreSQL18 to < 18.1 · 17 to < 17.7 · 16 to < 16.11 · 15 to < 15.15 · 14 to < 14.20 · 0 to < 13.23 · Other versions: unaffected | Affected | Not stated | PostgreSQL |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL14-2025-020 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL14-2025-021 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1299 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1300 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | libpq | Advisory build | 16.11-3.el10_1 | ALSA-2026:0594 |
| AlmaLinux | 10 | libpq-devel | Advisory build | 16.11-3.el10_1 | ALSA-2026:0594 |
Show 100 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1313 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1314 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | postgresql-test-rpm-macros | Advisory build | 16.11-1.el10_1 | ALSA-2026:0525 |
| AlmaLinux | 8 | libpq | Advisory build | 13.23-1.el8_10 | ALSA-2026:0695 |
| AlmaLinux | 8 | libpq-devel | Advisory build | 13.23-1.el8_10 | ALSA-2026:0695 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.6-3.module_el8.6.0+2760+1746ec94 | ALSA-2026:0523 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.6-3.module_el8.6.0+3095+ee60d910 | ALSA-2026:0523 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.8-1.module_el8.9.0+3706+885c732e | ALSA-2026:0524 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.5.1-1.module_el8.10.0+3930+ecf33554 | ALSA-2026:0519 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.5.0-1.module_el8.6.0+2760+1746ec94 | ALSA-2026:0523 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.5.0-1.module_el8.6.0+3095+ee60d910 | ALSA-2026:0523 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.7.0-1.module_el8.9.0+3706+885c732e | ALSA-2026:0524 |
| AlmaLinux | 8 | pgaudit | Advisory build | 16.0-1.module_el8.10.0+3798+606ebb9f | ALSA-2026:0519 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 0.10.0-2.module_el8.6.0+2760+1746ec94 | ALSA-2026:0523 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 0.10.0-2.module_el8.6.0+3095+ee60d910 | ALSA-2026:0523 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 1.9.7-1.Final.module_el8.9.0+3706+885c732e | ALSA-2026:0524 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 2.4.0-1.Final.module_el8.10.0+3798+606ebb9f | ALSA-2026:0519 |
| AlmaLinux | 8 | postgresql | Advisory build | 13.23-1.module_el8.10.0+4097+ed3c9b5c | ALSA-2026:0523 |
| AlmaLinux | 8 | postgresql | Advisory build | 15.15-1.module_el8.10.0+4098+1f4e965c | ALSA-2026:0524 |
| AlmaLinux | 8 | postgresql | Advisory build | 16.11-1.module_el8.10.0+4099+381a55d6 | ALSA-2026:0519 |
| AlmaLinux | 8 | postgresql-contrib | Advisory build | 13.23-1.module_el8.10.0+4097+ed3c9b5c | ALSA-2026:0523 |
| AlmaLinux | 8 | postgresql-contrib | Advisory build | 15.15-1.module_el8.10.0+4098+1f4e965c | ALSA-2026:0524 |
| AlmaLinux | 8 | postgresql-contrib | Advisory build | 16.11-1.module_el8.10.0+4099+381a55d6 | ALSA-2026:0519 |
| AlmaLinux | 8 | postgresql-docs | Advisory build | 13.23-1.module_el8.10.0+4097+ed3c9b5c | ALSA-2026:0523 |
| AlmaLinux | 8 | postgresql-docs | Advisory build | 15.15-1.module_el8.10.0+4098+1f4e965c | ALSA-2026:0524 |
| AlmaLinux | 8 | postgresql-docs | Advisory build | 16.11-1.module_el8.10.0+4099+381a55d6 | ALSA-2026:0519 |
| AlmaLinux | 8 | postgresql-plperl | Advisory build | 13.23-1.module_el8.10.0+4097+ed3c9b5c | ALSA-2026:0523 |
| AlmaLinux | 8 | postgresql-plperl | Advisory build | 15.15-1.module_el8.10.0+4098+1f4e965c | ALSA-2026:0524 |
| AlmaLinux | 8 | postgresql-plperl | Advisory build | 16.11-1.module_el8.10.0+4099+381a55d6 | ALSA-2026:0519 |
| AlmaLinux | 8 | postgresql-plpython3 | Advisory build | 13.23-1.module_el8.10.0+4097+ed3c9b5c | ALSA-2026:0523 |
| AlmaLinux | 8 | postgresql-plpython3 | Advisory build | 15.15-1.module_el8.10.0+4098+1f4e965c | ALSA-2026:0524 |
| AlmaLinux | 8 | postgresql-plpython3 | Advisory build | 16.11-1.module_el8.10.0+4099+381a55d6 | ALSA-2026:0519 |
| AlmaLinux | 8 | postgresql-pltcl | Advisory build | 13.23-1.module_el8.10.0+4097+ed3c9b5c | ALSA-2026:0523 |
| AlmaLinux | 8 | postgresql-pltcl | Advisory build | 15.15-1.module_el8.10.0+4098+1f4e965c | ALSA-2026:0524 |
| AlmaLinux | 8 | postgresql-pltcl | Advisory build | 16.11-1.module_el8.10.0+4099+381a55d6 | ALSA-2026:0519 |
| AlmaLinux | 8 | postgresql-private-devel | Advisory build | 15.15-1.module_el8.10.0+4098+1f4e965c | ALSA-2026:0524 |
| AlmaLinux | 8 | postgresql-private-devel | Advisory build | 16.11-1.module_el8.10.0+4099+381a55d6 | ALSA-2026:0519 |
| AlmaLinux | 8 | postgresql-private-libs | Advisory build | 15.15-1.module_el8.10.0+4098+1f4e965c | ALSA-2026:0524 |
| AlmaLinux | 8 | postgresql-private-libs | Advisory build | 16.11-1.module_el8.10.0+4099+381a55d6 | ALSA-2026:0519 |
| AlmaLinux | 8 | postgresql-server | Advisory build | 13.23-1.module_el8.10.0+4097+ed3c9b5c | ALSA-2026:0523 |
| AlmaLinux | 8 | postgresql-server | Advisory build | 15.15-1.module_el8.10.0+4098+1f4e965c | ALSA-2026:0524 |
| AlmaLinux | 8 | postgresql-server | Advisory build | 16.11-1.module_el8.10.0+4099+381a55d6 | ALSA-2026:0519 |
| AlmaLinux | 8 | postgresql-server-devel | Advisory build | 13.23-1.module_el8.10.0+4097+ed3c9b5c | ALSA-2026:0523 |
| AlmaLinux | 8 | postgresql-server-devel | Advisory build | 15.15-1.module_el8.10.0+4098+1f4e965c | ALSA-2026:0524 |
| AlmaLinux | 8 | postgresql-server-devel | Advisory build | 16.11-1.module_el8.10.0+4099+381a55d6 | ALSA-2026:0519 |
| AlmaLinux | 8 | postgresql-static | Advisory build | 13.23-1.module_el8.10.0+4097+ed3c9b5c | ALSA-2026:0523 |
| AlmaLinux | 8 | postgresql-static | Advisory build | 15.15-1.module_el8.10.0+4098+1f4e965c | ALSA-2026:0524 |
| AlmaLinux | 8 | postgresql-static | Advisory build | 16.11-1.module_el8.10.0+4099+381a55d6 | ALSA-2026:0519 |
| AlmaLinux | 8 | postgresql-test | Advisory build | 13.23-1.module_el8.10.0+4097+ed3c9b5c | ALSA-2026:0523 |
| AlmaLinux | 8 | postgresql-test | Advisory build | 15.15-1.module_el8.10.0+4098+1f4e965c | ALSA-2026:0524 |
| AlmaLinux | 8 | postgresql-test | Advisory build | 16.11-1.module_el8.10.0+4099+381a55d6 | ALSA-2026:0519 |
| AlmaLinux | 8 | postgresql-test-rpm-macros | Advisory build | 13.23-1.module_el8.10.0+4097+ed3c9b5c | ALSA-2026:0523 |
| AlmaLinux | 8 | postgresql-test-rpm-macros | Advisory build | 15.15-1.module_el8.10.0+4098+1f4e965c | ALSA-2026:0524 |
| AlmaLinux | 8 | postgresql-test-rpm-macros | Advisory build | 16.11-1.module_el8.10.0+4099+381a55d6 | ALSA-2026:0519 |
| AlmaLinux | 8 | postgresql-upgrade | Advisory build | 13.23-1.module_el8.10.0+4097+ed3c9b5c | ALSA-2026:0523 |
| AlmaLinux | 8 | postgresql-upgrade | Advisory build | 15.15-1.module_el8.10.0+4098+1f4e965c | ALSA-2026:0524 |
| AlmaLinux | 8 | postgresql-upgrade | Advisory build | 16.11-1.module_el8.10.0+4099+381a55d6 | ALSA-2026:0519 |
| AlmaLinux | 8 | postgresql-upgrade-devel | Advisory build | 13.23-1.module_el8.10.0+4097+ed3c9b5c | ALSA-2026:0523 |
| AlmaLinux | 8 | postgresql-upgrade-devel | Advisory build | 15.15-1.module_el8.10.0+4098+1f4e965c | ALSA-2026:0524 |
| AlmaLinux | 8 | postgresql-upgrade-devel | Advisory build | 16.11-1.module_el8.10.0+4099+381a55d6 | ALSA-2026:0519 |
| AlmaLinux | 9 | libpq | Advisory build | 13.23-1.el9_7 | ALSA-2026:0458 |
| AlmaLinux | 9 | libpq-devel | Advisory build | 13.23-1.el9_7 | ALSA-2026:0458 |
| AlmaLinux | 9 | pg_repack | Advisory build | 1.4.8-2.module_el9.5.0+119+18833d03 | ALSA-2026:0492 |
| AlmaLinux | 9 | pg_repack | Advisory build | 1.5.1-1.module_el9.6.0+146+c54fdeca | ALSA-2026:0493 |
| AlmaLinux | 9 | pgaudit | Advisory build | 1.7.0-1.module_el9.3.0+52+21733919 | ALSA-2026:0492 |
| AlmaLinux | 9 | pgaudit | Advisory build | 16.0-1.module_el9.4.0+66+eb9878bc | ALSA-2026:0493 |
| AlmaLinux | 9 | pgvector | Advisory build | 0.6.2-2.module_el9.6.0+167+4e561146 | ALSA-2026:0493 |
| AlmaLinux | 9 | postgis | Advisory build | 3.5.3-3.module_el9.7.0+187+2286ff0a | ALSA-2026:0493 |
| AlmaLinux | 9 | postgis-client | Advisory build | 3.5.3-3.module_el9.7.0+187+2286ff0a | ALSA-2026:0493 |
| AlmaLinux | 9 | postgis-docs | Advisory build | 3.5.3-3.module_el9.7.0+187+2286ff0a | ALSA-2026:0493 |
| AlmaLinux | 9 | postgis-upgrade | Advisory build | 3.5.3-3.module_el9.7.0+187+2286ff0a | ALSA-2026:0493 |
| AlmaLinux | 9 | postgis-utils | Advisory build | 3.5.3-3.module_el9.7.0+187+2286ff0a | ALSA-2026:0493 |
| AlmaLinux | 9 | postgres-decoderbufs | Advisory build | 1.9.7-1.Final.module_el9.3.0+52+21733919 | ALSA-2026:0492 |
| AlmaLinux | 9 | postgres-decoderbufs | Advisory build | 2.4.0-1.Final.module_el9.4.0+66+eb9878bc | ALSA-2026:0493 |
| AlmaLinux | 9 | postgresql | Advisory build | 13.23-1.el9_7 | ALSA-2026:0491 |
| AlmaLinux | 9 | postgresql | Advisory build | 15.15-2.module_el9.7.0+203+960b74c0 | ALSA-2026:0492 |
| AlmaLinux | 9 | postgresql | Advisory build | 16.11-1.module_el9.7.0+202+21427d8a | ALSA-2026:0493 |
| AlmaLinux | 9 | postgresql-contrib | Advisory build | 13.23-1.el9_7 | ALSA-2026:0491 |
| AlmaLinux | 9 | postgresql-contrib | Advisory build | 15.15-2.module_el9.7.0+203+960b74c0 | ALSA-2026:0492 |
| AlmaLinux | 9 | postgresql-contrib | Advisory build | 16.11-1.module_el9.7.0+202+21427d8a | ALSA-2026:0493 |
| AlmaLinux | 9 | postgresql-docs | Advisory build | 13.23-1.el9_7 | ALSA-2026:0491 |
| AlmaLinux | 9 | postgresql-docs | Advisory build | 15.15-2.module_el9.7.0+203+960b74c0 | ALSA-2026:0492 |
| AlmaLinux | 9 | postgresql-docs | Advisory build | 16.11-1.module_el9.7.0+202+21427d8a | ALSA-2026:0493 |
| AlmaLinux | 9 | postgresql-plperl | Advisory build | 13.23-1.el9_7 | ALSA-2026:0491 |
| AlmaLinux | 9 | postgresql-plperl | Advisory build | 15.15-2.module_el9.7.0+203+960b74c0 | ALSA-2026:0492 |
| AlmaLinux | 9 | postgresql-plperl | Advisory build | 16.11-1.module_el9.7.0+202+21427d8a | ALSA-2026:0493 |
| AlmaLinux | 9 | postgresql-plpython3 | Advisory build | 13.23-1.el9_7 | ALSA-2026:0491 |
| AlmaLinux | 9 | postgresql-plpython3 | Advisory build | 15.15-2.module_el9.7.0+203+960b74c0 | ALSA-2026:0492 |
| AlmaLinux | 9 | postgresql-plpython3 | Advisory build | 16.11-1.module_el9.7.0+202+21427d8a | ALSA-2026:0493 |
| AlmaLinux | 9 | postgresql-pltcl | Advisory build | 13.23-1.el9_7 | ALSA-2026:0491 |
| AlmaLinux | 9 | postgresql-pltcl | Advisory build | 15.15-2.module_el9.7.0+203+960b74c0 | ALSA-2026:0492 |
| AlmaLinux | 9 | postgresql-pltcl | Advisory build | 16.11-1.module_el9.7.0+202+21427d8a | ALSA-2026:0493 |
| AlmaLinux | 9 | postgresql-private-devel | Advisory build | 13.23-1.el9_7 | ALSA-2026:0491 |
| AlmaLinux | 9 | postgresql-private-devel | Advisory build | 15.15-2.module_el9.7.0+203+960b74c0 | ALSA-2026:0492 |
| AlmaLinux | 9 | postgresql-private-devel | Advisory build | 16.11-1.module_el9.7.0+202+21427d8a | ALSA-2026:0493 |
| AlmaLinux | 9 | postgresql-private-libs | Advisory build | 13.23-1.el9_7 | ALSA-2026:0491 |
| AlmaLinux | 9 | postgresql-private-libs | Advisory build | 15.15-2.module_el9.7.0+203+960b74c0 | ALSA-2026:0492 |
| AlmaLinux | 9 | postgresql-private-libs | Advisory build | 16.11-1.module_el9.7.0+202+21427d8a | ALSA-2026:0493 |
| AlmaLinux | 9 | postgresql-server | Advisory build | 13.23-1.el9_7 | ALSA-2026:0491 |
| AlmaLinux | 9 | postgresql-server | Advisory build | 15.15-2.module_el9.7.0+203+960b74c0 | ALSA-2026:0492 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Showing the first 100 linked advisory records.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- PostgreSQL · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | PostgreSQL | 18 to < 18.1 (affected · rpm)17 to < 17.7 (affected · rpm)16 to < 16.11 (affected · rpm)15 to < 15.15 (affected · rpm)14 to < 14.20 (affected · rpm)0 to < 13.23 (affected · rpm)Default: unaffected | PostgreSQL · cna |
Weaknesses
1- CWE-190 Integer Overflow or Wraparound
References
1Provider assertions
2PostgreSQL · cna
PostgreSQL libpq undersizes allocations, via integer wraparound
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a1df7dbe89da98965163c03c3b539dc8079cb293996337c9def92a2a5915e7ae
- Ingested
- 23 Sep 2026, 08:36:53 UTC
- Source record
- Official CVE record